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

Invoices

All Invoices

List of Invoices

{{ csrf_field() }}
Reset
@include('admin.includes.status')
@if(!empty($invoices)) @foreach($invoices as $invoice) @php $country_phone_code = !empty($invoice->country_phone_code) ? "+" . $invoice->country_phone_code : ""; $country_phone_code_two = !empty($invoice->country_phone_code_two) ? "+" . $invoice->country_phone_code_two : ""; @endphp @endforeach @endif
Invoice ID. Invoice Nr. EV Details Host Company Placement Start Date Placement End Date Program Fee Type Total Amount Payment
Plan
Invoice
Sent
Void Received
for Invoice
Actions
{{ $invoice->invoice_id }} #{{ $invoice->invoice_number }} {{ $invoice->first_name." ".$invoice->last_name }}
{{ $invoice->email }} @if(!empty($invoice->skype_id))
  {{ strtolower($invoice->skype_id) }} @endif @if(!empty($invoice->phone_number))
  {{ $country_phone_code }} {{ $invoice->phone_number }} @endif @if(!empty($invoice->phone_number_two))
  {{$country_phone_code_two}} {{ $invoice->phone_number_two }} @endif
@if(in_array($invoice->program_id,$route66_prg_id_array)) HC1: {{$invoice->hc1_name}}
HC2: {{$invoice->hc2_name}}

@else {{ $invoice->hc1_name }} @endif
@if(in_array($invoice->program_id,$route66_prg_id_array)) P1: {{dateformat($invoice->placement_1_start_date, "M d, Y")}}
P2: {{dateformat($invoice->placement_2_start_date, "M d, Y")}}

@else {{ dateformat($invoice->placement_1_start_date, "M d, Y") }} @endif
@if(in_array($invoice->program_id,$route66_prg_id_array)) P1: {{dateformat($invoice->placement_1_end_date, "M d, Y")}}
P2: {{dateformat($invoice->placement_2_end_date, "M d, Y")}}

@else {{ dateformat($invoice->placement_1_end_date, "M d, Y") }} @endif
{{ $invoice->program_name }} {{ $invoice->invoice_type_name }} ${{ number_format($invoice->invoice_total_amount, 2) }} @if(!empty($invoice->payment_type == 1)) No @endif {{ dateformat($invoice->invoice_created_date, "M d, Y") }} @if($invoice->void == 1) Void @else   @endif @if(!empty($invoice->last_invoice_transaction_total_amount)) ${{ number_format($invoice->last_invoice_transaction_total_amount, 2) }} @else $0 @endif
@if(check_route_access('at.add.form')) Add Transaction @endif @if(check_route_access('ai.edit.form')) @if($invoice->void == 1) Edit @else Edit @endif @endif @if(check_route_access('ai.delete')) @if($invoice->last_invoice_transaction_total_amount == 0 && $invoice->void == 1) Delete @else Delete @endif @endif @if(check_route_access('ai.void')) @if($invoice->last_invoice_transaction_total_amount == 0) Void @else Void @endif @endif
@endsection @section('scripts') @endsection