@extends('index') @section('content') Create Process Travel Card (PTC) Back @csrf PTC No Order Product PTC Date Start Stage End Stage Order Qty From order Already Issued Previous PTCs PTC Qty * PTC Stages @foreach($stages as $index => $stage) {{ $index + 1 }}. {{ $stage->name }} @if($index == 0) (Start) @endif @if($index == count($stages) - 1) (End) @endif @if($index < count($stages) - 1) @endif @endforeach Issue Items for First Stage: {{ $startStage->name }} Employee / Vendor * Select Employee / Vendor @if($employees->count()) @foreach($employees as $item) {{ $item->employee_no }} - {{ $item->name }} @endforeach @endif @if($vendors->count()) @foreach($vendors as $item) {{ $item->vendor_no }} - {{ $item->fname }} @endforeach @endif Materials Select Material @foreach($materials as $material) {{ $material->name }} | {{ $material->uname ?? 'Unit' }} @endforeach Available Stock Quantity Add Add {{-- Material Quantity Tracking --}} Required  |  Issued  |  To Issue (Complete Order) Required  |  Issued  |  To Issue (Selected Article) Required  |  Issued  |  To Issue (Selected Article Size) {{-- Product Components Section --}} @if(isset($productComponents) && $productComponents->count() > 0) Product Components (Other products used in manufacturing) Select Product Component @foreach($productComponents as $component) {{ $component['article_no'] }} - {{ $component['product_name'] }} ({{ $component['size_name'] }}) - Req: {{ $component['quantity'] }} @endforeach Available Stock Quantity Add Add @endif Product Stage Select Stage @foreach($stagesAll as $stage) {{ $stage->name }} @endforeach Available Stock Quantity Add Add Sr. Item / Product Material / Stage Quantity Action Description {{ old('description') }} Create PTC @endsection