@extends(backpack_view('layouts.top_left')) @php $defaultBreadcrumbs = [ $crud->entity_name_plural => url($crud->route), trans('backpack::crud.add') => false, ]; if (isset($breadcrumbs) && count($breadcrumbs) >= 2) { $keys = array_keys($breadcrumbs); $breadcrumbs[$keys[1]] = url($crud->route); $breadcrumbs[trans('backpack::crud.add')] = false; } // if breadcrumbs aren't defined in the CrudController, use the default breadcrumbs $breadcrumbs = $breadcrumbs ?? $defaultBreadcrumbs; $form_name = 'submit_form'; @endphp @section('header_left')

{!! $crud->getHeading() ?? $crud->entity_name_plural !!}

@endsection @section('header_right') @include('crud::inc.form_save_buttons') @endsection @section('content')
@include('crud::inc.grouped_errors')
hasUploadFields('create')) enctype="multipart/form-data" @endif > {!! csrf_field() !!} @if(view()->exists('vendor.backpack.crud.form_content')) @include('vendor.backpack.crud.form_content', [ 'fields' => $crud->fields(), 'action' => 'create', 'form_name' => $form_name ]) @else @include('crud::form_content', [ 'fields' => $crud->fields(), 'action' => 'create', 'form_name' => $form_name ]) @endif
@yield('before_request')
* 為必填項目
@yield('after_request')
@endsection