@php function numberToWords($number) { $no = floor($number); $point = round($number - $no, 2) * 100; $hundred = null; $digits_1 = strlen($no); $i = 0; $str = []; $words = [ '0' => '', '1' => 'One', '2' => 'Two', '3' => 'Three', '4' => 'Four', '5' => 'Five', '6' => 'Six', '7' => 'Seven', '8' => 'Eight', '9' => 'Nine', '10' => 'Ten', '11' => 'Eleven', '12' => 'Twelve', '13' => 'Thirteen', '14' => 'Fourteen', '15' => 'Fifteen', '16' => 'Sixteen', '17' => 'Seventeen', '18' => 'Eighteen', '19' => 'Nineteen', '20' => 'Twenty', '30' => 'Thirty', '40' => 'Forty', '50' => 'Fifty', '60' => 'Sixty', '70' => 'Seventy', '80' => 'Eighty', '90' => 'Ninety', ]; $digits = ['', 'Hundred', 'Thousand', 'Lakh', 'Crore']; while ($i < $digits_1) { $divider = $i == 2 ? 10 : 100; $number = floor($no % $divider); $no = floor($no / $divider); $i += $divider == 10 ? 1 : 2; if ($number) { $plural = ($counter = count($str)) && $number > 9 ? 's' : null; $hundred = $counter == 1 && $str[0] ? ' and ' : null; $str[] = $number < 21 ? $words[$number] . ' ' . $digits[$counter] . $plural . ' ' . $hundred : $words[floor($number / 10) * 10] . ' ' . $words[$number % 10] . ' ' . $digits[$counter] . $plural . ' ' . $hundred; } else { $str[] = null; } } $str = array_reverse($str); $result = implode('', $str); $points = $point ? '.' . $words[$point / 10] . ' ' . $words[($point = $point % 10)] : ''; return $result . 'Rupees Only'; } @endphp Challan - {{ $challan->challan_no }}
BNCMC Logo

Bhiwandi Nizampur City Municipal Corporation / भिवंडी निजामपूर शहर महानगरपालिका

Daily Collection Challan / दैनिक जमा चलन

Prabhag / प्रभाग: {{ $challan->prabhag->prabhag_name ?? 'All' }} Department / विभाग: {{ $challan->department->department_name ?? 'All' }}
Payment Mode / देयक मोड: {{ $challan->payment_mode ?? 'All' }} Account No / खाते क्रमांक: {{ $challan->account_number ?? '-' }}
Challan No / चलन क्रमांक: {{ $challan->challan_no }} Date / दिनांक: {{ \Carbon\Carbon::parse($challan->challan_date)->format('d-m-Y') }}
No. of Receipts / पावत्यांची संख्या: {{ $challan->details->pluck('demand_id')->unique()->count() }}
@foreach ($groupedDetails as $item) @endforeach
Sr. No. / अ. क्र. Service Name / सेवेचे नाव Amount / रक्कम Qty / नग Total Amount / एकूण रक्कम
{{ $loop->iteration }} {{ $item['service_name'] }} {{ number_format($item['rate'], 2) }} {{ $item['quantity'] }} {{ number_format($item['total_amount'], 2) }}
Total Payable Amount / एकूण देय रक्कम: {{ number_format($challan->total_amount, 2) }}
Total Amount in Words / अक्षरी एकूण रक्कम: {{ numberToWords($challan->total_amount) }}
@if($challan->payment_mode == 'Cash')
@foreach([500, 200, 100, 50, 20, 10] as $note) @endforeach
Cash Denomination / रोख नोटांचे विवरण
Note / नोटा Count / संख्या Amount / रक्कम
{{ $note }} x
Coins / नाणी
Total / एकूण
@endif
Printed On / मुद्रित केले: {{ \Carbon\Carbon::now('Asia/Kolkata')->format('d-m-Y h:i A') }}
Day / दिवस: {{ \Carbon\Carbon::now('Asia/Kolkata')->format('l') }}