{{$communityInfo->cust_name}}

{{$communityInfo->contact_address}}
E-mail: {{$communityInfo->email}}
Phone: {{$communityInfo->phone}}, GST: {{$communityInfo->gst_no}}

Billing report

@php $from = isset($from) && strtotime($from) ? date('d M Y', strtotime($from)) : 'Since the start'; $to = isset($to) && strtotime($to) ? date('d M Y', strtotime($to)) : date('d M Y'); @endphp

Period: {{ $from }} - {{ $to }} Printed at {{date('d M Y H:i:s')}}

@foreach($bills as $building)

Building: {{$building['building_name']}}

Status Summary

Total Bills: {{$building['total_bill_count']}} Cancelled Bills: {{$building['cancelled_bills_count']}} Pending approval Bills: {{$building['pending_approval_bills_count']}}
Paid Bills: {{$building['paid_bills_count']}}, Amount {{ $communityInfo->currency ?? 'INR' }} {{$building['paid_bills_amount']}}/- Refund Bills: {{$building['refund_bills_count']}}, Amount: {{ $communityInfo->currency ?? 'INR' }} {{$building['refund_bills_amount']}}/- Unpaid Bills: {{$building['unpaid_bills_count']}}, Amount: {{ $communityInfo->currency ?? 'INR' }} {{$building['unpaid_bills_amount']}}/-
@php $count=1; @endphp @if($building['cancelled_bills_count']>0)

Cancelled Bills:

@php $c = 0; @endphp @foreach($building['cancelled_bills'] as $cancelled_bill) @php $c++; @endphp @endforeach
Sn. Bill id Bill type Amount Resident Residence Period Cancelled By
{{$c}} {{$cancelled_bill['bill_id']}} {{$cancelled_bill['billing_type']}} {{$cancelled_bill['net_amount']}} {{ucfirst($cancelled_bill['resident_name'])}} {{$cancelled_bill['apartment_name']}} ({{$cancelled_bill['unit_description']}}) {{date('d M Y',strtotime($cancelled_bill['from_date']))}} - {{date('d M Y',strtotime($cancelled_bill['to_date']))}} {{$cancelled_bill['cancelled_by_name']}} at {{$cancelled_bill['cancelled_at']}}
@endif @if($building['pending_approval_bills_count']>0)

Pending Approval Bills:

@php $a = 0; @endphp @foreach($building['pending_approval_bills'] as $bill) @php $a++; @endphp @endforeach
Sn. Bill id Bill type Amount Resident Residence Period Created by
{{$a}} {{$bill['bill_id']}} {{$bill['billing_type']}} {{$bill['net_amount']}} {{ucfirst($bill['resident_name'])}} {{$bill['apartment_name']}} ({{$bill['unit_description']}}) {{date('d M Y',strtotime($bill['from_date']))}} - {{date('d M Y',strtotime($bill['to_date']))}} {{ucfirst($bill['created_by_name'])}}
@endif @if($building['unpaid_bills_count']>0)

Unpaid Bills:

@php $u = 0; @endphp @foreach($building['unpaid_bills'] as $bill) @php $u++; @endphp @endforeach
Sn. Bill id Bill type Amount Resident Residence Period Created by
{{$u}} {{$bill['bill_id']}} {{$bill['billing_type']}} {{$bill['net_amount']}} {{ucfirst($bill['resident_name'])}} {{$bill['apartment_name']}} ({{$bill['unit_description']}}) {{date('d M Y',strtotime($bill['from_date']))}} - {{date('d M Y',strtotime($bill['to_date']))}} {{ucfirst($bill['created_by_name'])}}
@endif @if($building['paid_bills_count']>0)

Paid Bills:

@php $p = 0; @endphp @foreach($building['paid_bills'] as $bill) @php $p++; @endphp @endforeach
Sn. Bill id Bill type Total amount Discount Net amount Paid at Payment Mode Resident Residence Period Created by
{{$p}} {{$bill['bill_id']}} {{$bill['billing_type']}} {{$bill['amount']}} {{$bill['bill_discount_amount']+$bill['resident_discount']}} {{$bill['net_amount']}} {{date('d M Y',strtotime($bill['paid_at']))}} {{$bill['mode_name']}} {{ucfirst($bill['resident_name'])}} {{$bill['apartment_name']}} ({{$bill['unit_description']}}) {{date('d M Y',strtotime($bill['from_date']))}} - {{date('d M Y',strtotime($bill['to_date']))}} {{ucfirst($bill['created_by_name'])}}
@endif @if($building['refund_bills_count']>0)

Refund Bills:

@php $r = 0; @endphp @foreach($building['refund_bills'] as $bill) @php $r++; @endphp @endforeach
Sn. Bill id Bill type Net amount Resident Residence Period Created by
{{$r}} {{$bill['bill_id']}} {{$bill['billing_type']}} {{$bill['net_amount']}} {{ucfirst($bill['resident_name'])}} {{$bill['apartment_name']}} ({{$bill['unit_description']}}) {{date('d M Y',strtotime($bill['from_date']))}} - {{date('d M Y',strtotime($bill['to_date']))}} {{ucfirst($bill['created_by_name'])}}
@endif @endforeach

For any discrepency, report to support@fretbox.in