{{-- resources/views/purchases/suppliers/index.blade.php --}} @extends('layouts.app') @section('title', 'Suppliers') @section('page_title', 'Suppliers') @section('page_subtitle', 'Manage your suppliers and vendors') @section('content') {{-- Stats --}}
{{ $stats['total'] }}
Total Suppliers
{{ $stats['active'] }}
Active
${{ number_format($stats['total_owed'], 0) }}
Total Owed
{{-- Filters --}}
@if(request('search')) Clear @endif
Suppliers {{ $suppliers->total() }} total
@if($suppliers->isEmpty())

No suppliers yet

Add First Supplier
@else
@foreach($suppliers as $supplier) @endforeach
Supplier Contact Category Orders Credit Terms Status
{{ $supplier->name }}
@if($supplier->contact_person)
{{ $supplier->contact_person }}
@endif
@if($supplier->email)
{{ $supplier->email }}
@endif @if($supplier->phone)
{{ $supplier->phone }}
@endif
{{ $supplier->category ?? '—' }} {{ $supplier->purchase_orders_count }} {{ $supplier->credit_terms_days ?? 0 }} days {{ $supplier->is_active ? 'Active' : 'Inactive' }} View →
@if($suppliers->hasPages())
{{ $suppliers->links() }}
@endif @endif
@endsection