@extends('adminlte::page') @section('content')

Edit Event

Edit Event

@csrf

{{--

--}}

@if($event->file_name)

Current File

@php $ext = pathinfo($event->file_name, PATHINFO_EXTENSION); $fileUrl = asset('storage/distribution/images/events/files/'.$event->file_name); @endphp @if(in_array(strtolower($ext), ['jpg','jpeg','png','gif','webp'])) Current File @elseif(strtolower($ext) === 'pdf') @elseif(in_array(strtolower($ext), ['mp4','avi','mov'])) @else View File @endif
@endif

New File

@stop @section('js') @stop @section('css') @stop