@extends('customers.layout') @section('customers.content')
ID: | {{$supplier->id}} |
---|---|
Name: | {{ $supplier->name ?: "-" }} |
Contact: | {{ $supplier->contact ?: "-" }} |
Alt Contact: | {{ $supplier->alt_contact ?: "-" }} |
Balance: | {{ $supplier->balance ?: "-" }} |
Created at | {{Carbon\Carbon::parse($supplier->created_at)->format('d/m/Y H:i:s')}} |
Updated at | {{Carbon\Carbon::parse($supplier->updated_at)->format('d/m/Y H:i:s')}} |
Date | Branch | Inventory Item | Rate | Quantity | Amount | @foreach($supplier->intakes as $intake)
---|---|---|---|---|---|
{{ date('d-M-Y',strtotime($intake->date)) }} | {{ $intake->branch?->name }} | {{ $intake->inventory?->name }} | {{ $intake->rate ? number_format($intake->supplier_rate) : 0 }} | {{ $intake->quantity ? number_format($intake->quantity) : 0 }} | UGX {{ (($intake->amount)?number_format($intake->supplier_rate * $intake->quantity) : 0) }} |
Date | Amount | Balance | @foreach($supplier->payments as $payment)
---|---|---|
{{ date('d-M-Y',strtotime($payment->date)) }} | {{ (($payment->amount)?number_format($payment->amount) : '0') }} | {{ (($payment->amount)?number_format($payment->balance):'0') }} |