@extends('layouts.app')
@push('datatable-styles')
@include('sections.datatable_css')
@endpush
@section('filter-section')
@if (!in_array('client', user_roles()))
@lang('app.client')
@endif
@lang('app.clearFilters')
@endsection
@php
$addInvoicesPermission = user()->permission('add_invoices');
$addOrderPermission = user()->permission('add_order');
@endphp
@section('content')
@if (in_array('client', user_roles()) && in_array('orders', $user->modules) && ($addOrderPermission == 'all' ))
@lang('app.addNewOrder')
@endif
@if (!in_array('client', user_roles()) && ($addOrderPermission == 'all' || $addOrderPermission == 'added'))
@lang('app.addNewOrder')
@endif
{!! $dataTable->table(['class' => 'table table-hover border-0 w-100']) !!}
@endsection
@push('scripts')
@include('sections.datatable_js')
@endpush