@extends('index')
@section('content')
Process Travel Cards (PTC)
@if($ptcList->count())
@foreach($ptcList as $item)
@php
// Extract quantity from description [QTY:X] format
$ptcQty = 1;
if (preg_match('/\[QTY:(\d+)\]/', $item->description ?? '', $matches)) {
$ptcQty = $matches[1];
}
@endphp
Sr.
Date
PTC No
Order
Product
Quantity
Current Stage
Status
Action
@endforeach
@endif
{{$loop->index + 1}}
{{$item->stock_date}}
PTC-{{$item->stock_no}}
{{$item->job_no ?? 'Default PTC'}}
{{$item->product_name}} - {{$item->size_name}}
{{$ptcQty}}
{{$item->current_stage_name ?? '-'}}
@if($item->stock_status == 6)
In Progress
@elseif($item->stock_status == 7)
Completed
@else
Unknown
@endif
View
{{-- @if($item->stock_status == 6)
Move Stage
@endif --}}