| {{ $inventoryVoucher->voucher_date }} |
{{ $inventoryVoucher->voucher_number }} |
{{ $inventoryVoucher->voucherType->name }} |
{{ $inventoryVoucher->amount }} |
{{ $inventoryVoucher->sourceLocation->name }} |
{{ $inventoryVoucher->destinationLocation->name }} |
@foreach ($inventoryVoucher->items()->where('flow', 0)->get() as $key => $item)
@if($key == 0)
{{ $item->stockItem->name }} |
{{ $item->stockItem->stockGroup ? $item->stockItem->stockGroup->name : '--' }} |
{{ $item->quantity }} |
{{ $item->unit->symbol }} |
@php
$sellingPrice = \App\Models\StockItemUnits::where('stock_item_id', $item->stock_item_id)->where('unit_id', $item->unit_id)->first()->unit_selling_price;
@endphp
{{ $sellingPrice }} |
{{ $item->price }} |
{{ $item->total }} |
@else