@extends('user.layouts')
@section('title', 'All Business')
@section('header')
@endsection
@section('content')
{{-- =========================================================
PAGE HEADING
========================================================== --}}
{{-- =========================================================
FILTER SECTION
========================================================== --}}
Search & Filter
Search business records using the filters below
{{-- =========================================================
TABLE
========================================================== --}}
| SN |
BUSINESS NAME |
NAME |
PHONE NO |
CATEGORY NAME |
AGENT CODE |
{{-- Used internally for From / To date filter --}}
CREATED DATE |
ACTION |
@foreach ($business as $buss)
{{-- SN --}}
|
{{ $loop->iteration }}
|
{{-- BUSINESS NAME --}}
{{ $buss->business_name ?? '-' }}
|
{{-- USER NAME --}}
{{ optional($buss->user)->name ?? '-' }}
|
{{-- PHONE --}}
{{ $buss->phone_number ?? '-' }}
|
{{-- CATEGORY --}}
{{ $buss->category_name ?? '-' }}
|
{{-- AGENT CODE --}}
{{ optional($buss->user)->agent_code ?? '-' }}
|
{{-- CREATED DATE --}}
{{ $buss->created_at ? $buss->created_at->format('Y-m-d') : '' }}
|
{{-- ACTION --}}
View
|
@endforeach
@endsection
@section('footer')
{{-- =========================================================
JQUERY
========================================================== --}}
{{-- =========================================================
DATATABLE CORE
========================================================== --}}
{{-- =========================================================
EXPORT DEPENDENCIES
========================================================== --}}
{{-- =========================================================
DATATABLE BUTTONS
========================================================== --}}
@endsection