@extends('layouts.admin') @section('title', $item->name) @section('content') @can('update', $item) Edit @endcan @can('delete', $item) @endcan
{{ $item->name }} {{ $item->category }} {{ $item->xrayCase?->name }} {{ $item->xrayView?->label() ?? 'Whole case' }} {{ $item->description }} @forelse ($item->annotations as $annotation)
{{ $annotation->xrayView?->label() }} X {{ number_format($annotation->x_percent, 2) }}% · Y {{ number_format($annotation->y_percent, 2) }}% · W {{ number_format($annotation->width_percent, 2) }}% · H {{ number_format($annotation->height_percent, 2) }}% @can(\App\Support\Permissions::ANNOTATIONS_VIEW) Open editor @endcan
@empty No target marked yet. @can(\App\Support\Permissions::ANNOTATIONS_CREATE) @php $firstView = $item->xrayView ?? $item->xrayCase?->views->first(); @endphp @if ($firstView) Mark target @endif @endcan @endforelse
{{ $item->creator?->name ?? 'System' }} {{ $item->created_at?->format('d M Y H:i') }} {{ $item->updater?->name ?? '—' }} {{ $item->updated_at?->format('d M Y H:i') }}
@endsection