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

{{ $branches->count() }}

Total Branches

{{ $branches->where('reservation_enabled', true)->count() }}

With Reservation

{{ $branches->where('advanced_seating_enabled', true)->count() }}

Advanced Seating

{{ $branches->groupBy('region')->count() }}

Regions

{{-- Main Table Container --}}
Branch Directory
@foreach ($branches as $key => $branch) {{-- Branch Information --}} {{-- Contact Person --}} {{-- Location Details --}} {{-- Features --}} {{-- User Column --}} {{-- Created Date --}} {{-- Actions --}} @endforeach
Sr. Branch Information Contact Person Location Details Features User Created Date Actions
{{ $key + 1 }}
{{ substr($branch->branch_name, 0, 2) }}
{{ $branch->branch_name }}
{{ $branch->branch_address }}
{{ $branch->branch_contact_name }}
{{ $branch->branch_contact_email }}
{{ $branch->branch_contact_phone }}
{{ $branch->citys->name ?? '' }}, {{ $branch->states->name ?? '' }}
@if ($branch->location)
{{ $branch->location }}
@endif @if ($branch->countrys)
{{ $branch->countrys->name ?? '' }}
@endif
@if ($branch->reservation_enabled) Reservation @endif @if ($branch->advanced_seating_enabled) Advanced @endif @if (!$branch->reservation_enabled && !$branch->advanced_seating_enabled) Basic @endif
{{ count($branch->users) }}
{{ $branch->created_at->format('d M Y') }}
{{ $branch->created_at->format('H:i A') }}
{{-- Hidden delete form --}}
@endsection @section('script') @endsection