@php $file_reference = "" @endphp
@php $file_reference .= $mhb->airport ? $mhb->airport->iata : "" @endphp
@php $file_reference .= $mhb->carrier @endphp
@php $file_reference .= $mhb->file_reference @endphp
@php $file_reference .= "/". ($mhb->report_date ? strtoupper(date("dMy", strtotime($mhb->report_date))) : "") @endphp
FILE TYPE |
{{ $mhb->type ? $mhb->type->type : "" }} |
FILE REFERENCE |
{{ $file_reference }} |
NAME |
{{ strtoupper($mhb->last_name) }} |
TITLE/INITIALS |
{{ strtoupper($mhb->title."/". $mhb->initials) }} |
NUMBER OF BAGS |
{{ $countBags }} |
TICKET NUMBER |
{{ $mhb->ticket_number }} |
|
@foreach($baggage as $i => $eachBag)
@php $color_and_type = ($eachBag->color ? $eachBag->color->code : "")."".($eachBag->type ? $eachBag->type->code : "") @endphp
@php $tag_no = $eachBag->carrier ? $eachBag->carrier->iata : "" @endphp
@php $tag_no .= $eachBag->baggage_tag_no @endphp
BAGGAGE No.{{ $i + 1 }} |
BAG NUMBER |
{{ $tag_no }} |
COLOUR/TYPE |
{{ $color_and_type }} |
@php $details = $eachBag->details @endphp
@foreach($details as $item)
@php $flight_date_route = $item->flight_number ."/". baseDateFormat($item->date_time) ."/" @endphp
@php $flight_date_route .= ($item->departureAirport ? $item->departureAirport->iata : "") . "-" @endphp
@php $flight_date_route .= ($item->arrivalAirport ? $item->arrivalAirport->iata : "") @endphp
@if (!(isset($previousFlight) && $previousFlight == $flight_date_route))
FLIGHT/DATE/ROUTE |
{{ strtoupper($flight_date_route) }} |
@endif
@php $previousFlight = $flight_date_route @endphp
@endforeach
|
@endforeach
PLEASE RETAIN PASSENGER TICKET AND BAGGAGE CHECK.
THIS REPORT DOES NOT INVOLVE ANY ACKNOWLEDGEMENT OF LIABILITY
|