@extends('layouts.app') @section('content') @php($facilities = $product['facilities'] ?? []) Book a Demo
@foreach ($product['overview'] as $paragraph)

{{ $paragraph }}

@endforeach

Ideal for: {{ $product['ideal_for'] }}

@if ($facilities) {{-- The key features follow below as icon cards, so this box only points to them --}} @endif
{{-- Overview picture (config/products.php -> image) --}} @isset($product['image'])
{{ $product['image_alt'] }}
@endisset {{-- Key features: an icon, a name and a description for each (config/products.php -> facilities) --}} @if ($facilities) @php($count = count($facilities)) @php($cols = $count % 4 === 0 ? 4 : 3) {{-- With 3 columns and one card left over (7 cards), the last card runs the full width --}} @php($wideLast = $cols === 3 && $count % 3 === 1)
    $cols === 4, 'lg:grid-cols-3' => $cols === 3, ])> @foreach ($facilities as $facility) @php($wide = $wideLast && $loop->last)
  • ! $wide, 'sm:col-span-2 lg:col-span-3 lg:items-center lg:gap-6' => $wide, ])> {{ $facility['title'] }} {{ $facility['text'] }}
  • @endforeach
@endif {{-- Feature catalogue: short tiles with an icon, a name and one line (config/products.php -> catalogue) --}} @if (! empty($product['catalogue'])) @php($catalogue = $product['catalogue']) @php($moduleNumber = 0)
{{-- Equal tiles: 1 across on phones, then 2, 3 and 4. Tiles wrap in a centred flex row (not a grid), so an unfinished last row sits in the middle instead of leaning left. --}}
@foreach ($catalogue['groups'] as $group)

{{ $group['label'] }}

    @foreach ($group['modules'] as $module) @php($moduleNumber++)

    {{ $module['text'] }}

    @endforeach
@endforeach
{{-- Hospital modules beyond a stand-alone laboratory --}} @if (! empty($catalogue['hmis'])) @php($hmisPart = $catalogue['hmis'])
    @foreach ($hmisPart['items'] as $item) @php($moduleNumber++)

    {{ $item['text'] }}

    @endforeach
@endif {{-- Standards: a name and one line each --}} @if (! empty($catalogue['standards'])) @php($standards = $catalogue['standards'])
@foreach ($standards['items'] as $standard)
{{ $standard['name'] }}
{{ $standard['use'] }}
@endforeach
@if (! empty($standards['note']))

{{ $standards['note'] }}

@endif
@endif {{-- Editions --}} @if (! empty($catalogue['editions'])) @php($editions = $catalogue['editions'])
    @foreach ($editions['items'] as $edition)
  • {{ $edition['name'] }}

    {{ $edition['text'] }}

  • @endforeach
@if (! empty($editions['note']))

{{ $editions['note'] }}

@endif
@endif @endif {{-- Other products --}}
@foreach (collect(config('products.items'))->except($slug) as $otherSlug => $other) {{ $other['summary'] }} @endforeach
@endsection