List

@foreach($mhb as $each) @php $countBags = count($each->details) @endphp @php $mhb_id = $each->id @endphp @php $status = $each->applicationStatus ? $each->applicationStatus->status : "" @endphp {{--Application Status--}} @endforeach
@lang("content.report_date") @lang("content.type") @lang("content.station") @lang("content.carrier") File Ref @lang("content.ticket_number") @lang("content.title") @lang("content.last_name") @lang("content.initials") @lang("content.passport_no") @lang("content.address") @lang("content.phone") @lang("content.language") Number of Bags Checked Weight Received Weight @lang("content.status") @lang("content.actions")
{{ $each->report_date != 0 ? baseDateFormat($each->report_date) : "" }} {{ $each->type ? $each->type->type : "" }} {{ $each->airport ? $each->airport->iata : "" }} {{ $each->carrier }} {{ $each->file_reference }} {{ $each->ticket_number }} {{ strtoupper($each->title) }} {{ $each->last_name }} {{ $each->initials }} {{ $each->passport_number }} {{ $each->permanent_address }} {{ $each->permanent_phone }} {{ $each->language }} {{ $countBags }} {{ $each->checked_baggage_weight }} {{ $each->received_baggage_weight }} @if ($status == APPLICATION_STATUS_CANCELLED) CANCELLED @elseif ($status == APPLICATION_STATUS_CLOSED) CLOSED @else OPEN @endif {{--Actions Are Available Only if Application Status is OPEN --}} @if (!$status || $status == APPLICATION_STATUS_OPEN)
id}?signature=1") }}">Sign id}") }}">View
{!! Form::open(['method' => 'POST', 'id' => 'formMHBClose', 'class' => 'form-inline', 'url' => url("/mhb/{$mhb_id}") ]) !!} {!! Form::submit('Close', ['class' => "btn btn-sm btn-success"]) !!} {!! Form::close () !!}
{!! Form::open(['method' => 'DELETE', 'id' => 'formMHBDelete', 'class' => 'form-inline', 'url' => url("/mhb/{$mhb_id}") ]) !!} {!! Form::submit('Cancel', ['class' => "btn btn-sm btn-danger"]) !!} {!! Form::close() !!}
@endif