@extends('admin.admin_dashboard') @section('customcss') @endsection @section('admin')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Filter
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)
{{ $vendor->name }}
@if($vendor->photo) {{ $vendor->name }} @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
@empty
No expense vendors found.
@endforelse
{{ $vendors->links() }}
@endsection @section('customjs') @endsection