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

Top {{ request()->input('type') }} {{ request()->input('month_year') ? \Carbon\Carbon::createFromFormat('m/Y', request()->input('month_year'))->format('F Y') : date('F Y') }}

{{ 'Reset' }}
{{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @php $index = $bookings->firstItem() @endphp @foreach($bookings as $booking) @php $booking = $booking->toArray(); @endphp @if(request()->input('type') == 'customer') @elseif(request()->input('type') == 'branch') @else @endif @endforeach
# {{ request()->input('type') }} Name {{ request()->input('type') }} Code Total BookingsOrg. PincodeDest. PincodeSubscriptionB TypeB DateStatusOperations
{{ $index++ }}{{ $booking['customer_name'] }} {{ $booking['customer']['code'] ?? '' }} {{ $booking['total'] }}{{ $booking['booking_branch']['branch_name'] ?? '' }} {{ $booking['booking_branch']['code'] ?? '' }} {{ $booking['total'] }}{{ $booking['booking_franchisee']['enterprise_name'] ?? '' }} {{ $booking['booking_franchisee']['code'] ?? '' }} {{ $booking['total'] }}
@if(count($bookings) == 0)
No record found!
@endif
{!! $bookings->appends(request()->query())->links() !!}
@endsection