@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 --}}
{{-- 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
@foreach(($budgetClasses ?? collect()) as $bc)
| {{ $bc->code }} |
{{ $bc->name }} |
@can('efe_classification.update')
@endcan
|
@endforeach
{{-- Modal: Creando --}}
{{-- Modal: Éxito --}}
@stop
@push('js')
@endpush