@extends('layouts.app') @section('title', 'Session Names') @section('content') @include('partials.flash')
arrow_back My Sessions

Session Names

The list trainers pick from when scheduling a session. Add a name here and it appears in the session dropdown, with its description shown as a hint.

@php $input = 'w-full px-4 py-2.5 bg-surface-container rounded-lg border-none focus:ring-2 focus:ring-primary/20 text-body-md outline-none'; $label = 'block text-label-md font-label-md text-on-surface-variant mb-1.5'; @endphp {{-- Add a new session name --}}

add_circle Add a session name

@csrf
@error('name')

{{ $message }}

@enderror
@error('training_code')

{{ $message }}

@enderror
@error('description')

{{ $message }}

@enderror
{{-- Existing session names --}}
@forelse($names as $tn) @php $used = (int) ($counts[$tn->name] ?? 0); @endphp @empty @endforelse
Name Code Description Sessions Actions
@csrf @method('PUT')
@if($tn->creator)

added by {{ $tn->creator->name }}

@endif
{{ $used }}
@csrf @method('DELETE')
No session names yet. Add your first one above.

info To fix a duplicate (e.g. “Fire Marshall” vs “Fire Marshal”), rename one to exactly match the other — their sessions merge under the single correct name.

@endsection