@extends('admin.layout.app') @section('title', 'Vendors') @section('page-title', 'Registered Vendors') @section('content')

Vendors Management

@if (session('success')) @endif
@if(request()->hasAny(['search'])) @endif
@forelse ($vendors as $key => $vendor) @empty @endforelse
# Business Name Vendor Name Email Phone Business Type Status Reject Reason Registration Date Action
{{$key + 1}} {{ $vendor->business_name ?? 'N/A' }} {{ $vendor->vendor_name ?? 'N/A' }} {{ $vendor->vendor_email ?? 'N/A' }} {{ $vendor->vendor_phone ?? 'N/A' }} {{ ucfirst($vendor->business_type ?? 'N/A') }} @if($vendor->status == 'approved') Approved @elseif($vendor->status == 'rejected') Rejected @else Pending @endif @if($vendor->status == 'rejected') @if($vendor->rejection_reason) {{ $vendor->rejection_reason }} @else None @endif @else None @endif {{ $vendor->created_at ? $vendor->created_at->format('d M Y') : '' }}
{{ $vendor->created_at ? $vendor->created_at->format('h:i A') : '' }}
@if($vendor->status == 'pending') @endif @if($vendor->status != 'approved')
@csrf
@endif @if($vendor->status != 'rejected') @endif
No vendors found.
@push('scripts') @endpush @endsection