{{-- Extends layout --}} @extends('layout.default') @section('content')
@php $n = 0; $invoice_id = ""; @endphp @foreach($feewaiver_approval_list as $feewaiver_approval) @php $n++; $invoice_id = $feewaiver_approval->id; $invoicemd5=md5($invoice_id); $invoice_created_time = $feewaiver_approval->created_at; $invoice_created_time_new = strtotime($invoice_created_time); $invoice_created_timeplus5min = date("Y-m-d H:i:s",strtotime($invoice_created_time." +".$ticket_time_out."minutes")); $invoice_created_timeplus5min_new = strtotime($invoice_created_timeplus5min); $currentdatetime = date("Y-m-d H:i:s"); $currentdatetimestr = strtotime($currentdatetime); @endphp @endforeach
Sl No Invoice Date Show Date Payment Method Amount Status Request Initiated By Request Initiated Time
{{$n}} {{date("d-M-Y", strtotime($feewaiver_approval->invoice_date))}} {{date("d-M-Y", strtotime($feewaiver_approval->show_date))}} @if(isset($feewaiver_approval->payment_method)) {{$feewaiver_approval->paymentmethod->method}} @endif {{$feewaiver_approval->amount}} @if(isset($feewaiver_status[$invoice_id])) @if($feewaiver_status[$invoice_id]==1) @php echo "Approved"; @endphp @elseif ($feewaiver_status[$invoice_id]==2) @php echo "Rejected"; @endphp @elseif ($feewaiver_status[$invoice_id]==3) @php echo "Time Out"; @endphp @else @php echo "Approval Pending"; @endphp @endif @endif {{$feewaiver_approval->user->name}} @php $request_time = $feewaiver_approval->created_at; @endphp {{date("d-M-Y H:i:A", strtotime($request_time))}} @if($currentdatetimestr<$invoice_created_timeplus5min_new)
{{ csrf_field() }}
@php $n = 0; //dd($feewaiver_status); @endphp @foreach($invoice_list as $invoice) @php $n++; $invoice_id = $invoice->id; $invoicemd5=md5($invoice_id); $invoice_date = $invoice->invoice_date; $invoice_month = date('m',strtotime($invoice_date)); $invoice_year = date('Y',strtotime($invoice_date)); $invoice_no = $invoice->invoice_no; $org_code = $invoice->organisation->short_code; if($invoice_month<4) $invoice_year--; $nextyear = $invoice_year+1; $invoice_number = $org_code.'/'.$invoice_no.'/'.$invoice_year.'-'.$nextyear; $invoice_created_time_list = $invoice->created_at; $invoice_created_time_list_new = strtotime($invoice_created_time_list); $invoice_created_timeplus5min_list = date("Y-m-d H:i:s",strtotime($invoice_created_time_list." +".$ticket_time_out."minutes")); $invoice_created_timeplus5min_list_new = strtotime($invoice_created_timeplus5min_list); $currentdatetime_list = date("Y-m-d H:i:s"); $currentdatetimestr_list = strtotime($currentdatetime_list); //echo "invoice_created_time_list=$invoice_created_timeplus5min_list_new...currentdatetime_list=$currentdatetimestr_list..
"; @endphp @endforeach
Sl No Invoice Date Invoice Number Show Date Payment Method Amount Status
{{$n}} {{date("d-M-Y", strtotime($invoice->invoice_date))}} @if(isset($feewaiver_status[$invoice_id])) @if($feewaiver_status[$invoice_id]==1) {{$invoice_number}} @endif @endif {{date("d-M-Y", strtotime($invoice->show_date))}} @if(isset($invoice->payment_method)) {{$invoice->paymentmethod->method}} @endif {{$invoice->amount}} @if(isset($feewaiver_status[$invoice_id])) @if(isset($feewaiver_status[$invoice_id])) @if($feewaiver_status[$invoice_id]==1) @php echo "Approved"; @endphp @elseif ($feewaiver_status[$invoice_id]==2) @php echo "Rejected"; @endphp @elseif ($feewaiver_status[$invoice_id]==3) @php echo "Time Out"; @endphp @else @php echo "Approval Pending"; @endphp @endif @endif @endif @if(!isset($feewaiver_status[$invoice_id])) @if($currentdatetimestr_list>$invoice_created_timeplus5min_list_new) Timed Out @endif @endif @if(isset($feewaiver_status[$invoice_id])) @if($feewaiver_status[$invoice_id]==1) @endif @endif
@stop