@extends('layouts.app') @section('title', $supplier->company_name) @section('page_title', 'Supplier Profile & Ledger') @section('content')
Supplier Info
{{ $supplier->supplier_code }} {{ ucfirst($supplier->status) }}
Company Name {{ $supplier->company_name }}
Contact Person {{ $supplier->contact_person }}
Phone {{ $supplier->phone }}
@if($supplier->email)
Email {{ $supplier->email }}
@endif @if($supplier->tin)
TIN {{ $supplier->tin }}
@endif
Accounts Payable Balance {{ number_format($supplier->outstanding_balance) }} UGX
Back to Suppliers
@forelse($ledgerEntries as $entry) @empty @endforelse
Date Reference Description Debit (-) Credit (+) Balance
{{ $entry->created_at->format('M d, Y H:i') }} {{ $entry->reference }} {{ $entry->description }} {{ $entry->debit > 0 ? number_format($entry->debit) : '-' }} {{ $entry->credit > 0 ? number_format($entry->credit) : '-' }} {{ number_format($entry->balance) }} UGX
No payable entries yet.
@forelse($purchaseOrders as $po) @empty @endforelse
PO Number Date Ordered Total Amount Status Actions
{{ $po->po_number }} {{ $po->order_date->format('M d, Y') }} {{ number_format($po->total) }} UGX {{ ucfirst($po->status) }} @if($po->status === 'ordered')
@csrf
@elseif($po->status === 'received' && $po->received_at) Received at {{ $po->received_at->format('M d, Y') }} @else {{ ucfirst($po->status) }} @endif
No purchase orders logged yet.
@endsection @section('scripts') @endsection