@php $horizontalTabs = $crud->getTabsType()=='horizontal' ? true : false; if ($errors->any() && array_key_exists(array_keys($errors->messages())[0], $crud->getCurrentFields()) && array_key_exists('tab', $crud->getCurrentFields()[array_keys($errors->messages())[0]])) { $tabWithError = ($crud->getCurrentFields()[array_keys($errors->messages())[0]]['tab']); } @endphp @push('crud_fields_styles') @endpush @php $route_array = explode('/', $crud->route) @endphp @if ($crud->getFieldsWithoutATab()->filter(function ($value, $key) { return $value['type'] != 'hidden'; })->count())