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