@extends('user.layouts') @section('title', 'All Business') @section('header') @endsection @section('content')
{{-- ========================================================= PAGE HEADING ========================================================== --}}

All Business

{{-- ========================================================= FILTER SECTION ========================================================== --}}
Search & Filter

Search business records using the filters below

{{-- FROM DATE --}}
{{-- TO DATE --}}
{{-- BUSINESS NAME --}}
{{-- NAME --}}
{{-- PHONE --}}
{{-- CATEGORY --}}
{{-- AGENT CODE --}}
{{-- BUTTONS --}}
{{-- ========================================================= TABLE ========================================================== --}}
{{-- Used internally for From / To date filter --}} @foreach ($business as $buss) {{-- SN --}} {{-- BUSINESS NAME --}} {{-- USER NAME --}} {{-- PHONE --}} {{-- CATEGORY --}} {{-- AGENT CODE --}} {{-- CREATED DATE --}} {{-- ACTION --}} @endforeach
SN BUSINESS NAME NAME PHONE NO CATEGORY NAME AGENT CODECREATED DATE ACTION
{{ $loop->iteration }} {{ $buss->business_name ?? '-' }} {{ optional($buss->user)->name ?? '-' }} {{ $buss->phone_number ?? '-' }} {{ $buss->category_name ?? '-' }} {{ optional($buss->user)->agent_code ?? '-' }} {{ $buss->created_at ? $buss->created_at->format('Y-m-d') : '' }} View
@endsection @section('footer') {{-- ========================================================= JQUERY ========================================================== --}} {{-- ========================================================= DATATABLE CORE ========================================================== --}} {{-- ========================================================= EXPORT DEPENDENCIES ========================================================== --}} {{-- ========================================================= DATATABLE BUTTONS ========================================================== --}} @endsection