@extends('layouts.master') @section('css') @endsection @section('title') Stock Transfer Request @endsection @section('content') @isset($transferRequest) @method('put') @else @endisset @csrf @isset($transferRequest) Edit Stock Transfer Request @else Add Stock Transfer Request @endisset @isset($transferRequest) Go Back @endisset Date {{-- Source Select location @foreach ($stockLocations as $stockLocation) source_stock_location_id == $stockLocation->id ? 'selected' : '') : '' }}> {{ $stockLocation->name }} @endforeach --}} Destination Select location @foreach ($stockLocations as $stockLocation) destination_stock_location_id == $stockLocation->id ? 'selected' : '') : '' }}> {{ $stockLocation->name }} @endforeach Remarks {{ isset($transferRequest) ? $transferRequest->remarks : '' }} Stock Transfer Request Item Qty Unit Price Total @isset($transferRequestItems) @php $tabIndex = 0; @endphp @if (count($transferRequestItems) > 0) @foreach ($transferRequestItems as $key => $transferRequestItem) @php $key = $key + 1; @endphp Select item {{ $transferRequestItem->stockItem->name }} unit_id == $transferRequestItem->unit->id ? 'selected' : '') : '' }}> {{ $transferRequestItem->unit->symbol }} @if($transferRequestItem->stockItem->stockItemUnits->isNotEmpty()) @foreach ($transferRequestItem->stockItem->stockItemUnits as $unit ) {{ $unit->unit->symbol }} @endforeach @endif @php $tabIndex = $tabIndex + 4; @endphp @endforeach @endif @endisset {{ isset($transferRequestItems) ? number_format($transferRequestItems->sum('total'), 2) : '0.00' }} Add Submit @endsection @section('script') @endsection