@php $address = $vendor->user->addresses->first(); @endphp
{{-- ── LEFT COLUMN ── --}}
{{-- Admin Actions --}}
{{-- ── RIGHT COLUMN ── --}}
@if($vendor->brand_logo)
@else
{{ strtoupper(substr($vendor->vendor_name ?? 'V', 0, 1)) }}
@endif
{{ $vendor->vendor_name }}
Vendor
@if($vendor->user->is_kyc_completed ?? false)
✓
@else
—
@endif
KYC
@if($vendor->user->is_phone_verified ?? false)
✓
@else
—
@endif
Phone
@if($vendor->status === 'suspended')
Suspended
@elseif($vendor->status === 'approved')
Approved
@else
{{ ucfirst($vendor->status ?? 'pending') }}
@endif
Status
Phone
{{ $vendor->user->phone ?? '—' }}
Email
{{ $vendor->user->email ?? '—' }}
Location
{{ $address->district ?? '—' }}, {{ $address->state ?? '—' }}
Admin Actions
Edit Vendor Details
@if(!($vendor->user->is_phone_verified ?? true))
@else
Phone Verified
@endif
{{-- Approve Vendor (shown whenever not already approved) --}}
@if(strtolower($vendor->status ?? '') !== 'approved')
@else
Vendor Approved
@endif
{{-- Suspend / Reactivate --}}
{{-- Business & Contact Info --}}
{{-- Verification Status --}}
{{-- Documents --}}
Business Information
Vendor Name
{{ $vendor->vendor_name ?? '—' }}
Business Name
{{ $vendor->business_name ?? '—' }}
Vendor Type
{{ $vendor->vendor_type ?? '—' }}
Contact Person
{{ $vendor->contact_person ?? '—' }}
Registered
{{ $vendor->created_at ? $vendor->created_at->format('d M Y') : '—' }}
Village
{{ $address->village ?? '—' }}
Taluka
{{ $address->taluka ?? '—' }}
District
{{ $address->district ?? '—' }}
State
{{ $address->state ?? '—' }}
Pincode
{{ $address->pin_code ?? '—' }}
Verification Status
@php
$checks = [
['label'=>'Phone Verified', 'ok'=>($vendor->user->is_phone_verified ?? false), 'icon'=>'fa-phone'],
['label'=>'KYC Completed', 'ok'=>($vendor->user->is_kyc_completed ?? false), 'icon'=>'fa-id-card'],
['label'=>'Account Active', 'ok'=>($vendor->status !== 'suspended'), 'icon'=>'fa-user-check'],
];
@endphp
@foreach($checks as $chk)
@endforeach
{{ $chk['label'] }}
{{ $chk['ok'] ? 'Yes' : 'No' }}
Uploaded Documents
| # | Document Type | Number | Status | Action |
|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $doc->type->type_name ?? $doc->document_type ?? 'N/A' }} | {{ $doc->document_number ?? '—' }} | @if($doc->status === 'verified') Verified @elseif($doc->status === 'rejected') Rejected @else Pending @endif | |
|
No documents uploaded yet |
||||