@extends('index') @section('content') Edit PTC Issuance Back @csrf @method('PUT') PTC No: PTC-{{ $ptc->stock_no }} Product: {{ $product ? $product->name . ' - ' . $product->size_name : 'N/A' }} Order: {{ $ptc->job_no ?? 'Default PTC' }} Issuance No: I{{ str_pad($issuance->stock_no, 3, '0', STR_PAD_LEFT) }} Issuance Date * Issue For Stage * @foreach($stages as $stage) issue_for == $stage->head_id ? 'selected' : '' }}>{{ $stage->name }} @endforeach Issue To (Employee / Contractor) * Select Employee / Contractor @if($employees->count()) @foreach($employees as $item) table_name == 'employee' && $issuance->employee_id == $item->employee_id ? 'selected' : '' }}>{{ $item->employee_no }} - {{ $item->name }} @endforeach @endif @if($vendors->count()) @foreach($vendors as $item) table_name == 'vendor' && $issuance->employee_id == $item->vendor_id ? 'selected' : '' }}>{{ $item->vendor_no }} - {{ $item->fname }} @endforeach @endif Description {{ $issuance->description }} Issued Items Sr. Item Stage Quantity @foreach($issuanceItems as $item) {{ $loop->iteration }} @if($item->component_product_type_id) Component: {{ $item->component_article_no ?? '' }} - {{ $item->component_name ?? '' }} @elseif($item->material_id > 0) {{ $item->mname ?? 'Material #'.$item->material_id }} @else {{ $item->name ?? 'Product' }} - {{ $item->sname ?? 'Size' }} @endif {{ $item->stname ?? 'N/A' }} @endforeach Cancel Update Issuance @endsection