{{ config('settings.company_name')}}
{{ config('settings.address_1')}}, {{ config('settings.address_2')}}, {{ config('settings.city')}}
{{$heading}}
@if($search_by['from'] && $search_by['to']) From: {{ $transaction->date_format($search_by['from']) }} To: {{ $transaction->date_format($search_by['to']) }} @else {{ 'Upto ' .$transaction->date_format(now()) }} @endif
@php $counter = 1; $total_actual_amount = 0; $total_discounted_amount_deduction = 0; $total_total_refund_amount = 0; $total_paid_amount = 0; $total_balance_amount = 0; @endphp @if($branch_name) @endif @foreach($infos as $info) @php $refund_amount = ($info->total_refund_amount) + ($info->total_refund_amount_unofficial); $paid_amount = ($info->paid_amount) + ($info->paid_amount_unofficial); $balance_amount = $refund_amount - $paid_amount; $discounted_amount = ($info->discount_amount_official) + ($info->discount_amount_unofficial); $payment_status = $info->payment_status; $payment_status_unofficial = $info->payment_status_unofficial; $badge_class = ''; if($payment_status == 'Settled') { $badge_class = 'badge-success'; } elseif ($payment_status == 'Pending') { $badge_class = 'badge-warning'; } elseif ($payment_status == 'Partially Settled') { $badge_class = 'badge-info'; } $badge_class_unofficial = ''; if ($payment_status_unofficial == 'Settled') { $badge_class_unofficial = 'badge-success'; } elseif ($payment_status_unofficial == 'Pending') { $badge_class_unofficial = 'badge-warning'; } elseif ($payment_status_unofficial == 'Partially Settled') { $badge_class_unofficial = 'badge-info'; } if($is_official == 'official') { $refund_amount = ($info->total_refund_amount); $paid_amount = ($info->paid_amount); $discounted_amount = $info->discount_amount_official; $balance_amount = $refund_amount - $paid_amount; $payment_status = $info->payment_status; $badge_class = $badge_class; } elseif ($is_official == 'unofficial') { $refund_amount = ($info->total_refund_amount_unofficial); $paid_amount = ($info->paid_amount_unofficial); $balance_amount = $refund_amount - $paid_amount; $discounted_amount = $info->discount_amount_unofficial; $payment_status = $info->payment_status_unofficial; $badge_class = $badge_class_unofficial; } $total_actual_amount += $info->actual_amount; $total_total_refund_amount += $refund_amount; $total_paid_amount += $paid_amount; $total_balance_amount += $balance_amount; $total_discounted_amount_deduction += $discounted_amount; @endphp @endforeach

{{ ucwords($branch_name) }}

{{__('lang.serial_no')}} {{__('lang.refund_computation')}} {{__('lang.customer')}} {{__('lang.product')}} {{__('lang.registration_no')}} {{__('lang.remarks')}} {{__('lang.actual_amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.deduction')}} {{$transaction->systemSettingCurrency()}} {{__('lang.refund')}} {{$transaction->systemSettingCurrency()}} {{__('lang.payment_priority')}} {{__('lang.paid_amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.balance_amount')}} {{$transaction->systemSettingCurrency()}} {{__('lang.payment_status')}} {{__('lang.created_date')}} {{__('lang.created_by')}}
{{ $counter++ }} {{ $info->refrence_computation}} {{ ucwords($info->customer_name) }} {{ $info->product_unique_id}} {{ $info->registration_no}} {{ $info->remark}} {{ $transaction->convert_money_format($info->actual_amount)}} {{ $transaction->convert_money_format($discounted_amount)}} {{ $transaction->convert_money_format($refund_amount)}} {{ $info->payment_priority ?? "-"}} {{ $transaction->convert_money_format($paid_amount)}} {{ $transaction->convert_money_format($balance_amount)}} @if($is_official == 'combine') {{ ($payment_status) }} / {{ ($payment_status_unofficial) }} @else {{ ($payment_status) }} @endif {{ $transaction->date_format($info->created_at)}} {{ $info->createdby->name ?? ' - ' }}
{{__('lang.total')}} {{$transaction->convert_money_format($total_actual_amount)}} {{$transaction->convert_money_format($total_discounted_amount_deduction)}} {{$transaction->convert_money_format($total_total_refund_amount)}} {{$transaction->convert_money_format($total_paid_amount)}} {{$transaction->convert_money_format($total_balance_amount)}}