{{--@include("flight-view.layouts.form")--}}
@if (!count($flights))
@if (\request("type") && \request("type") == $type) @lang("content.found") 0 @lang("content.records") @else @lang("content.please_select_period_and_press_submit") @endif
@else
@if ($type == CANCELLED) @elseif($type == REMOVED) @else @endif

@lang("content.list")

{{-- @if ($sprAdm || $adm)--}} {{-- @endif--}} @if ($type == CANCELLED) @elseif ($type == REMOVED) @else @endif @if ($type == CANCELLED || $type == REMOVED) @endif {{-- --}} {{-- --}} @foreach($flights as $j => $each) @php $aircraft = $each->aircraft @endphp @php $flightNumber = $each->flightNumber @endphp @php $acType = getFlightAircraftType($each) @endphp @if ($each->deleted_at) @php $notes = "Removed at ". $each->deleted_at. " (".$each->remark.")"; @endphp @elseif ($each->cancelled_at) @php $notes = "Cancelled at ". $each->cancelled_at. " (".$each->remark.")"; @endphp @else @php $notes = $each->remark @endphp @endif {{-- @if ($sprAdm || $adm)--}} {{-- @endif--}} @if ($type == CANCELLED) @elseif ($type == REMOVED) @else @endif {{-- --}} @if ($each->flightSchedule) @else @endif @endforeach
SEL No@lang("content.actions")@lang("content.flight") SVC TYPE DEP ARR AC TYPE @lang("content.aircraft") @lang("content.staff_assigned") @lang("content.departure_time") @lang("content.arrival_time") PAX BKD PAX ACT @lang("content.messages")@lang("content.cancelled")@lang("content.removed")@lang("content.notes")@lang("content.last_update") @lang("content.created")
STD PTD ETD ATD ABN STA PTA ETA TDN ATA C R Y INF C R Y INF@lang("content.date") @lang("content.reason")@lang("content.user")@lang("content.date")@lang("content.user") @lang("content.schedule") @lang("content.data")
{!! Form::checkbox("selected", "1", false, ['class' => 'form-control flight', "data-flight_id" => $each->id ]) !!} {{ $j + 1 }}
@if ($type == REMOVED) {{-- id}") }}">@lang("content.restore")--}} {{-- id}") }}">@lang("content.cancel")--}} @elseif ($type == CANCELLED) {{-- id}") }}">@lang("content.restore")--}} {{-- id}") }}">@lang("content.remove")--}} @else @if ($each->deleted_at) {{-- id}") }}">@lang("content.restore")--}} {{-- id}") }}">@lang("content.cancel")--}} @elseif ($each->cancelled_at) {{-- id}") }}">@lang("content.restore")--}} {{-- id}") }}">@lang("content.remove")--}} @else id/edit") }}" class="btn btn-success">@lang("content.edit") {{-- id}") }}">@lang("content.cancel")--}} {{-- id}") }}">@lang("content.remove")--}} @endif @endif
id}") }}">{{ getFlightNumberFull($flightNumber) }} {{ getFlightNumberType($each->flightNumber) }} {{ getFlightDepartureAirport($each, false, true) }} {{ getFlightArrivalAirport($each, false, true) }} {{ $acType }} {{ $aircraft ? $aircraft->name : "-" }} {!! $each->staff_exists ? "" : "" !!} {!! $each->std && $each->std != EMPTY_DATETIME ? baseUSDateFormat($each->std, true, "-") : "" !!} {!! $each->ptd && $each->ptd != EMPTY_DATETIME ? baseUSDateFormat($each->ptd, true, "-") : "" !!} {!! $each->etd && $each->etd != EMPTY_DATETIME ? baseUSDateFormat($each->etd, true, "-") : "" !!} {!! $each->atd && $each->atd != EMPTY_DATETIME ? baseUSDateFormat($each->atd, true, "-") : "" !!} {!! $each->abn && $each->abn != EMPTY_DATETIME ? baseUSDateFormat($each->abn, true, "-") : "" !!} {!! $each->sta && $each->sta != EMPTY_DATETIME ? baseUSDateFormat($each->sta, true, "-") : "" !!} {!! $each->pta && $each->pta != EMPTY_DATETIME ? baseUSDateFormat($each->pta, true, "-") : "" !!} {!! $each->eta && $each->eta != EMPTY_DATETIME ? baseUSDateFormat($each->eta, true, "-") : "" !!} {!! $each->tdn && $each->tdn != EMPTY_DATETIME ? baseUSDateFormat($each->tdn, true, "-") : "" !!} {!! $each->ata && $each->ata != EMPTY_DATETIME ? baseUSDateFormat($each->ata, true, "-") : "" !!} {{ $each->pax_c_booked }} {{ $each->pax_w_booked }} {{ $each->pax_y_booked }} {{ $each->pax_inf_booked }} {{ $each->pax_c_actual }} {{ $each->pax_w_actual }} {{ $each->pax_y_actual }} {{ $each->pax_inf_actual }} {!! getFlightMessages($each, 2, "") !!}{{ baseUSDateFormat($each->cancelled_at, true, "-") }} {{ $each->remark }}{{ baseUSDateFormat($each->deleted_at, true, "-") }} {{ $each->remark }}{{ $notes }}{{ $each->user ? $each->user->first_name." ".$each->user->last_name : "-" }}{{ $each->updated_at ? baseUSDateFormat($each->updated_at, true, "-") : "-" }} {{ getUserName($each->createdBy) }}{{ $each->flightSchedule->name }} {{ baseUSDateFormat($each->flightSchedule->created_at, true, "-") }}- {{ baseUSDateFormat($each->created_at, true, "-") }}
@endif