@extends('layouts.master') @section('css') @endsection @section('title') Stock Entry @endsection @section('content') @isset($inventoryVoucher) @method('put') @else @endisset @csrf @isset($inventoryVoucher) Edit Stock Entry @else Add Stock Entry @endisset Go Back Voucher Number @isset($inventoryVoucher) @if (str_contains($inventoryVoucher->voucher_number, '-')) {{ explode('-', $inventoryVoucher->voucher_number)[0] }} @else @endif @else @if ($voucherType->prefix != null) {{ $voucherType->prefix }} @else @endif @endisset Voucher Type Select voucher type Voucher Date Stock Location Remarks {{ isset($inventoryVoucher) ? $inventoryVoucher->remarks : '' }} Items {{-- @if (Auth::user()->company_profile->show_item_code_in_sales) Item Code @endif Item @if (Auth::user()->company_profile->enable_batch == 1) Batch @endif Qty Unit Cost Total --}} @isset($destinationInventoryVoucherItems) @if (count($destinationInventoryVoucherItems) > 0) @foreach ($destinationInventoryVoucherItems as $key => $inventoryVoucherItem) @php $key = $key + 1; @endphp @if (Auth::user()->company_profile->show_item_code_in_sales) @if (Auth::user()->company_profile->show_item_code_in_sales) Code @endif @endif Item Select item {{ $inventoryVoucherItem->stockItem->name }} @if (Auth::user()->company_profile->enable_batch == 1) Select batch @if ($inventoryVoucherItem->batch_id != null) {{ $inventoryVoucherItem->batch->name }} @endif @endif Qty Unit unit_id == $inventoryVoucherItem->unit->id ? 'selected' : '') : '' }}> {{ $inventoryVoucherItem->unit->symbol }} Cost Total @endforeach @endif @endisset Add Submit Create Batch @csrf Batch @endsection @section('script') @endsection