@extends('layouts.app') @section('title', 'Suppliers') @section('breadcrumb') @endsection @section('content') {{-- Stats Cards --}}
{{ $suppliers->total() }}
Total Suppliers
{{ $suppliers->where('is_active', true)->count() }}
Active Suppliers
Rs. {{ number_format($suppliers->sum('current_balance'), 0) }}
Total Balance Due
{{-- Search --}}
{{-- Suppliers Table --}}
All Suppliers
{{ $suppliers->total() }} suppliers
@forelse($suppliers as $supplier) @empty @endforelse
Supplier Contact Address Balance Due Status Actions
{{ $supplier->name }}
@if($supplier->company) {{ $supplier->company }} @endif
@if($supplier->phone)
{{ $supplier->phone }}
@endif @if($supplier->mobile) {{ $supplier->mobile }} @endif @if($supplier->email)
{{ $supplier->email }}
@endif
@if($supplier->city || $supplier->country) {{ $supplier->city }}{{ $supplier->country ? ', ' . $supplier->country : '' }} @else - @endif Rs. {{ number_format($supplier->current_balance, 2) }} @if($supplier->is_active) Active @else Inactive @endif
@csrf @method('DELETE')

No suppliers found

Add First Supplier
@if($suppliers->hasPages())
{{ $suppliers->links() }}
@endif
@endsection