@extends('layouts.app') @section('content')
No transactions found for this customer.
| Time | Type | Details | Paid Amount | Due Amount |
|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($item['data']->time)->format('h:i A') }} | @if($item['type'] === 'bill') Bill @else Payment @endif |
@if($item['type'] === 'bill')
Bill #{{ $item['data']->id }}
@foreach($item['data']->billItems as $billItem)
• {{ $billItem->product->name }}
({{ $billItem->qty }} × {{ number_format($billItem->price, 2) }})
@else
@endforeach Payment
Time: {{ \Carbon\Carbon::parse($item['data']->time)->format('h:i A') }}
@if(!empty($item['data']->notes))
Note: {{ $item['data']->notes }}
@endif
|
@if($item['type'] === 'bill') {{ number_format(0, 2) }} @else {{ number_format($item['data']->paid_amount, 2) }} @endif | @if($item['type'] === 'bill') {{ number_format($item['amount'], 2) }} @else {{ number_format($item['data']->due_amount, 2) }} @endif |