{{-- card header --}}
{{ __('person.files') }} @if ($files->count() > 0) @endif
{{-- source --}}
{{-- source_date --}}
{{-- uploads --}}
{{ __('app.save') }} {{ __('app.saving') ?? 'Saving...' }}
{{-- card body --}}
@if (count($files) > 0)
@foreach ($files as $file)
{{ $file['file_name'] }}
@php $file_type = pathinfo($file['file_name'], PATHINFO_EXTENSION); @endphp {{ $file['name'] }} @if ($file->hasCustomProperty('source'))

{{ __('person.source') }} :

{{ $file->getCustomProperty('source') }}

@endif @if ($file->hasCustomProperty('source_date')) @php $timezone = session('timezone', 'UTC'); $sourceDate = \Carbon\Carbon::parse($file->getCustomProperty('source_date'))->timezone($timezone)->isoFormat('LL'); @endphp

{{ __('person.source_date') }} : {{ $sourceDate }}

@endif
{{-- Left side --}}
@if ($file->order_column < count($files)) @endif @if ($file->order_column > 1) @endif
{{-- Right side --}}
{{ strtoupper($file_type) }} {{ Number::fileSize($file['size'], 2) }}
@endforeach
@else
@endif