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)

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)

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' }}.