@extends('layouts.app') @section('title', 'POSM Norm Template Details') @section('content')
POSM Norm Template Details
Template Info
{{ $template->is_active ? 'Active' : 'Inactive' }}
{{ $template->name }}
@foreach($template->outlet_types ?? [] as $type) {{ ucfirst($type) }} @endforeach

{{ $template->description ?: 'No description provided.' }}

Created
{{ $template->created_at->format('d M Y') }}
Last Updated
{{ $template->updated_at->format('d M Y') }}
Assigned Products ({{ $template->items->count() }})
@foreach($template->items as $item) @endforeach
PRODUCT CATEGORY MIN QTY MAX QTY MUST HAVE DEVIATION
{{ $item->product->name ?? 'Deleted Product' }}
{{ $item->product->code ?? 'N/A' }}
{{ $item->product->category ?? 'N/A' }} {{ $item->min_quantity }} {{ $item->max_quantity }} @if($item->must_have) @else @endif {{ $item->deviation_tolerance }}
@endsection @push('js') @endpush