@extends('backend.layouts.main') @section('title') Download Details @endsection @section('content')

Download Details: {{ $download->name }}

@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif

Basic Information

ID:
{{ $download->id }}
Name:
{{ $download->name }}
Display Order:
{{ $download->display_order }}

Additional Details

File:
@if ($download->file) @php $fileExtension = strtolower(pathinfo($download->file, PATHINFO_EXTENSION)); $isImage = in_array($fileExtension, ['jpg', 'jpeg', 'png', 'gif', 'webp']); @endphp @if ($isImage)
{{ $download->name }}
@endif Download {{ $isImage ? 'Image' : 'File' }} @else No file available @endif
Status:
@if ($download->is_published) Published @else Draft @endif
Created At:
{{ $download->created_at->format('M d, Y H:i') }}
Updated At:
{{ $download->updated_at->format('M d, Y H:i') }}
@endsection