@if($projectType->id == \App\ProjectType::society) {{-- Development Charges --}}
@foreach($periorities as $periority) @foreach($property->statement->where('payment_head',\App\CustomerStatement::development) as $development_statement) @if($development_statement->due > 0 && ($development_statement->payment_head == $periority->payment_head ) || ($development_statement->payment_head == \App\CustomerStatement::other && !in_array($development_statement->payment_head , $otherArray))) @php if($development_statement->payment_head == \App\CustomerStatement::other) { $otherArray[] = $development_statement->payment_head; } @endphp @if($development_statement->balance > 0 && $development_statement->due_date < Carbon\Carbon::today()) @else @endif @if($development_statement->payment_head == \App\CustomerStatement::development) @else @endif @if($development_statement->is_deleted == false) @if($development_statement->receipt) @if($development_statement->receipt->payment_method == \App\Receipt::cash) @elseif($development_statement->receipt->payment_method == \App\Receipt::bank) @elseif($development_statement->receipt->payment_method == \App\Receipt::adjustment) @elseif($development_statement->receipt->payment_method == \App\Receipt::cheque) @elseif($development_statement->receipt->payment_method == \App\Receipt::merging) @else @endif @else @endif @else @endif @if($development_statement->is_deleted == false) @if($development_statement->received) @else @endif @else @endif @endif @endforeach @endforeach
Payment Head Due Date Due Amt. Received Amt. Balance Payment Mode Receipt # Receipt Date Surcharge Amt Balance Amt.
Development {{date('d-m-Y', strtotime($development_statement->due_date)) }} {{number_format($development_statement->due)}} @if($development_statement->is_deleted == false){{number_format($development_statement->received)}} @else 0 @endif @if($development_statement->is_deleted == false){{number_format($development_statement->balance)}} @else {{number_format($development_statement->due)}} @endif CashBankAdjustmentChequeMerging@if($development_statement->is_deleted == false) {{$development_statement->rcpt_no}} @endif @if($development_statement->is_deleted == false) {{ $development_statement->rcpt_date ? date('d-m-Y', strtotime($development_statement->rcpt_date)) : '' }} @endif {{number_format($development_statement->surcharge)}} {{number_format($development_total)}}
Total {{number_format($development_due)}} {{number_format($development_received)}} Total WaveOff ({{$waiveOff}}) {{number_format($development_surcharge - $waiveOff)}} {{number_format($development_total)}}

@endif {{-- End Development Charges --}} @if($projectType->id == \App\ProjectType::society) {{-- Development Charges --}}
@foreach($periorities as $periority) @foreach($property->statement->where('payment_head',\App\CustomerStatement::development) as $statement) @if($statement->due > 0 && ($statement->payment_head == $periority->payment_head ) || ($statement->payment_head == \App\CustomerStatement::other && !in_array($statement->payment_head , $otherArray))) @php if($statement->payment_head == \App\CustomerStatement::other) { $otherArray[] = $statement->payment_head; } @endphp @if($statement->balance > 0 && $statement->due_date < Carbon\Carbon::today()) @else @endif @if($statement->payment_head == \App\CustomerStatement::development) @else @endif @if($statement->is_deleted == false) @if($statement->receipt) @if($statement->receipt->payment_method == \App\Receipt::cash) @elseif($statement->receipt->payment_method == \App\Receipt::bank) @elseif($statement->receipt->payment_method == \App\Receipt::adjustment) @elseif($statement->receipt->payment_method == \App\Receipt::cheque) @elseif($statement->receipt->payment_method == \App\Receipt::merging) @else @endif @else @endif @else @endif @if($statement->is_deleted == false) @if($statement->received) @else @endif @else @endif @endif @endforeach @endforeach
Payment Head Due Date Due Amt. Received Amt. Balance Payment Mode Receipt # Receipt Date Surcharge Amt Balance Amt.
Development {{date('d-m-Y', strtotime($statement->due_date)) }} {{number_format($statement->due)}} @if($statement->is_deleted == false){{number_format($statement->received)}} @else 0 @endif @if($statement->is_deleted == false){{number_format($statement->balance)}} @else {{number_format($statement->due)}} @endif CashBankAdjustmentChequeMerging@if($statement->is_deleted == false) {{$statement->rcpt_no}} @endif @if($statement->is_deleted == false) {{ $statement->rcpt_date ? date('d-m-Y', strtotime($statement->rcpt_date)) : '' }} @endif {{number_format($statement->surcharge)}} {{number_format($development_total)}}
Total {{number_format($development_due)}} {{number_format($development_received)}} Total WaveOff ({{$waiveOff}}) {{number_format($development_surcharge - $waiveOff)}} {{number_format($development_total)}}

@endif {{-- End Development Charges --}}