@extends('layouts.admin') @section('title', 'Vendors Management - ' . $market->name) @section('content')

Vendors Management

{{ $market->name }}

{{ $market->address }}

{{ ucfirst($market->market_type) }} Market
Total Vendors
{{ $stats['total_vendors'] }}
Active Vendors
{{ $stats['active_vendors'] }}
Overdue Payments
{{ $stats['overdue_payments'] }}
Avg Rating
{{ number_format($stats['avg_rating'], 1) }}
Search & Filter Vendors
Reset
Vendors ({{ $vendors->total() }} total)
@if($vendors->count() > 0)
@foreach($vendors as $vendor) @php $statusBadge = $vendor->getStatusBadge(); @endphp @endforeach
Vendor Type Stall Products Rating Payment Status Compliance Status Actions
{{ substr($vendor->vendor_name, 0, 1) }}
{{ $vendor->vendor_name }}
{{ $vendor->vendor_email }}
{{ $vendor->vendor_phone }}
{{ ucfirst(str_replace('_', ' ', $vendor->vendor_type)) }} @if($vendor->stall)
{{ $vendor->stall->display_name }}
${{ number_format($vendor->stall->monthly_rent) }}/month @else No stall assigned @endif
{{ $vendor->products_display }}
@for($i = 1; $i <= 5; $i++) @if($i <= floor($vendor->vendor_rating)) @elseif($i <= ceil($vendor->vendor_rating)) @else @endif @endfor
{{ number_format($vendor->vendor_rating, 1) }}
@if($vendor->payment_status === 'current') Current @elseif($vendor->payment_status === 'overdue') Overdue @else {{ ucfirst($vendor->payment_status) }} @endif @if($vendor->compliance_status === 'compliant') Compliant @else Non-Compliant @endif {{ $statusBadge['text'] }}
{{ $vendors->links() }} @else
No Vendors Found

No vendors match your current filters.

@endif
@endsection