@extends('public.layout') @section('title') {{ clean(trans('cynoebook::ebook.edit_Ebook')) }} @endsection @section('breadcrumb')
  • {{ clean(trans('cynoebook::account.links.my_ebook')) }}
  • {{ clean(trans('cynoebook::ebook.edit_Ebook')) }} - {{ $ebook->title }}
  • @endsection @section('content') @if (setting('cynoebook_ad1_section_enabled')) @include('public.home.sections.advertisement',['ad'=>setting('cynoebook_ad_1')]) @endif
    {{ csrf_field() }} {{ method_field('put') }}

    {{ clean(trans('cynoebook::ebook.edit_Ebook')) }}

    @if (! $ebook->book_cover->exists)
    @else
    @endif
    @if ($ebook->book_file->exists)
    @endif
    {{ Form::text('title', clean(trans('ebook::attributes.title')), $errors,$ebook, [ 'required' => true]) }} {{ Form::select('categories', clean(trans('ebook::attributes.categories')), $errors, $categories, $ebook, ['class' => 'selectize prevent-creation', 'multiple' => true,'required' => true,]) }} {{ Form::select('authors', clean(trans('ebook::attributes.authors')), $errors, $authors, $ebook, ['required' => true,'multiple' => true,'class'=>'select2 csselect2','data-tags'=>"true",'help'=>clean(trans('ebook::ebooks.form.author_add_help_text'))]) }} {{ Form::text('publisher', clean(trans('ebook::attributes.publisher')), $errors, $ebook, []) }} {{ Form::text('publication_year', clean(trans('ebook::attributes.publication_year')), $errors, $ebook, []) }} {{ Form::text('password_protected', clean(trans('ebook::attributes.password')), $errors,$ebook , []) }} {{ Form::text('price', clean(trans('ebook::attributes.price')), $errors, $ebook, []) }} {{ Form::text('buy_url', clean(trans('ebook::attributes.buy_url')), $errors, $ebook, []) }} {{ Form::text('isbn', clean(trans('ebook::attributes.isbn_number')), $errors, $ebook, []) }} {{ Form::checkbox('is_private', clean(trans('ebook::attributes.is_private')), clean(trans('ebook::ebooks.form.private_the_ebook')), $errors, $ebook,['class' => $ebook->is_private ? 'checked' : '']) }}
    {{ Form::textarea('description', clean(trans('ebook::attributes.description')), $errors,$ebook, ['required' => true,'rows' => 12]) }} {{ Form::textarea('short_description', clean(trans('ebook::attributes.short_description')), $errors, $ebook, ['rows' => 4]) }} {{ Form::file('book_cover',clean(trans('ebook::ebooks.form.book_cover')), $errors,'' ) }} {{ Form::text('file_url', trans('ebook::ebooks.form.book_file'), $errors, $ebook, ['help'=>trans('ebook::ebooks.form.enter_file_url_or_upload_new')]) }} {{ Form::file('book_file','', $errors, '',['help'=>'Only pdf, epub, doc, docx, txt, xls, xlsx, ppt, pptx, files are allowed']) }}
    @if (setting('cynoebook_ad2_section_enabled')) @include('public.home.sections.advertisement',['ad'=>setting('cynoebook_ad_2')]) @endif @endsection @push('scripts') @endpush