@extends('app.pdf.reports.partials.layout') @section('report-title', __('pdf_tax_report_label')) {{-- The band names the net position rather than a fixed total, so the label is conditional and the value is always shown unsigned. --}} @section('footer-label') @if ($netTaxAmount > 0) @lang('pdf_tax_payable_label') @elseif ($netTaxAmount < 0) @lang('pdf_tax_refundable_label') @else @lang('pdf_tax_balance_label') @endif @endsection {{-- Block form rather than the inline @section($name, $value) one: the inline form escapes what it is given, and format_money_pdf() returns markup. --}} @section('footer-value'){!! format_money_pdf(abs($netTaxAmount), $currency) !!}@endsection @section('report-body')

@lang('pdf_output_tax_label')

@forelse ($taxTypes as $tax) @empty @endforelse
@lang('pdf_report_tax_type_label') @lang('pdf_amount_label')
{{ $tax->taxType->name }} {!! format_money_pdf($tax->total_tax_amount, $currency) !!}
@lang('pdf_report_no_records')
@lang('pdf_total') {!! format_money_pdf($totalTaxAmount, $currency) !!}

@lang('pdf_input_tax_label')

@forelse ($expenseTaxTypes as $tax) @empty @endforelse
@lang('pdf_report_tax_type_label') @lang('pdf_amount_label')
{{ $tax->taxType->name }} {!! format_money_pdf($tax->total_tax_amount, $currency) !!}
@lang('pdf_report_no_records')
@lang('pdf_total') {!! format_money_pdf($totalExpenseTaxAmount, $currency) !!}
@endsection