@extends('user.layouts') @section('title', 'All Business') @section('header') @endsection @section('content')

All Business

{{-- --}}
Filters apply automatically when you type or change a date.
@foreach ($business as $buss) @php // Assumes database timestamps are stored in UTC. // If DB timestamps are stored in IST, change 'UTC' to 'Asia/Kolkata'. $createdRaw = $buss->getRawOriginal('created_at'); $createdDate = $createdRaw ? \Carbon\Carbon::parse($createdRaw, 'UTC')->setTimezone('Asia/Kolkata') : null; @endphp @endforeach
SN CREATED DATE & TIME BUSINESS NAME NAME PHONE NO CATEGORY NAME AGENT CODE ACTION
@if ($createdDate)
{{ $createdDate->format('d M Y') }}
{{ $createdDate->format('h:i A') }}
@else - @endif
{{ $buss->business_name ?? '-' }} {{ optional($buss->user)->name ?? '-' }} {{ $buss->phone_number ?? '-' }} {{ $buss->category_name ?? '-' }} {{ optional($buss->user)->agent_code ?? '-' }} View
@endsection @section('footer') {{-- The layout must load jQuery before this footer section. --}} @endsection