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

Track Bookings

@if (session()->has('success'))
{!! session()->get('success')!!}
@endif
{{ 'Reset' }}
@if($bookings[0])
{{ 'Welcome '.$bookings[0]->customer_name}}
@endif @if($bookings[0])
{{ 'Booking date: '.date('d-m-Y', strtotime($bookings[0]->created_at)) }}
@endif
{{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @php $index = $bookings->firstItem() @endphp @foreach($bookings as $booking) {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @endforeach
# Consg. No.Cust. IdOrg. PincodeDest. Pincode SubscriptionB TypeStatusB DateOperations
{{ $index++ }} {{ $booking->consg_number }}{{ $booking->customer->code ?? '' }}{{ $booking->pincode->pincode ?? '' }}{{ $booking->delivery->dest_pincode ?? '' }} {{ $booking->subs_name ?? '' }}{{ $booking->batch_id ? 'Bulk': 'Single' }}{{ $booking->status }}{{ date('d-m-Y H:i', strtotime($booking->created_at)) }}
@if(count($bookings) == 0)
No record found!
@endif
{!! $bookings->appends(request()->query())->links() !!}
@endsection