@extends('layouts.app') @section('page-title', __('My Payments')) @section('page-heading', __('My Payments')) @section('styles') @endsection @section('content') @php $paymentsCollection = $pagedPayments->getCollection(); $aggregatedPayments = $paymentsCollection->filter(function($payment) { return $payment->invoice_type === 'aggregated'; }); $individualPayments = $paymentsCollection->filter(function($payment) { return $payment->invoice_type === 'individual' || $payment->invoice_type === null; }); @endphp
| Payment Cycle | Productivity | Total | Taxable | Tax | Advanced | Net | Status | Invoice |
|---|---|---|---|---|---|---|---|---|
| {{ $payment->paymentCycle->description }} | {{ isset($payment->calculated_productivity) ? number_format($payment->calculated_productivity, 2) : number_format($payment->productivity, 2) }} | {{ number_format($payment->amount_payable, 2) }} | {{ number_format($payment->taxable_amount, 2) }} | {{ number_format($payment->tax, 2) }} | {{ number_format($payment->advance_pay, 2) }} | {{ number_format($payment->net_payable, 2) }} |
{{ $payment->status }}
@if($payment->status == 'Rejected' && $payment->rejection_reason)
{{ $payment->rejection_reason }}
@endif
|
@if($payment->invoice_type === 'aggregated')
Combined invoice above
@else
{{-- Show FAM Invoice if available --}}
@if(isset($payment->fam_invoice) && $payment->fam_invoice)
{{-- Fall back to payment invoice --}}
@elseif($payment->invoice_file)
View
@if($payment->status == 'Rejected')
@endif
@else
@endif
@endif
|