{{-- Excel table title format start --}}
{{ config('settings.company_name') }}
{{ config('settings.address_1') }}
{{ __('lang.surcharge_report') }}
{{-- Excel title format end --}} @php $total_surchage_amount = $total_discount_amount = $total_net_amount = $total_paid_amount = 0; @endphp @foreach ($schedule_surchages as $schedule_surchage) @php $actual_received = $schedule_surchage->actual_received; $sell = $schedule_surchage->actual_received->sell; $schedule = $schedule_surchage->schedule_receivable; $status = $schedule_surchage->is_waived ? "Waived" : ""; $mode_of_payment = $schedule_surchage->mode_of_payment; $payment_date = $schedule_surchage->payment_date; $payment = $schedule_surchage->payment ?? 0; $badge_class = $status == 'Waived' ? 'badge-warning' : ''; if ($status == 'Waived' || $payment == 0) { $mode_of_payment = '-'; $payment_date = ''; } $total_surchage_amount += $schedule_surchage->amount ?? 0; $total_discount_amount += $schedule_surchage->discount_amount ?? 0; $total_net_amount += $schedule_surchage->net_amount ?? 0; $total_paid_amount += $payment ; @endphp @endforeach
{{ __('lang.sno') }} {{ __('lang.project') }} {{ __('lang.registration_no') }} {{ __('lang.customer') }} {{ __('lang.receipt_no') }} {{ __('lang.term') }} {{ __('lang.no_of_days') }} {{ __('lang.surcharge_amount') }} ({{config('settings.currency_code')}}) {{ __('lang.discount') }} ({{config('settings.currency_code')}}) {{ __('lang.net_amount') }} ({{config('settings.currency_code')}}) {{ __('lang.mode_of_payment') }} {{ __('lang.payment_date') }} {{ __('lang.paid_amount') }} ({{config('settings.currency_code')}}) {{ __('lang.status') }}
{{$loop->iteration}} {{$actual_received->branch->name}} {{$sell->registration_no}} {{$sell->customer->name }} {{$actual_received->receipt_no}} {{$schedule->term}} {{$schedule_surchage->days}} {{$transaction->convert_money_format($schedule_surchage->amount )}} {{$transaction->convert_money_format($schedule_surchage->discount_amount)}} {{$transaction->convert_money_format($schedule_surchage->net_amount)}} {{$mode_of_payment}} {{$transaction->date_format($payment_date) ?? '-'}} {{$transaction->convert_money_format($payment)}} {{ $status }}
Total {{$transaction->convert_money_format($total_surchage_amount)}} {{$transaction->convert_money_format($total_discount_amount)}} {{$transaction->convert_money_format($total_net_amount)}} {{$transaction->convert_money_format($total_paid_amount)}}