@push('title') Supplier: {{ $supplier->name }} @endpush {{-- Header --}}

Supplier / {{ $supplier->name }}

Back @can('update_supplier_management') Edit Supplier @endcan View Public Portal
{{-- Left Column: Main Information --}}
{{-- General Details --}}
{{ $supplier->name }}
{{ $supplier->phone ?? 'N/A' }}
{{ $supplier->email ?? 'N/A' }}
{{ $supplier->address ?? 'N/A' }}
@if($supplier->reps->count() > 0)
{{ $supplier->reps->first()->name }}
@endif
{{-- Company Representatives --}}
Company Representatives
@forelse($supplier->reps as $rep) @empty @endforelse
Name Email Phone
{{ substr($rep->name, 0, 1) }}
{{ $rep->name }}
@if($rep->email) {{ $rep->email }} @else N/A @endif @if($rep->phone) {{ $rep->phone }} @else N/A @endif
No representatives listed.
{{-- Related Goods Receipt Notes (GRN) --}}
Recent Receipts (GRN)
View All
@forelse($grns as $grn) @empty @endforelse
GRN No Date Warehouse Status Total Paid Outstanding
{{ $grn->grn_no }} {{ \Carbon\Carbon::parse($grn->date)->format('d M Y') }} {{ $grn->warehouse->name ?? 'N/A' }} @if($grn->status == 'approved') @if($grn->payment_status == 'paid') Paid @elseif($grn->payment_status == 'partial') Partial @else Pending @endif @else {{ $grn->status }} @endif Rs {{ number_format($grn->grand_total, 2) }} Rs {{ number_format($grn->paid_amount, 2) }} Rs {{ number_format($grn->grand_total - $grn->paid_amount, 2) }}
No GRN history available.
{{-- Recent Payments --}}
Recent Payments
@forelse($payments as $payment) @empty @endforelse
Date Method For GRN Notes Amount
{{ \Carbon\Carbon::parse($payment->payment_date)->format('d M Y') }} {{ $payment->payment_method }} @if($payment->grn) {{ $payment->grn->grn_no }} @else General @endif {{ $payment->notes ?? '-' }} Rs {{ number_format($payment->amount, 2) }}
No payment history found.
{{-- Recent SMS Communication --}}
Recent SMS Communication
@forelse($smsLogs as $log) @empty @endforelse
Message Date Category Status
{{ $log->message }}
{{ $log->created_at->format('d M Y') }}
{{ $log->created_at->format('H:i') }}
{{ str_replace('_', ' ', $log->category) }} @if($log->status == 'sent') Sent @else Failed @endif
No SMS communication logs found.
{{-- Right Column: Stats & Metadata --}}
Quick Overview
Total Outstanding Rs {{ number_format($supplier->outstanding_balance, 2) }}
Total Purchase Orders {{ $poCount }}
Approved Receipts (GRN) {{ $grnCount }}
{{ $supplier->createdBy->name ?? 'System' }}
{{ $supplier->created_at->format('d M Y, H:i') }}
@if($supplier->updatedBy)
{{ $supplier->updatedBy->name }}
{{ $supplier->updated_at->format('d M Y, H:i') }}
@endif