@extends('layouts.portal') @section('title', __('attachments.title') . ' — ' . config('app.name')) @section('page_title', __('attachments.title')) @section('page_subtitle', __('attachments.subtitle')) @section('page_actions') {{ __('attachments.new') }} @endsection @section('content')
@forelse ($attachments as $attachment) @empty @endforelse
{{ __('attachments.file_title') }} {{ __('attachments.status') }} {{ __('attachments.shared_with') }} {{ __('attachments.size') }} {{ __('attachments.uploaded_at') }}
{{ $attachment->title }} {{ strtoupper($attachment->file_type) }} · {{ $attachment->original_filename }} @if ($attachment->isRejected())

{{ __('attachments.rejection_reason') }}: {{ $attachment->rejection_reason }}

@endif
{{ __('attachments.statuses.' . $attachment->status) }} @forelse ($attachment->shares as $share) {{ $share->patient?->full_name }} @empty — @endforelse {{ $attachment->formatted_size }} {{ $attachment->created_at->translatedFormat('d M, Y') }} {{ __('attachments.preview') }} {{ __('attachments.download') }} @if ($attachment->isShareable()) @endif @if ($attachment->shares->isEmpty())
@csrf @method('DELETE')
@endif
{{ __('attachments.empty') }}
{{ $attachments->links() }}
@endsection