@extends('layouts.master') @section('css') @endsection @section('title') Physical Stock @endsection @section('content') @isset($physicalStock) @method('put') @else @endisset @csrf @isset($physicalStock) Edit Physical Stock Registration @else Add Physical Stock Registration @endisset @isset($physicalStock) Go Back @endisset Voucher Number {{-- @isset($physicalStock) @if (str_contains($physicalStock->voucher_number, '-')) {{ explode('-', $physicalStock->voucher_number)[0] }} @else @endif @else @if ($voucherType->prefix != null) {{ $voucherType->prefix }} @else @endif @endisset --}} Voucher Type Select voucher type {{ isset($physicalStock) ? $physicalStock->voucherType->name : '' }} Voucher Date Location Choose location @foreach ($stockLocations as $stockLocation) stock_location_id == $stockLocation->id ? 'selected' : '') : '' }}> {{ $stockLocation->name }} @endforeach Remarks {{ isset($physicalStock) ? $physicalStock->remarks : '' }} Items Item Qty Unit Cost @isset($physicalStock) @if (count($physicalStock->physicalStockItems) > 0) @foreach ($physicalStock->physicalStockItems as $key => $item) @php $key = $key + 1; @endphp Select item {{ $item->stockItem->name }} unit_id == $item->unit->id ? 'selected' : '') : '' }}> {{ $item->unit->symbol }} @endforeach @endif @endisset Add Submit @endsection @section('script')