@section('title', 'Tax Authority Invoices') @section('page-style') @endsection @includeWhen(isset($contract),'admin.pages.contracts.header', ['tab' => 'invoices']) @includeWhen(isset($company),'admin.pages.company.header', ['tab' => 'invoices']) @includeWhen(isset($program),'admin.pages.programs.program-nav', ['tab' => 'invoices']) {{-- Include Default Header --}} {{-- @includeWhen(!isset($contract) && !isset($company) && !isset($program), 'admin.pages.invoices.header') --}}
@if(isset($company) && !isset($contract) && !isset($program))
Search Filter
{!! Form::label('filter_contract', 'Contract') !!} {!! Form::select('filter_contract', [], [], [ 'class' => 'form-select', 'data-kt-select2' => 'true', 'data-placeholder' => 'All', 'data-allow-clear' => 'true', 'data-remote' => route('resource-select', ['Contract', 'has-ta-inv', 'companies' => $company->id]) ]) !!}
{!! Form::label('filter_due_date', 'Due Date') !!} {!! Form::select('filter_due_date', [ '' => 'All', 'Overdue' => ['over_due' => 'Overdue'], 'Month' => [ 'this_month' => 'This Month', 'prev_month' => 'Previous Month', 'next_month' => 'Next Month', ], 'Quarter' => [ 'this_quarter' => 'This Quarter', 'prev_quarter' => 'Previous Quarter', 'next_quarter' => 'Next Quarter', ], ], '', [ 'class' => 'form-select', 'data-kt-select2' => 'true', 'data-placeholder' => 'All', 'data-allow-clear' => 'true' ] ) !!}
@endif @if (!isset($contract) && !isset($company) && !isset($program))
Search Filter
{!! Form::label('filter_contract', 'Contract') !!} {!! Form::select('filter_contract', [], [], [ 'class' => 'form-select', 'data-kt-select2' => 'true', 'data-placeholder' => 'All', 'data-allow-clear' => 'true', 'data-remote' => route('resource-select', ['Contract', 'hasinv']) ]) !!}
{!! Form::label('filter_company', 'Client') !!} {!! Form::select('filter_company', [], [], [ 'class' => 'form-select', 'data-kt-select2' => 'true', 'data-placeholder' => 'All', 'data-allow-clear' => 'true', 'data-remote' => route('resource-select', ['groupedCompany', 'hasinv']) ]) !!}
{!! Form::label('filter_status', 'Status') !!} {!! Form::select('filter_status', $invoice_statuses, '', ['class' => 'form-select', 'data-kt-select2' => 'true', 'data-placeholder' => 'All', 'data-allow-clear' => 'true']) !!}
{!! Form::label('filter_due_date', 'Due Date') !!} {!! Form::select('filter_due_date', [ '' => 'All', 'Overdue' => ['over_due' => 'Overdue'], 'Month' => [ 'this_month' => 'This Month', 'prev_month' => 'Previous Month', 'next_month' => 'Next Month', ], 'Quarter' => [ 'this_quarter' => 'This Quarter', 'prev_quarter' => 'Previous Quarter', 'next_quarter' => 'Next Quarter', ], ], '', [ 'class' => 'form-select', 'data-kt-select2' => 'true', 'data-placeholder' => 'All', 'data-allow-clear' => 'true' ] ) !!}
@endif
{{$dataTable->table()}}
@push('scripts') {{$dataTable->scripts(null, ['nonce' => csp_nonce()])}} @endpush