@extends('adminlte::page') @section('title', 'Editar Subcategoría') @section('plugins.Datatables', true) @section('plugins.DatatablesPlugins', true) @section('content_header')

Editar Subcategoría

@stop @section('content') @php /** @var \App\Models\SubcategoryClassification $row */ @endphp {{-- CARD 1: Formulario de Subcategoría --}}

Editar: {{ $row->name }}

Volver
@csrf @method('PUT')
@error('efe_classification_id')
{{ $message }}
@enderror
@error('code')
{{ $message }}
@enderror
@error('name')
{{ $message }}
@enderror
@can('subcategory_classification.update') @endcan Cancelar
{{-- CARD 2: Budget Class relacionados (DataTable + alta rápida por AJAX) --}} @php $bcHeads = [ ['label' => 'Código', 'width' => 20], 'Nombre', ['label' => 'Acciones', 'no-export' => true, 'width' => 10, 'class' => 'text-center'], ]; $bcConfig = [ 'order' => [[0, 'asc'], [1, 'asc']], 'columns' => [null, null, ['orderable' => false, 'searchable' => false]], 'dom' => 'Bfrtip', 'buttons' => ['copy','excel','csv','print'], ]; @endphp

Budget Class

{{ ($budgetClasses ?? collect())->count() }}
@can('efe_classification.create')
El código se generará automáticamente.
@endcan
@foreach(($budgetClasses ?? collect()) as $bc) {{ $bc->code }} {{ $bc->name }} @can('efe_classification.update') @endcan @endforeach
{{-- Modal: Creando --}} {{-- Modal: Éxito --}} @stop @push('js') @endpush