@include('components.backend.head') @include('components.backend.header') @include('components.backend.sidebar')

File Upload & Details

{{-- Upload Form --}}
@csrf
{{-- ✅ Filter Section --}}
{{-- Table Section --}}
@foreach($files as $file) @endforeach
File Name Collection Date Date Uploaded Notes Total Amount Action
@php $formattedDate = $file->collection_date ? \Carbon\Carbon::parse($file->collection_date)->format('y-m-d') : ''; $fileTitle = 'DDPU (Monthly on the 10th)'; $note = $file->notes ? "({$file->notes})" : ''; $extension = pathinfo($file->file_name, PATHINFO_EXTENSION) ?: 'xlsx'; @endphp {{ $formattedDate }} {{ $fileTitle }} {{ $note }}.{{ $extension }} {{ optional($file->collection_date)->format('d/m/Y') ?? $file->collection_date }} {{ optional($file->uploaded_date)->format('d/m/Y H:i') ?? $file->uploaded_date }} {{ $file->notes }} {{ number_format($file->total_amount, 2) }} Export
{{-- JavaScript for Filter Logic --}}
@include('components.backend.footer') @include('components.backend.main-js')