@extends('snit.layouts.app') @section('content')

Books /Edit eBook

@if ($errors->any())
@endif {{-- form begins here --}}
@csrf @method('patch')
{{-- axios to check if this book already has a file, front cover or back cover --}}
{{-- (Your main book. Only PDF or Word Document files are accepted) --}} (Upload your Book to Google drive and insert the generated link here)

Test Google file link

@unless ($theBook->doc)
This book does not have a file linked to it
@endunless
Current File: {{ $theBook->doc?->presentFileUrl() }}
(jpg, jpeg and png are accepted) @if ($theBook->doc->front_cover)
Current Front_ Cover: {{ $theBook->doc?->presentFileUrl('fc') }}
@else
This book does not have a front cover
@endif
{{--
(jpg, jpeg and png are accepted) @if ($theBook->doc->back_cover)
Current Back Cover: {{ $theBook->doc?->presentFileUrl('bc') }}
@else
This book does not have a back cover
@endif
--}}
@endsection @push('child-scripts') @endpush