{{ $tenant->name }}
@if ($tenant->phone){{ $tenant->phone }}
@endif
@if ($tenant->address){{ \Illuminate\Support\Str::limit($tenant->address, 70) }}@endif
شماره:{{ $invoice->number }}
تاریخ:{{ jdate($invoice->created_at, 'Y/m/d H:i') }}
مشتری:{{ $invoice->customer?->display_name }}
فروشنده:{{ $invoice->creator?->name ?? auth()->user()?->name }}
| کالا | مقدار | مبلغ |
@foreach ($invoice->items as $item)
| {{ $item->product?->name }} |
{{ rm_weight($item->quantity) }} |
{{ rm_money($item->amount) }} |
@endforeach
جمع کالاها{{ rm_money($invoice->subtotal) }}
@if (\App\Support\Dec::isPositive($invoice->discount, 2))
تخفیف{{ rm_money($invoice->discount) }}
@endif
@if (\App\Support\Dec::isPositive($invoice->tax, 2))
مالیات{{ rm_money($invoice->tax) }}
@endif
قابل پرداخت{{ rm_money($invoice->total) }}
پرداخت شده{{ rm_money($invoice->paid_amount) }}
@if (\App\Support\Dec::isPositive($invoice->due_amount, 2))
مانده (نسیه){{ rm_money($invoice->due_amount) }}
@endif
@if (\App\Support\Dec::isPositive($change, 2))
باقیمانده وجه{{ rm_money($change) }}
@endif
@if ($invoice->payment)
@foreach ($invoice->payment->lines as $line)
{{ $line->methodLabel() }}{{ rm_money($line->amount) }}
@endforeach
@endif