@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
Displaying vendors
@if($vendors instanceof \Illuminate\Pagination\LengthAwarePaginator)
from {{ $vendors->firstItem() ?? 0 }} to {{ $vendors->lastItem() ?? 0 }}
@endif
out of total {{ $totalVendors }} |
Active: {{ $activeCount }} |
Inactive: {{ $inactiveCount }}
@forelse($vendors as $vendor)
@empty
@endforelse
{{ $vendor->name }}
@if($vendor->photo)
@else
Photo
@endif
Reg. No: {{ str_pad((string)$vendor->id, 2, '0', STR_PAD_LEFT) }}
Age: -- years
Reg. Date: {{ optional($vendor->created_at)->format('d-m-Y') }}
Company: {{ $vendor->company_name ?: '--' }}
Primary: {{ $vendor->primary_phone ?: '--' }}
@if($vendor->is_active)
Active
@else
Inactive
@endif
No expense vendors found.
{{ $vendors->links() }}