@extends('layouts.app') @section('title', 'Edit Purchase Bill') @section('content')

Edit Purchase Invoice

Bandwidth Purchase Invoice

@csrf @method('PUT')
General Bill Information
@php $billMonthValue = ''; if ($bill->bill_month) { try { // Try to parse M-Y format (e.g., "Jan-2025") if (preg_match('/^[A-Za-z]{3}-\d{4}$/', $bill->bill_month)) { $billMonthValue = \Carbon\Carbon::createFromFormat('M-Y', $bill->bill_month)->format('Y-m'); } // Try to parse Y-m format (already correct) elseif (preg_match('/^\d{4}-\d{2}$/', $bill->bill_month)) { $billMonthValue = $bill->bill_month; } // Try to parse other formats else { $billMonthValue = \Carbon\Carbon::parse($bill->bill_month)->format('Y-m'); } } catch (\Exception $e) { $billMonthValue = $bill->bill_month; } } @endphp
Item Details
@foreach($bill->items as $index => $item) @endforeach
Item Account Head Description Unit Quantity Rate VAT(%) Total VAT From Date To Date Total Action
Discount
Total
Remarks/Note
@endsection