@lang('manufacturing::lang.Xproduction_details')

@php $grand_total = 0; $grand_quantity = 0; @endphp @foreach($transactions as $transaction) @foreach($transaction->purchase_lines as $line) @php $product_name = $line->variation->product->name ?? ''; $sub_sku = $line->variation->sub_sku ?? ''; $unit_cost = $line->purchase_price_inc_tax ?? 0; $qty = $line->quantity ?? 0; $total = $unit_cost * $qty; $grand_total += $total; $grand_quantity += $qty; @endphp @endforeach @endforeach
@lang('purchase.ref_no') @lang('messages.date') @lang('sale.product') @lang('lang_v1.quantity') @lang('manufacturing::lang.unit_cost') @lang('manufacturing::lang.total_price') @lang('purchase.business_location')
{{ $transaction->ref_no }} {{ @format_date($transaction->transaction_date) }} {{ $product_name }} ({{ $sub_sku }}) {{ @format_quantity($qty) }} {{ @num_format($unit_cost) }} {{ @num_format($total) }} {{ $transaction->location->name ?? '-' }}
@lang('lang_v1.total_quantity') {{ @format_quantity($grand_quantity) }} @lang('manufacturing::lang.total_cost') {{ @num_format($grand_total) }}