Baggage List

@php $yesIcon = '' @endphp @php $noIcon = '' @endphp @foreach($mhb_baggage as $i => $baggage) @php $tag_no = $baggage->carrier ? $baggage->carrier->iata : "" @endphp @php $tag_no .= $baggage->baggage_tag_no @endphp @endforeach
No @lang("content.tag_no") @lang("content.type") Color Brand Name Contents Whs Damage Type Damage Description @lang("content.flight_number") Routing Date/STD Date/STA Date/ATA
{{ $i + 1 }} {{ $tag_no }} {{ $baggage->type ? $baggage->type->code : "" }} {{ $baggage->color ? $baggage->color->code : "" }} {{ $baggage->brandName ? $baggage->brandName->name : "" }} {{ $baggage->contents }} {!! $baggage->whs ? $yesIcon : $noIcon !!} {{ $baggage->damage_type }} {{ $baggage->damage_description }} @php $baggageDetails = $baggage->details ? $baggage->details : [] @endphp {{--Baggage Details--}} @forelse($baggageDetails as $eachDetail) @php $route = $eachDetail->departureAirport ? $eachDetail->departureAirport->iata."-" : "-" @endphp @php $route .= $eachDetail->arrivalAirport ? $eachDetail->arrivalAirport->iata : "" @endphp @empty @endforelse
{{ $eachDetail->flight_number }} {{ $route }} {{ $eachDetail->date_time ? baseDateFormat($eachDetail->date_time, true) : "" }} {{ $eachDetail->sta ? baseDateFormat($eachDetail->sta, true) : "" }} {{ $eachDetail->ata ? baseDateFormat($eachDetail->ata, true) : "" }}