@extends('layouts.admin') @section('title', $library->name) @section('content') @can('update', $library) Edit @endcan @can('delete', $library) @endcan @if ($tab !== 'content')
{{ $library->name }} {{ $library->display_name }} {{ $library->description }} {{ $library->library_type->value }} {{ $library->machine_type }} {{ $library->area }} {{ $library->scope->value }} {{ $library->version }} {{ $cases->total() }} {{ $library->creator?->name ?? 'System' }} {{ $library->created_at?->format('d M Y H:i') }} {{ $library->updater?->name ?? '—' }} {{ $library->updated_at?->format('d M Y H:i') }}
@else @can('update', $library) @can(\App\Support\Permissions::CASES_CREATE) New Case @endcan @if ($availableCases->isEmpty())

Every existing x-ray case is already part of this library.

@else
@csrf
Hold Ctrl (or Cmd) to select several cases.
@endif
@endcan
X-ray cases in this library Ordered by the library sort order
@forelse ($cases as $case) @php $primary = $case->views->first(); @endphp
@if ($primary) {{ $case->name }} @else
@endif
{{ $case->name }} {{ $case->complexity->value }}
{{ $case->display_name }}
{{ $case->views_count }} view(s) · {{ $case->machine_type ?? '—' }} · v{{ $case->version }} · position {{ $case->pivot->sort_order }}
View Preview @can('update', $library)
@csrf @method('DELETE')
@endcan
@empty @endforelse
{{ $cases->links() }}
@endif @endsection