@extends('institution.layout') @section('title','Programmes') @section('meta_description',$site['programmes_meta_description'] ?: $site['programmes_text']) @section('heading',$site['programmes_heading']) @section('intro',$site['programmes_text']) @section('content') @php($programmeCards=collect(preg_split('/\r?\n/',$site['programme_catalog']))->map(fn($row)=>array_map('trim',explode('|',$row)))->filter(fn($row)=>count($row)>=2&&$row[0]!=='')) @if($programmeCards->isNotEmpty())
@foreach($programmeCards as $programme)
{{ $programme[2] ?? 'Programme' }}

{{ $programme[0] }}

{{ $programme[1] }}

@endforeach
@else
{{ $site['programmes_empty_text'] }}
@endif

{{ $site['programmes_details_heading'] }}

{{ $site['programmes_details_text'] }}

{{ $site['programmes_note'] }}
{{ $site['programmes_contact_button'] }}
@endsection