@php $tatalTras = count($transactions); @endphp @if ($cutermer_copy_only==0)

{{$societyinfo->cust_name}}

{{$societyinfo->contact_address ?? 'Not Available'}}
E-mail: {{$societyinfo->email ?? 'Not Available'}} @if($societyinfo->phone !='')
Phone: {{$societyinfo->phone}}, @endif @if($societyinfo->gst_no !='') GST: {{$societyinfo->gst_no}}

@endif
@if($hasLogo) @endif

Bill No: {{$bill->course_name ?? 'Not Available'}}{{$bill->session_name ?? 'Not Available'}}/{{str_pad($bill->bill_id, 4, '0', STR_PAD_LEFT)}} Generated on: {{date('d M Y',strtotime($bill->created_at))}} For: Admin
Payment Mode: {{$bill->mode_name ?? 'Not Available'}} @if(!empty($bill->transaction_reference_number) && $bill->transaction_reference_number!="") UTR/CHEQUE Number: {{$bill->transaction_reference_number ?? 'Not Available'}} @endif
For: {{ucfirst($bill->name)}} Resident of: {{$bill->building ?? 'Not Available' }} / {{$bill->apartment_name ?? 'Not Available'}}
E-mail: {{$bill->email ?? 'Not Available'}}Contact: {{$bill->contact_no ?? 'Not Available' }}
Academic: @if(isset($bill->course_name) && !empty($bill->course_name)){{$bill->course_name}}@endif @if(isset($bill->branch_name) && !empty($bill->branch_name))- {{$bill->branch_name}}@endif @if(isset($bill->course_year) && !empty($bill->course_year))- {{$bill->course_year}} Year @endif @if(isset($bill->batch_name) && !empty($bill->batch_name))({{$bill->batch_name}})@endif {{ $settingLabel ?? 'Not Available'}}: {{ $bill->reference_number ?? 'Not Available'}}
@php $breakup=[]; if(!empty($bill->break_up)){ $breakup=json_decode($bill->break_up); } @endphp @if(count($breakup)>0) @endif
Billing type: {{$bill->billing_type}} Period: {{date('d M Y',strtotime($bill->from_date))}} - {{date('d M Y',strtotime($bill->to_date))}}
Total Amount: INR {{number_format($bill->amount,2)}}/- @if($bill->resident_discount>0)
Resident Discount : INR {{$bill->resident_discount}}/- @endif @if($bill->bill_discount_amount>0)
Bill Discount : INR {{$bill->bill_discount_amount}}/- @endif
@php $netAmt = explode('.', $bill->net_amount); if(isset($netAmt[1])){ if(strlen((string)$netAmt[1])==1){ $netAmt[1] = $netAmt[1]."0"; } } @endphp Net Amount: INR {{number_format($bill->net_amount,2)}}/-
{{ucwords((new NumberFormatter('en_IN', NumberFormatter::SPELLOUT))->format($netAmt[0]))}} @if(isset($netAmt[1])) Rupees And {{ucwords((new NumberFormatter('en_IN', NumberFormatter::SPELLOUT))->format($netAmt[1]))}} Paise @endifOnly
Paid Amount: INR {{number_format($bill->paid_amount,2)}}/-
@if($remaining_amount > 0) Remaining Amount: INR {{number_format($remaining_amount,2)}}/-
@php $remainingAmt = explode('.', $remaining_amount); if(isset($remainingAmt[1])){ if(strlen((string)$remainingAmt[1])==1){ $remainingAmt[1] = $remainingAmt[1]."0"; } } @endphp {{ucwords((new NumberFormatter('en_IN', NumberFormatter::SPELLOUT))->format($remainingAmt[0]))}} @if(isset($remainingAmt[1])) Rupees And {{ucwords((new NumberFormatter('en_IN', NumberFormatter::SPELLOUT))->format($remainingAmt[1]))}} Paise @endifOnly @endif
Break up @foreach($breakup as $month) {{$month->month}}: {{$month->amount}} INR
@endforeach
Total: INR {{$bill->net_amount}}/- @if($bill->tax !=0) (Includes {{$bill->tax}}% GST) @endif @if(!empty($bill->cancelled_by)) @else @if($bill->paid_amount==$bill->net_amount) @elseif($bill->paid_amount>0) @else @endif @endif
@if(!empty($bill->remark) && $bill->remark!="")
Remark:- {{ $bill->remark ?? 'Not Available'}}
@endif @if(count($transactions)>0)
Payments
@foreach ($transactions as $key=>$transaction) @endforeach
ModePaid at AmountReference no
{{$transaction->mode_name}}{{$transaction->complete_at}} {{$transaction->amount}} /-{{$transaction->reference_number}}
@endif
@endif

{{$societyinfo->cust_name}}

{{$societyinfo->contact_address ?? 'Not Available'}}
E-mail: {{$societyinfo->email ?? 'Not Available'}} @if($societyinfo->phone !='')
Phone: {{$societyinfo->phone}}, @endif @if($societyinfo->gst_no !='') GST: {{$societyinfo->gst_no}}

@endif
@if($hasLogo) @endif

@isset($headerText)
{{$headerText}}
@endisset
Bill No: {{$bill->course_name ?? 'Not Available'}}{{$bill->session_name ?? 'Not Available'}}/{{str_pad($bill->bill_id, 4, '0', STR_PAD_LEFT)}} Generated on: {{date('d M Y',strtotime($bill->created_at))}} For: Resident
Payment Mode: {{$bill->mode_name ?? 'Not Available'}} @if(!empty($bill->transaction_reference_number) && $bill->transaction_reference_number!="") UTR/CHEQUE Number: {{$bill->transaction_reference_number ?? 'Not Available'}} @endif
For: {{ucfirst($bill->name)}} Resident of: {{$bill->building}} / {{$bill->apartment_name}}
E-mail: {{$bill->email ?? 'Not Available'}}Contact: {{$bill->contact_no ?? 'Not Available' }}
Academic: @if(isset($bill->course_name) && !empty($bill->course_name)){{$bill->course_name}}@endif @if(isset($bill->branch_name) && !empty($bill->branch_name))- {{$bill->branch_name}}@endif @if(isset($bill->course_year) && !empty($bill->course_year))- {{$bill->course_year}} Year @endif @if(isset($bill->batch_name) && !empty($bill->batch_name))({{$bill->batch_name}})@endif {{ $settingLabel ?? 'Not Available'}}: {{ $bill->reference_number ?? 'Not Available'}}
@if($show_discount && ($bill->bill_discount_amount > 0 || $bill->resident_discount>0)) @php $netAmt = explode('.', $bill->net_amount); if(isset($netAmt[1])){ if(strlen((string)$netAmt[1])==1){ $netAmt[1] = $netAmt[1]."0"; } } @endphp @else @endif @php $breakup=[]; if(!empty($bill->break_up)){ $breakup=json_decode($bill->break_up); } @endphp @if(count($breakup)>0) @endif
Billing type: {{$bill->billing_type}} Period: {{date('d M Y',strtotime($bill->from_date))}} - {{date('d M Y',strtotime($bill->to_date))}}
Total Amount: INR {{number_format($bill->amount,2)}}/- @if($bill->resident_discount>0)
Resident Discount : INR {{$bill->resident_discount}}/- @endif @if($bill->bill_discount_amount>0)
Bill Discount : INR {{$bill->bill_discount_amount}}/- @endif
Net Amount : INR {{number_format($bill->net_amount,2)}}/-
{{ucwords((new NumberFormatter('en_IN', NumberFormatter::SPELLOUT))->format($netAmt[0]))}} @if(isset($netAmt[1])) Rupees And {{ucwords((new NumberFormatter('en_IN', NumberFormatter::SPELLOUT))->format($netAmt[1]))}} Paise @endifOnly
@if($remaining_amount > 0) Remaining Amount : INR {{number_format($remaining_amount,2)}}/-
@php $remainingAmt = explode('.', $remaining_amount); if(isset($remainingAmt[1])){ if(strlen((string)$remainingAmt[1])==1){ $remainingAmt[1] = $remainingAmt[1]."0"; } } @endphp {{ucwords((new NumberFormatter('en_IN', NumberFormatter::SPELLOUT))->format($remainingAmt[0]))}} @if(isset($remainingAmt[1])) Rupees And {{ucwords((new NumberFormatter('en_IN', NumberFormatter::SPELLOUT))->format($remainingAmt[1]))}} Paise @endifOnly @endif
Total Amount: INR {{number_format($bill->amount,2)}}/-
Net Amount : INR {{number_format($bill->net_amount,2)}}/-
@php $netAmt = explode('.', $bill->net_amount); if(isset($netAmt[1])){ if(strlen((string)$netAmt[1])==1){ $netAmt[1] = $netAmt[1]."0"; } } @endphp {{ucwords((new NumberFormatter('en_IN', NumberFormatter::SPELLOUT))->format($netAmt[0]))}} @if(isset($netAmt[1])) Rupees And {{ucwords((new NumberFormatter('en_IN', NumberFormatter::SPELLOUT))->format($netAmt[1]))}} Paise @endifOnly
@if($remaining_amount > 0) Remaining Amount : INR {{number_format($remaining_amount,2)}}/-
@php $remainingAmt = explode('.', $remaining_amount); if(isset($remainingAmt[1])){ if(strlen((string)$remainingAmt[1])==1){ $remainingAmt[1] = $remainingAmt[1]."0"; } } @endphp {{ucwords((new NumberFormatter('en_IN', NumberFormatter::SPELLOUT))->format($remainingAmt[0]))}} @if(isset($remainingAmt[1])) Rupees And {{ucwords((new NumberFormatter('en_IN', NumberFormatter::SPELLOUT))->format($remainingAmt[1]))}} Paise @endifOnly @endif
Paid Amount: INR {{number_format($bill->paid_amount,2)}}/-
Break up @foreach($breakup as $month) {{$month->month}}: {{$month->amount}}/- INR
@endforeach
Total: INR {{$bill->net_amount}}/- @if($bill->tax !=0) (Includes {{$bill->tax}}% GST) @endif @if(!empty($bill->cancelled_by)) @else @if($bill->paid_amount==$bill->net_amount) @elseif($bill->paid_amount>0) @else @endif @endif
@if(!empty($bill->remark) && $bill->remark!="")
Remark:- {{ $bill->remark ?? 'Not Available'}}
@endif @if(count($transactions)>0)
Payments
@foreach ($transactions as $key=>$transaction) @endforeach
ModePaid at AmountReference no
{{$transaction->mode_name}}{{$transaction->complete_at}} {{$transaction->amount}}/-{{$transaction->reference_number}}
@endif
@if($other_bills != "")

{{$societyinfo->cust_name}}

{{$societyinfo->contact_address ?? 'Not Available'}}
E-mail: {{$societyinfo->email ?? 'Not Available'}}
Phone: {{$societyinfo->phone}}, GST: {{$societyinfo->gst_no}}

@if($hasLogo) @endif

@isset($headerText)
{{$headerText}}
Other Charges
@endisset
Bill No: {{$bill->course_name ?? 'Not Available'}}{{$bill->session_name ?? 'Not Available'}}{{$bill->bill_id}} Generated on: {{date('d M Y',strtotime($bill->created_at))}}
For: {{ucfirst($bill->name)}} Resident of: {{$bill->building}} / {{$bill->apartment_name}}
E-mail: {{$bill->email ?? 'Not Available'}}Contact: {{$bill->contact_no ?? 'Not Available' }}
INR @if(!empty($bill->cancelled_by)) @else @if($other_charge_piad_amount==$other_charge_with_tax) @elseif($other_charge_piad_amount>0) @else @endif @endif
Billing type: {{$bill->billing_type}} Period: {{date('d M Y',strtotime($bill->from_date))}} - {{date('d M Y',strtotime($bill->to_date))}}
{{$charge_text}}: {{$other_charge_without_Tax}}
Tax:{{$other_tax_amount}}
Total:{{$other_charge_with_tax}}/-
@endif