@php $headers = [ // EXTRA DATA HIDDEN [ 'label' => __('table.header.id'), 'target' => 'id', ], [ 'label' => __('table.header.code'), 'target' => 'code', ], [ 'label' => __('table.header.store'), 'target' => 'label', 'dclass' => 'lefted', ], [ 'label' => __('table.header.created'), 'target' => 'created_at', ], [ 'label' => __('table.header.notes'), 'target' => 'notes', 'wclass' => 'notes', 'hclass' => 'notes', 'dclass' => 'notes', ], [ 'label' => __('table.header.delete'), 'target' => '_delete' ], ]; // GET HEADERS TARGETS $col = array_flip( array_column($headers, 'target') ); @endphp @push('style') @endpush {{-- @extends('master') --}}
@include('components.table', [ 'id' => $id, // INPUT ID BIND 'class' => 'table cell-border hover convention-stores', 'resource' => 'stores', // FORM RESOURCE TARGET 'method' => config('const.crud.delete'), // RESOURCE METHOD AVAILABLE 'through' => false, // THROUGH SPEC 'data' => [], // PASS DATA IF ANY 'headers' => $headers, ])
@push('script') @endpush