@foreach ($order_details->groupBy('booking_id') as $key => $checkin) @php $no_of_product = $checkin->count(); @endphp @foreach ($checkin as $key => $product) @if(!$loop->first) @endif @if($loop->first) @endif @endforeach @endforeach
# {{ __('obs.checkin_no') }} {{ __('obs.booking_no') }} {{ __('obs.product') }} {{ __('obs.quantity') }} {{ __('obs.action') }}
{{ $loop->index + 1 }} {{ $checkin->first()->getBooking->checkin_code }} {{ $checkin->first()->getBooking->resv_code }}
{{ $product->getProduct->name_eng ?? "" }} {{ $product->quantity }} @php $order_invoice = $checkin->pluck('getAllDates')->flatten()->where('order_invoice_id', '!=', null)->first(); @endphp @if ($order_invoice) {{ $order_invoice->getOrderInvoice->order_no ?? "" }} @else @if($checkin->first()->getBooking->checkin_code) @else {{ __('obs.please_checkin') }} @endif @endif