@extends('admin.layouts.main-layout') @section('title', $title) @section('content')
@csrf
Add Free Download / Guess Paper
@if (session('error')) @endif
@error('file_type')
{{ $message }}
@enderror
@error('file_name')
{{ $message }}
@enderror
encrypted_id) ? ($free_download->file_on_top_banner == 'on_top_banner' ? 'checked' : '') : '' }}>
{{--
--}} {{--
--}}
@if (!empty($free_download->encrypted_id) && !empty($free_download->file))
Current Free File:

{{ basename($free_download->file) }}

@if (file_exists(public_path($free_download->file))) Download File @endif {{-- --}} {{-- {{-- tells backend to delete on submit --}}
@endif @error('file')
{{ $message }}
@enderror
{{--
@if (!empty($free_download->encrypted_id))
@if (!empty($free_download->free_download_icons)) @php $free_download_icons = json_decode($free_download->free_download_icons); @endphp @foreach ($free_download_icons as $icon)
free_download_Icons
@endforeach @endif
@endif
--}}
@endsection