@extends('layouts.mop_master') @section('css') @endsection @section('title') Stock Transfer @endsection @section('content')
Stock Transfer History
@foreach ($stockTransfers as $key => $stockTransfer) @endforeach
Sl Voucher Date Voucher Number Action
{{ $key + 1 }} {{ date('d-m-Y', strtotime($stockTransfer->voucher_date)) }} {{ $stockTransfer->voucher_number }} Edit
Stock Transfer History Item Wise
@foreach ($stockTransferItems as $key => $item) @endforeach
Sl Item Name Transferred Quantity
{{ $key + 1 }} {{ $item->stockItem->name }} {{ round($item->total_qty,2) }}
@csrf
Add Stock Transfer
@if ($voucherType->prefix != null) {{ $voucherType->prefix }} @else @endif
@php $tabIndex = 0; @endphp @foreach($orderItems as $orderItem) @php $stockItem = $orderItem->stockItem; if($orderItem->stockItem->manufacturing_unit_id != null){ $unit_qty = \App\Models\StockItemUnits::where('stock_item_id', 796320)->where('unit_id', $orderItem->stockItem->manufacturing_unit_id)->first()->unit_qty; }else{ $unit_qty = 1; } $qty = $orderItem->base_qty / $unit_qty; $unit = $orderItem->unit; $manufacturingItems = $stockItem->stockItemManufacturers; @endphp @foreach($manufacturingItems as $key => $item) @php $manufacturingQty = round($item->quantity * $qty,2); $price = $item->manufacturingItem->baseStockItemUnit->unit_purchase_price; $total = round($price * $qty,2); @endphp @endforeach @endforeach
Item Qty Unit Price Total
{{ isset($inventoryVoucherItems) ? number_format($inventoryVoucherItems->sum('total'), 2) : '0.00' }}
{{-- --}}
@endsection @section('script') @endsection