@php $managedFiles = collect($managedFiles ?? []); $accountOwned = (bool) ($accountOwned ?? false); $category = $category ?? null; $emptyMessage = $emptyMessage ?? __('application_detail.empty.files'); $accept = $slot === 'pitch_deck' ? '.pdf,.ppt,.pptx' : '.pdf,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.png'; @endphp
{{ $title }} {{ $managedFiles->count() }}
@if($accountOwned)

{{ __('application_detail.files.account_owned') }}

@endif
@forelse($managedFiles as $file) @php([$fileIcon, $fileKind] = $fileVisual($file))
{{ $file->file_name }} {{ strtoupper((string) pathinfo((string) $file->file_name, PATHINFO_EXTENSION)) }} ยท {{ $formatBytes($file->size_bytes) }} @unless($accountOwned)
@csrf
@csrf @method('DELETE')
@endunless
@empty

{{ $emptyMessage }}

@endforelse
@if($accountOwned) @if($managedFiles->isNotEmpty()) {{ __('application_detail.actions.manage') }} @endif @elseif($slot !== 'pitch_deck' || $managedFiles->isEmpty())
@csrf @if($category)@endif
@endif