@extends('layouts.admin') @section('title', $case->name) @section('content') Preview @can('update', $case) Edit @endcan @can(\App\Support\Permissions::CASES_CREATE) Add View @endcan @can('delete', $case) @endcan
{{ $case->name }} {{ $case->display_name }} {{ $case->machine_type }} {{ $case->area }} {{ $case->complexity->value }} {{ $case->version }} {{ $case->views->count() }} @forelse ($case->libraries as $library) {{ $library->name }} @empty — @endforelse {{ $case->description }} {{ $case->creator?->name ?? 'System' }} {{ $case->created_at?->format('d M Y H:i') }} {{ $case->updater?->name ?? '—' }} {{ $case->updated_at?->format('d M Y H:i') }}
@can(\App\Support\Permissions::ITEMS_CREATE) Add Item @endcan @forelse ($case->itemsOfInterest as $item)
{{ $item->name }}
{{ $item->category ?? 'Uncategorised' }} · {{ $item->xrayView ? $item->xrayView->label() : 'Whole case' }}
@empty @endforelse
X-Ray Views {{ $case->views->count() }} @can('update', $case) Drag a tile to change the order. @endcan @can(\App\Support\Permissions::CASES_CREATE) Add View @endcan
@if ($case->views->isEmpty()) @can(\App\Support\Permissions::CASES_CREATE) Add the first view @endcan @else
@foreach ($case->views as $view)
{{ $view->label() }}
{{ $view->label() }}
{{ $view->image_width }} × {{ $view->image_height }} px @can('update', $case) @endcan
{{ $view->original_filename ?? '—' }}
@can(\App\Support\Permissions::ANNOTATIONS_VIEW) Targets @if ($view->annotations_count ?? 0) {{ $view->annotations_count }} @endif @endcan @can('update', $view) Edit @endcan @can('delete', $view) @endcan
@endforeach
@endif
@endsection