@php // Keep the action buttons permission-aware for staff users. $canCreateSupplier = \App\Support\AdminAccess::canAction('suppliers', 'create'); $canEditSupplier = \App\Support\AdminAccess::canAction('suppliers', 'edit'); $canDeleteSupplier = \App\Support\AdminAccess::canAction('suppliers', 'delete'); @endphp

{{ __('Suppliers') }}

{{ __('Manage vendors and purchase sources') }}
@if($canCreateSupplier) @endif
@if (session()->has('message'))
{{ session('message') }}
@endif
@forelse($all_suppliers as $item) {{-- --}} @empty @endforelse
{{ __('Supplier / Company') }} {{ __('Phone') }} {{ __('Email') }} {{ __('NTN') }} {{ __('Opening Balance') }} {{ __('Status') }} {{ __('Actions') }}
{{ $item->display_name }} {{ $item->company_name ?? __('Individual') }}
{{ $item->phone ?? '-' }} {{ $item->email ?? '-' }} {{ $item->ntn_number ?? '-' }} Rs. {{ number_format($item->opening_balance) }} {{ ucfirst($item->status) }}
{{ strtoupper($item->status) }}
@if($canEditSupplier) @endif @if($canDeleteSupplier) @endif
{{ __('No suppliers found.') }}