@use('App\Services\Date') @extends('reports::layouts.master') @section('title', __('reports::reports.Customer Tax Report')) @section('page-link') @endsection @section('action_buttons')
@if(app()->getLocale() === 'en') @else @endif @if(isset($data['records']) && $data['currentFiscalYear']) @can('reports.customer-tax-report.export') @endcan @endif
@endsection @section('section_title') @lang('reports::reports.Customer Tax Report') @endsection @section('form-open-tag')
@lang('Filter')
@error('tax_id') @enderror
@error('customer_id') @enderror
@php $selectedCostCenters = (array) request('cost_center_id', []); $allCostCentersCount = app(\Modules\Products\Repositories\CostCentersRepository::class)->count(); $costCentersCollection = is_array($data['costCenters']) ? collect($data['costCenters']) : $data['costCenters']; $hasAccessToAllCostCenters = auth()->user()->adjustRolesLikeOwnerPermissions() || $data['costCenters']->count() >= $allCostCentersCount; @endphp @error('cost_center_id') @enderror
@error('transaction_type_id') @enderror
@error('fiscal_year_id') @enderror @error('from') @enderror @error('to') @enderror
@endsection @section('koolreport') @if(isset($data['records']) && $data['currentFiscalYear'])

@lang('reports::reports.Customer Tax Report')

{{$data['companyName']}}

@lang('reports::reports.tax_report.id') @lang('reports::reports.tax_report.reference') @lang('reports::reports.tax_report.record_id') @lang('reports::reports.tax_report.date') @lang('reports::reports.tax_report.tax_name') @lang('reports::reports.tax_report.cost_center_name') @lang('reports::reports.tax_report.customer_name') @lang('reports::reports.tax_report.customer_tax_number') @lang('reports::reports.tax_report.amount_before_tax') @lang('reports::reports.tax_report.tax_amount') @lang('reports::reports.tax_report.total')
@lang('reports::reports.total') {{ number_format($data['totals']['total_amount'], 2) }} {{ number_format($data['totals']['total_tax'], 2) }} {{ number_format($data['totals']['total'], 2) }}
@endif @endsection @section('extra_scripts_filter_by_date')