@extends('print.layout') @section('title', 'PTC_Template_' . ($product->article_no ?? 'N/A')) @section('content')
Process Travel Card (PTC)
{{-- Product Header Information --}}
Product Name: {{ $product->name ?? 'N/A' }}
Article No: {{ $product->article_no ?? 'N/A' }}
Size: @if($size && count($size) > 0) {{ collect($size)->pluck('name')->join(', ') }} @else N/A @endif
Category: {{ $product->cname ?? 'N/A' }}
Unit: {{ $product->hname ?? 'N/A' }}
{{-- PTC Process Table --}}

Production Processes

@php $stageIds = explode('|', $product->stage_ids ?? '0'); $stageIds = array_filter($stageIds, function($id) { return $id != '0'; }); $srNo = 1; @endphp @foreach($stage as $stageItem) @if(in_array($stageItem->head_id, $stageIds)) @php $srNo++; @endphp @endif @endforeach {{-- PTC-Close Row --}}
@endsection