@extends('admin.layouts.admin') @section('title', 'File Manager - SIVILIMA Admin') @section('breadcrumb_title', 'File Manager') @section('breadcrumb') @endsection @section('content') @if(session('success')) @endif
Upload File
@csrf
No file chosen
Max: 10MB. Allowed: JPG, PNG, GIF, WebP, SVG, ICO, PDF, DOC, XLS, ZIP
How to Use
  1. Upload your file here
  2. Click Copy Path on any file
  3. Paste the path into settings (e.g. uploads/image.png)
Uploaded Files ({{ $files->count() }})
@if($files->isEmpty())

No files uploaded yet. Use the upload form to add files.

@else
@foreach($files as $file) @endforeach
Preview File Name Size Date Actions
@php $ext = strtolower(pathinfo($file['name'], PATHINFO_EXTENSION)); @endphp @if(in_array($ext, ['jpg','jpeg','png','gif','webp','svg','ico'])) {{ $file['name'] }} @elseif($ext === 'pdf') @elseif(in_array($ext, ['doc','docx'])) @elseif(in_array($ext, ['xls','xlsx','csv'])) @elseif($ext === 'zip') @else @endif
{{ $file['name'] }}
{{ $file['path'] }}
{{ number_format($file['size'] / 1024, 1) }} KB {{ date('M d, Y h:i A', $file['modified']) }}
@csrf @method('DELETE')
@endif
@endsection @push('scripts') @endpush