@push('style')
@endpush
@php
$headers = [
// EXTRA DATA HIDDEN
[
'label' => '',
'target' => 'store_label',
'hclass' => 'hidden',
'dclass' => 'hidden'
],
// VISIBLE DATA
[
'label' => __('table.header.id'),
'target' => 'id',
],
[
'label' => __('table.header.code'),
'target' => 'code',
],
[
'label' => __('table.header.from'),
'target' => 'deliver_at',
'hclass' => 'no-break'
],
/*
[
'label' => __('table.header.until'),
'target' => 'deliver_until',
'hclass' => 'no-break'
],
*/
[
'label' => __('table.header.orders'),
'target' => 'orders_count',
],
[
'label' => __('table.header.delivering'),
'target' => 'delivering_count',
],
[
'label' => 'Referral',
'target' => 'deliver_ref',
'help-icon' => 'fa fa-user',
],
[
'label' => __('table.header.address'),
'target' => 'deliver_address',
],
[
'label' => 'Registration',
'target' => 'created_at',
],
[
'label' => __('table.header.notes'),
'target' => 'notes',
'hclass' => 'notes',
'dclass' => 'notes',
],
[
'label' => __('table.header.edit'),
'target' => '_edit',
],
[
'label' => __('table.header.delete'),
'target' => '_delete'
],
];
// GET HEADERS TARGETS
$col = array_flip( array_column($headers, 'target') );
@endphp
@include('components.table', [
'id' => $id,
'edit' => @$edit, // EDIT TARGET ID
'class' => 'table cell-border hover',
'data' => $data,
'headers' => $headers
])
@push('ready')
@endpush