@extends('index') @section('content') Edit Process Travel Card (PTC) Back @csrf @method('PUT') PTC No Order Product PTC Date Start Stage End Stage Product Quantity PTC Stages @foreach($stages as $index => $stage) {{ $index + 1 }}. {{ $stage->name }} @if($index < count($stages) - 1) @endif @endforeach Issued Items Employee / Vendor Select Employee / Vendor @if($employees->count()) @foreach($employees as $item) employee_id == $item->employee_id && $ptc->table_name == 'employee' ? 'selected' : '' }}>{{ $item->employee_no }} - {{ $item->name }} @endforeach @endif @if($vendors->count()) @foreach($vendors as $item) employee_id == $item->vendor_id && $ptc->table_name == 'vendor' ? 'selected' : '' }}>{{ $item->vendor_no }} - {{ $item->fname }} @endforeach @endif Materials Select Material @foreach($materials as $material) {{ $material->name }} | {{ $material->unit }} @endforeach Available Stock Quantity Add Add Product Stage Select Stage @foreach($stages as $stage) {{ $stage->name }} @endforeach Available Stock Quantity Add Add Sr. Item / Product Material / Stage Quantity Action @php $rowIndex = 1; @endphp @foreach($stockItems as $item) {{ $rowIndex++ }} @if($item->material_id > 0) Material {{ $item->name }} @else {{ $product ? $product->name . ' - ' . $product->size_name : 'N/A' }} {{ $item->stage ?? 'N/A' }} @endif {{ $item->quantity }} X @endforeach Description {!! $ptc->description !!} Update PTC @endsection