@extends('layouts.master') @section('title') @lang('translation.outlet') @endsection @section('css') @endsection @section('content') {{-- Page Header --}} {{-- Stats Cards --}}

{{ $outlets->count() }}

Total Outlets

{{ $outlets->where('shop_count', '>', 0)->count() }}

With Shops

{{ $outlets->groupBy('food_court_id')->count() }}

Food Courts

{{ $outlets->where('status', 'active')->count() }}

Active Outlets

{{-- Main Table Container --}}
Outlet Directory
@foreach ($outlets as $key => $outlet) {{-- Food Court Information --}} {{-- Contact Person --}} {{-- Shop Details --}} {{-- Food Court ID --}} {{-- User Column --}} {{-- Status --}} {{-- Created Date --}} {{-- Actions --}} @endforeach
Sr. Food Court Information Contact Person Shop Details Food Court ID User Status Created Date Actions
{{ $key + 1 }}
{{ substr($outlet->outlet_name, 0, 2) }}
{{ $outlet->outlet_name }}
@if ($outlet->tenant) Tenant: {{ $outlet->tenant->tenant_name }} @endif
{{ $outlet->outlet_contact_name }}
{{ $outlet->outlet_contact_email }}
{{ $outlet->outlet_contact_phone }}
@if ($outlet->shop_count) {{ $outlet->shop_count }} Shops @else No Shops @endif @if ($outlet->id) ID: {{ $outlet->id }} @endif
@if ($outlet->created_by) Created by: {{ $outlet->creator->name ?? 'System' }} @endif
@if ($outlet->id) {{ $outlet->id }} @else N/A @endif
{{ count($outlet->users) }}
@if ($outlet->status == 'active') Active @else Inactive @endif
{{ $outlet->created_at->format('d M Y') }}
{{ $outlet->created_at->format('H:i A') }}
{{-- Hidden delete form --}}
@endsection @section('script') @endsection