@extends('layouts.admin') @section('title', 'Traditional Markets Management') @section('content')

Traditional Markets Management

Total Markets
{{ $stats['total_markets'] }}
Total Stalls
{{ $stats['total_stalls'] }}
Active Vendors
{{ $stats['active_vendors'] }}
Available Stalls
{{ $stats['available_stalls'] }}
Search & Filter Markets
Reset
Markets
@if($markets->count() > 0)
@foreach($markets as $market) @php $totalStalls = $market->marketDetail ? $market->marketDetail->total_stalls : 0; $occupiedStalls = $market->stalls ? $market->stalls->where('is_available', false)->count() : 0; $occupancyRate = $totalStalls > 0 ? round(($occupiedStalls / $totalStalls) * 100, 1) : 0; @endphp @endforeach
Market Name Type Location Stalls Occupancy Revenue Status Actions
{{ $market->name }}
{{ $market->getBizspotCategoryPath() ?? 'No Category' }}
{{ ucfirst($market->market_type) }} {{ Str::limit($market->address, 40) }}
{{ $totalStalls }} total
{{ $occupancyRate }}%
{{ $occupiedStalls }}/{{ $totalStalls }} occupied
@php $monthlyRevenue = $market->stalls ? $market->stalls->sum('monthly_rent') : 0; @endphp ${{ number_format($monthlyRevenue) }} /month Active
{{ $markets->links() }} @else
No Markets Found

There are no traditional markets registered in the system yet.

Create First Market
@endif
@endsection