@extends('adminlte::page')
@section('title', __('clients.tab-title'))
@section('content_header')
@if ($message = Session::get('f_message'))
{{ $message }}
@endif
@stop
@section('content')
@include("clients.locations.tabs.client_data")
@include("clients.locations.tabs.location_list")
@stop
@section('footer')
@include('locations.modals.create')
@include('locations.modals.edit')
@include('locations.modals.delete')
@include('locations.modals.working_hours')
@include('locations.modals.stock')
@include('cornford.modals.googleMap')
@endsection
@push('css')
@include('adminlte::libs.css.datatables')
@include('adminlte::libs.css.select2')
@endpush
@php
$columns = [
[
'data' => 'name',
'name' => 'name',
'title' => __('clients.locations.table.columns.name')
],
[
'data' => 'street_address',
'name' => 'street_address',
'title' => __('clients.locations.table.columns.street_address')
],
[
'data' => 'city',
'name' => 'city',
'title' => __('clients.locations.table.columns.city')
],
[
'data' => 'city',
'name' => 'city',
'title' => __('clients.locations.table.columns.city')
],
[
'data' => 'country',
'name' => 'country',
'title' => __('clients.locations.table.columns.country')
],
[
'data' => 'actions',
'name' => 'actions',
'title' => __('clients.locations.table.columns.actions'),
'sortable' => false,
'width' => '8%'
],
];
$locationsUrl = url('/locations');
$url = url()->current();
$baseUrl = url('/');
$endpoint = [
'url' => "{$url}/list",
'dataSrc' => 'data'
];
@endphp
@push('js')
@include('adminlte::libs.js.datatables')
@include('adminlte::libs.js.select2')
@include('adminlte::libs.js.litepicker')
@endpush