@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
PV / PC Number TIN WHT (%) Company Name Receipt Invoice Number Receipt Date Description WHT Exclusive WHT Amount Action
@if($wht_log->is_payment_voucher) PV{{ $wht_log->pv_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->lpo_receipt_invoice_number }} @else {{ $wht_log->receipt_number }} @endif @if($wht_log->is_payment_voucher) {{ $wht_log->receipt_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 && $wht_log->certificate->company_document_link) email @endif @endpermission
{{ number_format($whtExclusive, 2) }} {{ number_format($whtAmount, 2) }}