@php $total = 0; @endphp @foreach ($response->items as $item) @if($item->is_accepted) @php $itemTotal = $item->supplied_quantity * $item->price_per_unit; $total += $itemTotal; @endphp @endif @endforeach

پیش‌فاکتور

شماره پاسخ: {{ $response->id }}
تاریخ صدور: {{ now()->format('Y/m/d') }}
کد درخواست: {{ $response->purchaseRequest->request_code }}
فروشنده:
{{ $response->supplier->company_name }}
{{ $response->supplier->address }}
{{ $response->supplier->email }}
خریدار:
{{ $response->purchaseRequest->requester->currentTeam->name }}
شرح کالا مقدار قیمت واحد (تومان) جمع کل (تومان)
{{ $item->item_name }} {{ $item->supplied_quantity }} {{ $item->unit }} {{ number_format($item->price_per_unit) }} {{ number_format($itemTotal) }}
جمع کل: {{ number_format($total) }} تومان