@extends('layouts.app') @section('content')

Certificate Management

Manage certificates, add new certificates to all vessels, and reorder certificates.

@if(session('success')) @endif @if(session('error')) @endif
Create New Certificate
@csrf
@error('name')
{{ $message }}
@enderror
@foreach($categories as $category) @error('category')
{{ $message }}
@enderror
New certificates are automatically added to all vessels.
Certificate Reordering
Drag and drop certificates to reorder them. Changes will be applied to all vessels.
@foreach($certificates->groupBy('category') as $category => $categoryCertificates) @foreach($categoryCertificates->sortBy('display_order') as $certificate) @endforeach @endforeach
# Category Certificate Name Display Order Actions
{{ $loop->parent->index + 1 }}.{{ $loop->index + 1 }} {{ $category }} {{ $certificate->name }} {{ $certificate->display_order }}
@endsection @section('scripts') @endsection