@extends('adminlte::page')
@section('title', __('products.tab-title'))
@section('content_header')
@stop
@section('content')
@stop
@section('footer')
@include('products.modals.create')
@include('products.modals.delete')
@include('products.modals.edit')
@include('products.modals.filters')
@include('clients.modals.import')
@append
@push('css')
@include('adminlte::libs.css.datatables')
@include('adminlte::libs.css.select2')
@endpush
@push('js')
@include('adminlte::libs.js.datatables')
@include('adminlte::libs.js.select2')
@php
$columns = [
[
'data' => 'esb',
'name' => 'esb',
'title' => __('products.table.columns.esb')
],
[
'data' => 'client',
'name' => 'client',
'title' => __('products.table.columns.client')
],
[
'data' => 'location',
'name' => 'location',
'title' => __('products.table.columns.location')
],
[
'data' => 'guarantee.start',
'name' => 'guarantee.start',
'title' => __('products.table.columns.guarantee_start')
],
[
'data' => 'producer',
'name' => 'producer',
'title' => __('products.table.columns.producer')
],
[
'data' => 'model_type',
'name' => 'model_type',
'title' => __('products.table.columns.model_type')
],
[
'data' => 'guarantee.month',
'name' => 'guarantee.month',
'title' => __('products.table.columns.guarantee')
],
[
'data' => 'serial_number',
'name' => 'serial_number',
'title' => __('products.table.columns.serial_number')
],
[
'data' => 'guarantee',
'name' => 'guarantee',
'title' => __('products.table.columns.guarantee_expires')
],
[
'data' => 'contract',
'name' => 'contract',
'title' => __('products.table.columns.contract_expires')
],
[
'data' => 'actions',
'name' => 'actions',
'title' => __('products.table.columns.actions'),
'sortable' => false,
'width' => '10%'
]
];
$url = url()->current();
$endpoint = [
'url' => "{$url}/all",
'dataSrc' => 'data'
];
@endphp
{{-- Add inline js when developing or testing here. When you're finished, transfer to products.js --}}
@endpush