@php $subs_str_bill_no = substr($bill->bill_no,0,3); $system_setting = \App\Models\Setting::paymentFacility(); $prefix =$system_setting->bill_payment_prefix ??null; $has_kuickpay =!empty($prefix); $consumer_no = App\Models\CustomerConsumerNumber::where(['product_id'=>$bill->mnt_product_id]); if($subs_str_bill_no == 'FOB'){ $bill_type = 'MAINTENANCE BILL'; $kuickpay_consumer_no = $consumer_no->where(['type'=>'owner_bill','bill_term_id'=>$bill->bill->bill_term_id])->first()->consumer_number; }else if($subs_str_bill_no == 'FEB'){ $bill_type = 'ELECTRICITY BILL'; $kuickpay_consumer_no = $consumer_no->where(['type'=>'electricity_bill'])->first()->consumer_number; }else if($subs_str_bill_no == 'FWB'){ $bill_type = 'WATER BILL'; $kuickpay_consumer_no = $consumer_no->where(['type'=>'water_bill'])->first()->consumer_number; }else{ $bill_type = 'MAINTENANCE BILL'; $kuickpay_consumer_no = $consumer_no->where(['type'=>'owner_bill','bill_term_id'=>$bill->bill->bill_term_id])->first()->consumer_number; } $general_setting=\App\Models\Setting::generalFacility(); $bank_name = $general_setting->bank_name; $account_title = $general_setting->account_title; $account_no = $general_setting->account_no; $arrears = $bill->arrears_amount ?? 0; $bill_amount_before_due_date = $bill->total_amount + $arrears; $bill_amount_before_after_date = $bill->amount_after_due_date + $arrears; $bill_month = '1-' . $bill->month . '-' . $bill->year; $bill_month = date('M-Y', strtotime($bill_month)); @endphp

@if($has_kuickpay) @endif {{-- --}} {{-- --}}
BANK COPY

{{ $bill->branch->name }}

{{ $bill_type }}
NAME : {{ $bill->product->property_owner->name }}
ADDRESS : {{ $bill->branch->name }}
Property / Unit No : {{ $bill->product->product_unique_id }}
{{__('lang.type')}} : {{ $bill->product->type->name ??'-' }}
Block : {{ $bill->product->block->name ??'-' }}
Floor : {{ $bill->product->floor->name ??'-' }}
REFERENCE NUMBER {{ $bill->bill_no }}
BANK ACCOUNT NO. Title : {{ $account_title }}
Bank : {{ $bank_name }}
Account number : {{ $account_no }}
KUICKPAY CONSUMER NO. {{ $kuickpay_consumer_no ?? '-' }}
BILL MONTH {{ $bill_month }} DUE DATE {{ $transaction->date_format($bill->bill_date) }}PAYMENT WITHIN DUE DATE {{ $transaction->convert_money_format($bill_amount_before_due_date) }}
BILL MONTH {{ $bill_month }} DUE DATE {{ $transaction->date_format($bill->bill_date) }}PAYMENT AFTER DUE DATE {{ $transaction->convert_money_format($bill_amount_before_after_date) }}