@extends('layouts.app') @section('content')

Shipments Report

@error('customer_id') {{ $message }} @enderror
{{ 'Reset' }}
@if($bookings)
@php $index = $bookings->firstItem() @endphp @if($index == '') @endif @foreach($bookings as $booking) @endforeach
# Consg. No. Cust. Id Dest. Pincode Subscription B Type Delivery / Return Date Status Emp Code Weight (g)
No Records Found
{{ $index++ }} {{ $booking->consg_number }} {{ $booking->customer->code ?? '' }} {{ $booking->delivery->dest_pincode ?? '' }} {{ $booking->subs_name ?? '' }} {{ $booking->batch_id ? 'Bulk': 'Single' }} @if($booking->status == 'Delivered' || $booking->status == 'Returned') {{ date('d-m-Y H:i', strtotime($booking->delivery->updated_at)) }} @else {{ date('d-m-Y H:i', strtotime($booking->created_at)) }} @endif {{ $booking->status }} {{ $booking->delivery->user['username'] }} @if($booking->final_weight != '') {{ $booking->final_weight }} @else {{ $booking->weight }} @endif
{{ $bookings->appends(request()->query())->links() }}
@endif
@endsection