@php $whtExclusive = 0; $whtAmount = 0; @endphp @foreach($whtLogs as $wht_log) @php $whtExclusive += ($wht_log->is_payment_voucher) ? $wht_log->total_amount_converted : $wht_log->total_amount; $whtAmount += $wht_log->vat_amount; @endphp @endforeach
Invoice / PC Number TIN WHT (%) Company Name Date Description WHT Exclusive WHT Amount Action
@if($wht_log->is_payment_voucher) {{ $wht_log->ti_serial_number ?? '' }} @else PC{{ $wht_log->serial_number ?? '' }} @endif {{ $wht_log->company->registrations[0]->registration_value ?? '' }} {{ $wht_log->tax_value ?? '' }}% {{ $wht_log->company->name ?? '' }} @if($wht_log->is_payment_voucher) {{ $wht_log->tax_invoice_date_formatted }} @else {{ $wht_log->date_formatted }} @endif @if($wht_log->is_payment_voucher) {{ $wht_log->description }} @else {{ $wht_log->short_description }} @endif @if($wht_log->is_payment_voucher) {{ number_format($wht_log->total_amount_converted, 2) }} @else {{ number_format($wht_log->total_amount, 2) }} @endif {{ number_format($wht_log->vat_amount, 2) }} @permission('wht-log-write') @if($wht_log->certificate && $wht_log->certificate->company_document_link) file_present @else upload_file @endif @endpermission @permission('send-finance-mail-write') @if($wht_log->certificate == null && $wht_log->is_payment_voucher) email @endif @endpermission
{{ number_format($whtExclusive, 2) }} {{ number_format($whtAmount, 2) }}