@php $selected_branches = request('branches')?? []; @endphp
@php $selected_suppliers = request('suppliers')?? []; @endphp
@php $selected_taxes = request('taxes')?? []; @endphp
@php $action_types_list = [ ['label' => 'فاتورة مشتريات', 'value' => 'purchase_invoice'], ['label' => 'سند مردود مشتريات', 'value' => 'returned_purchase_bond'], ]; $selected_action_types = request('action_types') ?? ['purchase_invoice']; @endphp
@php $seperate_external_invoices = request('seperate_external_invoices')?? false; @endphp
@php $selected_show_type = request('show_type')?? 'total'; @endphp

@lang('accounting/warehouses/reports/purchases-tax.purchase_tax_report')

@lang('accounting/warehouses/reports/purchases-tax.download_pdf') @php $query = (count(request()->all()) > 0)? '?' . explode('?', request()->fullUrl())[1] : "" @endphp @lang('accounting/warehouses/reports/purchases-tax.export_excel')
@php $from_date = request('from_date') ?? $active_year->from; $to_date = request('to_date') ?? $active_year->to; @endphp

@lang('accounting/warehouses/reports/sales-and-profit.from_date') {{ $from_date }}

@lang('accounting/warehouses/reports/sales-and-profit.to_date') {{ $to_date }}

@if ($seperate_external_invoices) {{-- Internal Section --}}

@lang('accounting/warehouses/reports/purchases-tax.local')

@if (in_array('purchase_invoice', $selected_action_types)) @include('tenant.warehouses.reports.purchasesTaxesReportTableBuilder', [ 'title' => 'فواتير المشتريات', 'list' => $internal_taxes_rows['purchases_taxes_rows'], ]) @endif @if (in_array('returned_purchase_bond', $selected_action_types)) @include('tenant.warehouses.reports.purchasesTaxesReportTableBuilder', [ 'title' => 'مردود المشتريات', 'list' => $internal_taxes_rows['returned_purchases_taxes_rows'], ]) @endif {{-- External Section --}}

@lang('accounting/warehouses/reports/purchases-tax.external')

@if (in_array('purchase_invoice', $selected_action_types)) @include('tenant.warehouses.reports.purchasesTaxesReportTableBuilder', [ 'title' => 'فواتير المشتريات', 'list' => $external_taxes_rows['purchases_taxes_rows'], ]) @endif @if (in_array('returned_purchase_bond', $selected_action_types)) @include('tenant.warehouses.reports.purchasesTaxesReportTableBuilder', [ 'title' => 'مردود المشتريات', 'list' => $external_taxes_rows['returned_purchases_taxes_rows'], ]) @endif @else {{-- Internal With External Section --}} @if (in_array('purchase_invoice', $selected_action_types)) @include('tenant.warehouses.reports.purchasesTaxesReportTableBuilder', [ 'title' => 'فواتير المشتريات', 'list' => $purchases_taxes_rows, ]) @endif @if (in_array('returned_purchase_bond', $selected_action_types)) @include('tenant.warehouses.reports.purchasesTaxesReportTableBuilder', [ 'title' => 'مردود المشتريات', 'list' => $returned_purchases_taxes_rows, ]) @endif @endif