@extends('layouts.app') @section('title', $supplier->name) @section('breadcrumb')
{{ $supplier->company }}
@endif| Contact | {{ $supplier->name }} |
| Company | {{ $supplier->company ?? '—' }} |
| Phone | {{ $supplier->phone ?? '—' }} |
| {{ $supplier->email ?? '—' }} | |
| Address | {{ $supplier->address ?? '—' }} |
| Opening Bal. | ৳{{ number_format($supplier->opening_balance, 2) }} |
| Added On | {{ $supplier->created_at->format('d M Y') }} |
| Invoice | Date | Total | Paid | Due | Status |
|---|---|---|---|---|---|
| {{ $purchase->invoice_no }} | {{ $purchase->purchase_date->format('d M Y') }} | ৳{{ number_format($purchase->total_amount, 2) }} | ৳{{ number_format($purchase->paid_amount, 2) }} | {{ $purchase->due_amount > 0 ? '৳'.number_format($purchase->due_amount, 2) : '—' }} | @php $pc=['received'=>'success','partial'=>'warning','paid'=>'success','ordered'=>'info','draft'=>'secondary','returned'=>'danger']; @endphp{{ ucfirst($purchase->status) }} |
| Date | Amount | Method | Account | Reference |
|---|---|---|---|---|
| {{ $pmt->payment_date->format('d M Y') }} | ৳{{ number_format($pmt->amount, 2) }} | {{ ucfirst(str_replace('_',' ',$pmt->payment_method)) }} | {{ $pmt->account->name }} | {{ $pmt->reference ?? '—' }} |