@php $contactPermissionPrefix = ($contactType ?? '') === 'customer' ? 'customers' : 'suppliers'; @endphp
{{ $title }}
@if(!empty($showActivationButton)) License Activation @endif
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
{{ $errors->first() }}
@endif
@csrf
@if(($contactType ?? '') === 'customer')
@endif @if(($contactType ?? '') === 'supplier')
@endif
Reset
Available {{ $title }} {{ number_format(method_exists($records, 'total') ? $records->total() : $records->count()) }} records
@if(($contactType ?? '') === 'customer')@endif @if(($contactType ?? '') === 'customer') @endif @if(($contactType ?? '') === 'supplier') @endif @forelse($records as $record) @if(($contactType ?? '') === 'customer')@endif @if(($contactType ?? '') === 'customer') @endif @if(($contactType ?? '') === 'supplier') @php $openingPaid = (float) ($record->opening_balance_paid ?? 0); $openingDue = $record->opening_balance_due; $purchaseDue = max((float) ($record->purchase_balance ?? 0), 0); $totalPayable = $openingDue + $purchaseDue; @endphp @endif @empty @endforelse
Name Phone Email AddressPINBranchAvailable Advance Pending BalanceOpening Balance Opening Due Purchase Due Total PayableStatus Action
{{ $record->name }} {{ $record->phone ?: '-' }} {{ $record->email ?: '-' }} {{ $record->address ?: '-' }}{{ $record->tax_pin ?: '-' }}{{ $record->branch?->name ?: 'Unassigned' }}{{ \App\Models\SystemSetting::formatMoney(max(0, (float) $record->available_advance)) }} {{ \App\Models\SystemSetting::formatMoney((float) $record->pending_balance) }}{{ \App\Models\SystemSetting::formatMoney($record->opening_balance) }} {{ \App\Models\SystemSetting::formatMoney($openingDue) }} {{ \App\Models\SystemSetting::formatMoney($purchaseDue) }} {{ \App\Models\SystemSetting::formatMoney($totalPayable) }}{{ $record->is_active ? 'Active' : 'Inactive' }}
Edit @if(($contactType ?? '') === 'customer') Receive Payment Customer Statement View Invoices @endif @if(($contactType ?? '') === 'supplier') View Purchases @if($record->opening_balance_due > 0) @endif @endif
@csrf @method('DELETE')
No records found.
{{ $records->links('vendor.pagination.jevapos') }}
@if(($contactType ?? '') === 'supplier') @endif