{{-- resources/views/vendors/index.blade.php --}} @extends('layouts.finance.finance') @section('content')
{{-- Page Header --}}

Available Vendors

{{-- Summary Cards --}}

Total Vendors

{{ $totalVendors }}

Active Vendors

{{ $activeVendors ?? '0' }}

{{-- Vendors Table --}}

Vendor Directory

@forelse ($vendors as $vendor) @empty @endforelse
Vendor ID Vendor Name Contact Info Date Added Status Actions
{{ $vendor->id ? 'V#' . str_pad($vendor->id, 4, '0', STR_PAD_LEFT) : 'N/A' }}
{{ strtoupper(substr($vendor->name ?? 'N/A', 0, 1)) }}
{{ $vendor->name ?? 'N/A' }}
{{ $vendor->email ?? 'No Email' }}
{{ $vendor->phone ?? 'No Phone' }}
{{ $vendor->created_at ? \Carbon\Carbon::parse($vendor->created_at)->format('M d, Y') : 'N/A' }} {{ ucfirst($vendor->status ?? 'Active') }} View Profile
No vendors found in the system.
@endsection