@php $showActionsColumn = $resource instanceof \App\Models\Application; $gridClass = match (true) { $supportsPreviewSuffix => 'volumes-table-grid-with-pr', $showActionsColumn => 'volumes-table-grid', default => 'volumes-table-grid-readonly', }; $canUpdate = auth()->user()?->can('update', $resource) ?? false; $inputsReadonly = $isReadOnly || ! $canUpdate; $displayHostPath = filled($hostPath) ? $hostPath : '—'; @endphp @if ($inputsReadonly) {{-- Read-only: plain data-table row (service / compose / no permission) --}}
Volume Name
{{ $name }} @if ($hasEnabledBackup) @if ($backupUrl) Backup @else Backup @endif @endif
Source Path {{ $displayHostPath }}
Destination Path {{ $mountPath }}
@if ($supportsPreviewSuffix)
PR suffix {{ $isPreviewSuffixEnabled ? 'Add suffix' : 'Share volume' }}
@endif @if ($showActionsColumn)
@if ($canUpdate) @if ($showBackupModal) @else Backup @endif @else — @endif
@endif
@else {{-- Editable volume row --}}
Volume Name
@if ($hasEnabledBackup) @if ($backupUrl) Backup @else Backup @endif @endif
Source Path
Destination Path
@if ($supportsPreviewSuffix)
PR suffix
@endif
Update @if ($resource instanceof \App\Models\Application) @if ($showBackupModal) @else Backup @endif @endif
@endif