Supplier Portal
{{ $supplier->name }}
Current Outstanding Balance
Rs {{ number_format($netBalance, 2) }}
Total Purchases
Rs {{ number_format($totalPurchases, 2) }}
Returns / Credits
Rs {{ number_format($totalReturns, 2) }}
Total Amount Paid
Rs {{ number_format($totalPayments, 2) }}
@php $recentPayments = \App\Models\SupplierPayment::where('supplier_id', $supplier->id)->latest()->limit(5)->get(); @endphp @if($recentPayments->count() > 0)
Recent Payments Received
@foreach($recentPayments as $payment)
Payment Received
{{ \Carbon\Carbon::parse($payment->payment_date)->format('d M Y') }}
{{ $payment->payment_method }} @if($payment->grn_id)
For {{ $payment->grn->grn_no ?? 'Receipt' }} @endif
+Rs {{ number_format($payment->amount, 2) }}
@endforeach
@endif
Recent Purchase Orders
@if($purchaseOrders->isEmpty())
No purchase orders found.
@else
@foreach($purchaseOrders as $index => $po)
#{{ $po->po_code }}
{{ \Carbon\Carbon::parse($po->order_date)->format('d M y') }}
{{ $po->warehouse->name }}
Rs {{ number_format($po->total_amount, 2) }}
@if($po->status == 1)
Received
@elseif($po->status == 2)
Partial
@else
Pending
@endif
Ordered Items
@foreach($po->items as $item)
{{ $item->product->name ?? 'Unknown Item' }} @if($item->productVariation)
{{ $item->productVariation->variationType->name ?? $item->productVariation->name }}
@endif
{{ $item->qty }} x Rs {{ number_format($item->unit_price, 2) }}
Rs {{ number_format($item->total, 2) }}
@endforeach
@endforeach
@endif
Recent Receipts (GRN)
@if($grns->isEmpty())
No receipt history found.
@else
@foreach($grns as $index => $grn)
{{ $grn->grn_no }}
{{ \Carbon\Carbon::parse($grn->date)->format('d M y') }}
PO: {{ $grn->purchaseOrder->po_code ?? 'N/A' }}
Rs {{ number_format($grn->grand_total, 2) }}
Verified
Received Items
@foreach($grn->items as $item)
{{ $item->product->name ?? 'Unknown Item' }} @if($item->productVariation)
{{ $item->productVariation->variationType->name ?? $item->productVariation->name }}
@endif
{{ $item->received_qty }} x Rs {{ number_format($item->unit_cost, 2) }}
Rs {{ number_format($item->total_amount, 2) }}
@endforeach
@endforeach
@endif
This is your live financial summary with
{{ $settings->shop_name ?? 'our company' }}
.