{!! Form::open(['method' => 'GET', 'url' => url("crew/report?reportType=Late_No_Show"), 'class' => 'form-inline', 'id' => 'formLateNoShow']) !!} {!! Form::label('crew', trans("content.crew")) !!} {!! Form::select('crew', ['fcm'=>'Flight Crew','ccm'=>'Cabin Crew'], $crewType, ['class'=>'form-control input_roster crew']) !!} {{--{!! Form::hidden('reportType', 'Late_No_Show') !!}--}} {!! Form::label('dateFrom', trans("content.from")) !!} {!! Form::text('dateFrom', \request("dateFrom") ? \request("dateFrom") : date('Y-m-d'), ['class' => 'form-control dateFrom inputDateSmall', 'required' => true]) !!} {!! Form::label('dateFrom', trans("content.to")) !!} {!! Form::text('dateTo', \request("dateTo") ? \request("dateTo") : date('Y-m-d'), ['class' => 'form-control dateTo inputDateSmall', 'required' => true]) !!} {!! Form::label('perPage', trans("content.per_page")) !!} {!! Form::select('perPage', [10 => 10, 20 => 20, 50 => 50, '' => 'All'], \request("perPage"), ['class' => 'form-control']) !!} {!! Form::submit('Submit', ['class' => 'btn btn-primary']) !!} {{--{!! Form::label('filter', 'Filter', ['style' => 'margin-left: 50px']) !!} {!! Form::select('filter', ['' => 'All', 'withinLimit' =>'Within Limit', 'crossedLimit'=>'Crossed Limit' ], '', ['class' => 'form-control']) !!} {!! Form::button('Apply', ['class' => 'btn btn-warning', 'id' => 'applyFilter']) !!}--}} {!! Form::close() !!}
@if ($reportType =='Late_No_Show')
@lang("content.found") {!! count($lateNoShow) !!} @lang("content.crew")
@endif @if (count($lateNoShow))

@lang("content.list")

@php $eachId = 0 @endphp @php $currentPage = \request("page") ? \request("page") - 1 : 0 @endphp @php $perPage = \request("perPage") ? \request("perPage") : count($lateNoShow) @endphp @php $k = 0 @endphp @foreach($lateNoShow as $i => $crew) @if ($i >= $currentPage * $perPage && $i < $currentPage * $perPage + $perPage) @if (!isset($exportArray[$i])) @php $exportArray[$k] = [] @endphp @endif @foreach($crew as $j => $each) @if ($each->report_time) @php $reportTime = Add_Minutes_To_DateTime($each->std, 75, null, TRUE) @endphp @php $timeDiff = DateTimeDifference($each->report_time, $reportTime) @endphp @php $timeDiffStr = $timeDiff['H'].':'.$timeDiff['i'] @endphp @php $actualReportTime = date('H:i', strtotime($each->report_time)) @endphp @php $totalMins = $timeDiff['total'] @endphp @else @php $timeDiffStr = "—" @endphp @php $actualReportTime = "—" @endphp @php $totalMins = 0 @endphp @endif @if ($j == 0) @php $picture = $each->thumb ? 'users/'.$each->thumb : 'default-user-picture.png' @endphp @else @php $exportArray[$k] = [ '', '', '', ''] @endphp @endif @if ($each->reason && in_array($each->reason, ['no_show', 'sick', 'roster_not_received'])) @else @endif @endforeach @endif @endforeach
No @lang("content.crew_information")Crew Information # @lang("content.departure") @lang("content.flight_number") @lang("content.sector") STD @lang("content.report_time") @lang("content.actual_report_time") @lang("content.difference") @lang("content.status") @lang("content.reason")
{!! $i + 1 !!}
user_id !!}" target="_blank">{!! $each->first_name." ".$each->last_name !!}
@if ($crewType == 'fcm')
{!! (isCaptain($each) ? 'Captain' : 'First Officer') !!}
@else
{!! (isPurser($each) ? 'Purser' : 'Flight Attendant') !!}
@endif
{!! $each->location !!}
{!! $j +1 !!} {!! date('d M Y', strtotime($each->std)) !!} flight_id !!}">{!! $CURRENT_IATA_CODE.' '.$each->flight_number !!} {!! $each->departure_airport."-".$each->arrival_airport !!} {!! date('H:i', strtotime($each->std)) !!}{!! "—" !!} {!! "—" !!} {!! "—" !!} {!! 'No Show'!!} {!! ($each->reason == 'no_show' ? "" : $reasons[$each->reason]) !!}{!! date('H:i', strtotime($reportTime)) !!} {!! $actualReportTime !!} {!! $timeDiffStr !!} {!! $reasons[$each->reason] !!}
{{-- {!! $pagination->appends(request()->all())->render(); !!}--}}
@endif