فاربریکه ریخت المونیم اطلس
پرداختها برای فاکتور: #{{ $sale->invoice_number ?? '' }}
مشتری:
{{ optional($sale->customer)->first_name ?? '' }} {{ optional($sale->customer)->last_name ?? '' }}
شماره تماس: {{ optional($sale->customer)->phone ?? '-' }}
آدرس: {{ optional($sale->customer)->address ?? '-' }}
@php
$totalPrice = ($sale->items->sum('total_price') ?? 0) - ($sale->discount ?? 0);
$totalPaid = ($sale->payments->sum('amount') ?? 0);
$remaining = $totalPrice - $totalPaid;
@endphp
جمع کل فاکتور:
{{ number_format($totalPrice) }} AFN
پرداخت شده: {{ number_format($totalPaid) }} AFN
باقیمانده: {{ number_format($remaining) }} AFN
تعداد پرداختها: {{ $sale->payments->count() }}
امضای مدیر کارخانه
امضای مشتری