@extends('layouts.portal')
@php
$u = auth()->user();
$md = fn (?string $t) => \Illuminate\Support\Str::markdown(preg_replace('/^\s*[•▪]\s*/mu', '- ', (string) $t), ['html_input' => 'strip', 'allow_unsafe_links' => false]);
$level = ['L1' => 'Foundation', 'L2' => 'Associate', 'L3' => 'Professional', 'L4' => 'Expert'][$project->difficulty] ?? $project->difficulty;
$isStudent = $u->isStudent();
$reviewed = $submission && $submission->score !== null;
$labs = $project->course?->labs()->where('published', true)->get() ?? collect();
@endphp
@section('title', $project->title)
@section('subtitle', ($project->course?->title ?? 'Capstone').' · Level '.$project->difficulty.' ('.$level.') · scored out of '.$project->max_score)
@section('actions')