@extends('user.layouts.app') @section('content')

My Invoices & Receipts

@if ($ev_status != 1014) @endif @if(!empty($invoices)) @php $count = 0; $ldate = date('Y-m-d'); @endphp @foreach($invoices as $invoice) @php $count++; @endphp @if ($ev_status != 1014) @endif @endforeach @endif
Sr. No. Invoice Number Fee Type Payment Plan Total Amount Invoice Sent Received / Send Invoice StatusAction
{{$count}} #{{ $invoice['invoice_number'] }} @if($invoice['void'] != 1) @endif @if($invoice['void'] == 1 ) @if($invoice['accounting_invoice_status'] > 4) Download Invoice Receipt @else Download Invoice @endif @endif {{$invoice['invoice_type_name']}} @if($invoice['payment_type'] == 2) Yes @else N/A @endif @if ($invoice['payment_plan_agreement_collected'] == 1 && !empty($invoice['pp_agree_log_id']) && in_array($invoice['accounting_invoice_status'], array(7,8,9,13,10)) ) @endif @if($invoice['payment_type'] == 2) @endif @if($invoice['payment_type'] == 2)
Payment Plan Details
Initial Amount: @if ($invoice['payment_type'] == 2 && $invoice['payment_plan_initial_amount'] != 0.00) {{ '$'.$invoice['payment_plan_initial_amount'] }} @endif
Bi-Weekly Amount: @if ($invoice['payment_type'] == 2 && $invoice['payment_plan_biweekly_amount'] != 0.00 ) {{ '$'.$invoice['payment_plan_biweekly_amount'] }} @endif
Nr. of Bi-Weekly Payments: @if ($invoice['payment_type'] == 2 && $invoice['payment_plan_total_payments'] != 0) {{ $invoice['payment_plan_total_payments'] }} @endif
Agreement Collected: @if ($invoice['payment_type'] == 2) @if ($invoice['payment_plan_agreement_collected'] == 1) Yes @else No @endif @endif
Plan Agreement Collected: @if ($invoice['payment_type'] == 2 && substr($invoice['payment_plan_agreement_date_collected'], 0, 4) != "0000" ) {{ date('M d, Y',strtotime($invoice['payment_plan_agreement_date_collected'])) }} @endif
Plan Initiated: @if ($invoice['payment_type'] == 2) @if ($invoice['payment_plan_initiated'] == 1) Yes @else No @endif @endif
No. of Bi-Weekly Instalment Payment Received: @if ($invoice['payment_type'] == 2) {{ $invoice['paid_installments'] }} @endif
Total Bi-Weekly Instalment Amount Received: @if ($invoice['payment_type'] == 2) @if ($invoice['paid_installments'] != 0) ${{($invoice['payment_plan_biweekly_amount'] * $invoice['paid_installments'])}} @else $0 @endif @endif
No. of Bi-Weekly Instalment Pending: @if ($invoice['payment_type'] == 2) @if (in_array($invoice['accounting_invoice_status'], array(9,10))) {{ $invoice['pending_installments'] }} @else {{ $invoice['payment_plan_total_payments'] }} @endif @endif
Total Bi-Weekly Instalment Amount Pending: @if ($invoice['payment_type'] == 2) @if ($invoice['pending_installments'] != 0) ${{($invoice['payment_plan_biweekly_amount'] * $invoice['pending_installments'])}} @else ${{($invoice['payment_plan_biweekly_amount'] * $invoice['payment_plan_total_payments'])}} @endif @endif

Bi-Weekly Payments Total Estimate:

@if ($invoice['payment_type'] == 2 && ($invoice['payment_plan_biweekly_amount'] * $invoice['payment_plan_total_payments']) != 0)
${{($invoice['payment_plan_biweekly_amount'] * $invoice['payment_plan_total_payments'])}} @endif
@endif
{{ '$'.$invoice['invoice_total_amount'] }} {{ date('M d, Y',strtotime($invoice['invoice_due_date'])) }} @if (!empty($invoice['last_invoice_transaction_total_amount'])) @if(in_array($invoice['accounting_invoice_status'], array(11)) ) Send For This Invoice @else Received For This Invoice @endif {{'$'.$invoice['last_invoice_transaction_total_amount']}} @else $0 @endif @if ($invoice['last_invoice_transaction_total_amount'] > 0 && $invoice['void'] != 1 && !in_array($invoice['accounting_invoice_status'], array(11))) @endif @if($invoice['accounting_invoice_status'] <= 4 || $invoice['accounting_invoice_status'] == 12) {{$invoice['invoice_public_status_name']}} @elseif(in_array($invoice['accounting_invoice_status'], array(5,7,8,9,10,13)) ) {{$invoice['invoice_public_status_name']}} @elseif(in_array($invoice['accounting_invoice_status'], array(6,11,14)) ) {{$invoice['invoice_public_status_name']}} @endif @php $isActionIcon = 0; @endphp @if($invoice['last_invoice_transaction_total_amount'] != $invoice['invoice_total_amount'] && $invoice['void'] != 1 && in_array($invoice['accounting_invoice_status'], array(4)) && $invoice['invoice_type'] == 53) Pay Now @php $isActionIcon = 1; @endphp @elseif($invoice['last_invoice_transaction_total_amount'] != $invoice['invoice_total_amount'] && $invoice['void'] != 1 && in_array($invoice['accounting_invoice_status'], array(4))) Pay Now @php $isActionIcon = 1; @endphp @endif @if ($invoice['payment_type'] == 2 && $invoice['payment_plan_agreement_collected'] == 0 && in_array($invoice['accounting_invoice_status'], array(7)) && $invoice['plan_start_date'] > $ldate) Sign Payment Plan Agreement @php $isActionIcon = 1; @endphp @endif @if ($invoice['payment_plan_agreement_collected'] == 1 && !empty($invoice['pp_agree_log_id']) && in_array($invoice['accounting_invoice_status'], array(7,8,9,13,10)) ) @if (in_array($invoice['accounting_invoice_status'], array(8,13)) ) Sign Payment Plan Authorization @php $isActionIcon = 1; @endphp @endif @endif @if ($isActionIcon != 1) --- @endif
Icon and invoice status brief details
@endsection @section('scripts') @endsection