@php $headers = [ [ 'label' => __('table.header.id'), 'target' => 'id', ], [ 'label' => __('table.header.code'), 'target' => 'code', ], [ 'label' => __('table.header.product'), 'target' => 'label', 'dclass' => 'lefted', ], [ 'label' => __('table.header.quantity'), 'target' => 'pivot.quantity', 'hclass' => 'quantity' ], [ 'label' => __('table.header.price'), 'target' => 'price', 'hclass' => 'price' ], [ 'label' => __('table.header.subtotal'), 'target' => 'subtotal', 'hclass' => 'price' ], [ 'label' => __('table.header.loaded'), 'target' => 'loaded', ], [ 'label' => __('table.header.notes'), 'target' => 'notes', 'wclass' => 'notes', 'hclass' => 'notes', 'dclass' => 'notes', ], [ 'target' => '_delete', ], ]; // GET HEADERS TARGETS $col = array_flip( array_column($headers, 'target') ); @endphp @push('style') @endpush {{-- @extends('master') --}}