{{-- Extends layout --}} @extends(getThemeBasePath()) @section('page_title') {{ $page_title }} @endsection {{-- Content --}} @section('content')
@if (!empty($data['id'])) @method('PUT') @endif @csrf
@include('backend.errors') @include('backend.alerts')
@if (!empty($data['id']))
@php $extension = pathinfo($data['attachment'], PATHINFO_EXTENSION); @endphp @if (in_array($extension, ['jpg', 'jpeg', 'png', 'gif', 'bmp'])) @elseif ($extension === 'pdf') {{$data['attachment']}} @endif
@endif
@endsection {{-- Scripts Section --}} @section('scripts') @endsection