@extends('layouts.pdf') {{-- Important Variables --}} @section('title') Bill - {{ $extra['document_no'] }} @stop @section('content')
@foreach ($water_bills as $water_bill )
@php $extra['document_no'] = $water_bill->bill_no; @endphp @include('admin.maintenance.partial.pdf.bill_header', ['extra' => $extra]) @include('admin.maintenance.partial.pdf.bill_special_txt')

{{ $extra['bill_name'] }}

@if($water_bill->arrears_amount > 0)

Disconnection Notice

@endif
Project : {{ $water_bill->product->branch->name }}
Product : {{ $water_bill->product->product_unique_id }}
Registration No : {{ $water_bill->product->sell->registration_no ?? '-' }}
Owner Name : {{ $water_bill->owner->name }}
Phone No. : {{ $water_bill->owner->phone }}
CNIC : {{ $water_bill->owner->nid }}
Bill Details
S. No. Product Amount {{$transaction->systemSettingCurrency()}} Tax Amount {{$transaction->systemSettingCurrency()}} Discount Amount {{$transaction->systemSettingCurrency()}} Total {{$transaction->systemSettingCurrency()}}
1 {{ $water_bill->product->product_unique_id }} {{ $transaction->convert_money_format($water_bill->amount ?? 0) }} {{ $transaction->convert_money_format($water_bill->tax_amount ?? 0) }} {{ $transaction->convert_money_format($water_bill->discount ?? 0) }} {{ $transaction->convert_money_format($water_bill->total_amount ?? 0) }}
Total {{ $transaction->convert_money_format($water_bill->amount ?? 0) }} {{ $transaction->convert_money_format($water_bill->tax_amount ?? 0) }} {{ $transaction->convert_money_format($water_bill->discount ?? 0) }} {{ $transaction->convert_money_format($water_bill->total_amount ?? 0) }}
@php $bill_month = '1-' . $water_bill->month . '-' . $water_bill->year; $bill_month = date('M-Y', strtotime($bill_month)); $total_amount_with_arrears = $water_bill->total_amount + $water_bill->arrears_amount; $total_amount_due_date_with_arrears = $water_bill->amount_after_due_date + $water_bill->arrears_amount; @endphp
Water Bill
Bill Month : {{ $bill_month }}
Bill Due Date : {{ date(config('settings.date_format'), strtotime(trim(str_replace('/', '-', $water_bill->bill_date)))) }}
Previous Reading : {{ $water_bill->previous_reading }}
Current Reading : {{ $water_bill->current_reading }}
Gallons : {{$water_bill->gallons}}
Gallons Rate {{$transaction->systemSettingCurrency()}} : {{$water_bill->gallon_rate}}
Amount {{$transaction->systemSettingCurrency()}} : {{ $transaction->convert_money_format($water_bill->amount) }}
Tax Amount {{$transaction->systemSettingCurrency()}} : {{ $transaction->convert_money_format($water_bill->tax_amount) }}
Discount Amount {{$transaction->systemSettingCurrency()}} : {{ $transaction->convert_money_format($water_bill->discount) }}
Arrears : {{ $transaction->convert_money_format($water_bill->arrears_amount) }}
Amount Payable Before Due Date : {{ $transaction->convert_money_format($total_amount_with_arrears) }}
Surcharge Amount {{$transaction->systemSettingCurrency()}} : {{ $transaction->convert_money_format($water_bill->surcharge_amount) }}
Amount Payable After Due Date : {{ $transaction->convert_money_format($total_amount_due_date_with_arrears) }}
@if(count($water_bill->previous_bills)>0) @foreach($water_bill->previous_bills->take(5) as $previous_bill) @php $bill_month = '1-' . $previous_bill->month . '-' . $previous_bill->year; $bill_month = date('M-Y', strtotime($bill_month)); @endphp @endforeach
Previous Bills
{{ $bill_month }} {{ $transaction->convert_money_format($previous_bill->total_amount) }}
@endif
@include('admin.maintenance.utility-bill.partials.bill_issued_by' , ['branch'=> $water_bill->branch ])
@endforeach
@stop @push('include-css') @endpush @push('include-js') @endpush