@extends('layouts.settings') @section('title', __('book.edit')) @section('content_settings')
@if (request('action') == 'delete' && $book)
@can('delete', $book)
{{ __('book.delete') }}

{{ $book->name }}

{{ $book->description }}

{{ optional($book->bankAccount)->name }}

{{ $book->budget }}

{{ __('book.report_visibility_'.$book->report_visibility_code) }}

{{ __('report.'.$book->report_periode_code) }}

{{ __('time.days.'.$book->start_week_day_code) }}

{!! $errors->first('book_id', ':message') !!}

{!! __('book.delete_confirm') !!}
@endcan
@else
@include('books._edit_nav_tabs')
{{ Form::model($book, ['route' => ['books.update', $book], 'method' => 'patch']) }}
@includeWhen(request('tab') == null, 'books._edit_book_settings') @includeWhen(request('tab') == 'signatures', 'books._edit_book_signatures') @includeWhen(request('tab') == 'landing_page', 'books._edit_book_landing_page')
{{ Form::close() }}
@endif
@endsection @section('styles') {{ Html::style(url('css/plugins/jquery.datetimepicker.css')) }} {{ Html::style(url('https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.6/cropper.min.css')) }} {{ Html::style(url('https://cdn.jsdelivr.net/npm/summernote@0.9.0/dist/summernote-bs4.min.css')) }} @endsection @push('scripts') {{ Html::script(url('js/plugins/jquery.datetimepicker.js')) }} {{ Html::script(url('https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.6/cropper.min.js')) }} {{ Html::script(url('js/plugins/noty.js')) }} {{ Html::script(url('https://cdn.jsdelivr.net/npm/summernote@0.9.0/dist/summernote-bs4.min.js')) }} @endpush