@extends('layouts.default') @section('content') @php $json = json_encode(array_merge($product->toArray(), ['dmf_cep' => $product->dmf_number])); $sections = [ 'Product Overview' => [ 'Generic Name' => $product->generic_name, 'Brand Name(s)' => $product->brand_names, 'Category' => optional($product->category)->name, 'Form' => $product->form, 'Strength' => $product->strength, 'Therapeutic Class' => $product->therapeutic_class, 'ATC Code' => $product->atc_code, ], 'Manufacturing & Regulatory' => [ 'Manufacturer' => $product->manufacturer_name, 'GMP Compliance' => $product->gmp_status, 'DMF/CEP' => $product->dmf_number, 'COFEPRIS' => $product->cofepris_status, 'Free Sale Certificate' => $product->free_sale_certificate, ], 'Logistics & Export' => [ 'MOQ' => $product->moq, 'Shelf Life' => $product->shelf_life, 'Storage' => $product->storage, 'Incoterms' => $product->incoterms, 'Lead Time' => $product->lead_time, ], 'Documentation Available Upon Request' => [ 'Certificate of Analysis (PDF)' => $product->coa, 'GMP Certificate (PDF)' => $product->gmp_certificate, 'SDS-Safety Data Sheet (PDF)' => $product->sds, 'CTD Summary (PDF)' => $product->ctd_summary, ], ]; @endphp
@if ($product->image) {{ $product->generic_name }} @else
No image
@endif

{{ $product->generic_name }}

@foreach ($sections as $title => $rows) @php $rows = array_filter($rows, fn ($v) => $v !== null && trim((string) $v) !== ''); @endphp @if (count($rows))

{{ $title }}

@foreach ($rows as $label => $value) @endforeach
{{ $label }}{{ $value }}
@endif @endforeach
@stop