{{ 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
{{-- --}} {{-- --}} @foreach ($sells as $sell) @php $balance_amouont = $sell->total_schedule_amount - $sell->total_received_amount; // $total_internal_rebate += $sell->employee_rebate; // $total_external_rebate += $sell->external_employee_rebate; $grand_total_amount += $sell->total_schedule_amount; $grand_total_collection += $sell->total_received_amount; $grand_total += $sell->balance_amount; $total_received +=$sell->received_amount; if(!empty($sell->total_schedule_amount) || !empty($sell->total_received_amount)) { $total_collection_percent = number_format((float)($sell->total_received_amount/$sell->total_schedule_amount) * 100, 2, '.', ''); } else { $total_collection_percent = 0; } // Badge Start $badge_class = ''; if ($sell->status) { if ($sell->status == 'ACTIVE') { $badge_class = 'badge-success'; } elseif ($sell->status == 'CANCELLED') { $badge_class = 'badge-danger'; } elseif ($sell->status == 'BUY BACK') { $badge_class = 'badge-info'; }elseif ($sell->status == 'FULL PAID') { $badge_class = 'badge-success'; } else { $badge_class = 'badge-warning'; } } @endphp @php $int_name = ""; if(!empty($sell->sell_internal_dealer_rebate)){ foreach($sell->sell_internal_dealer_rebate as $key_I => $int_emp){ $int_name .= $int_emp->DealerName->name . ',' . "\r\n"; } }else{ $int_name = "-"; } @endphp @php $ext_name = ""; if(!empty($sell->sell_external_dealer_rebate)){ foreach($sell->sell_external_dealer_rebate as $key_I => $ext_emp){ $ext_name .= $ext_emp->DealerName->name . ',' . "\r\n"; } }else{ $ext_name = "-"; } @endphp {{-- --}} {{-- --}} @endforeach {{-- --}} {{-- --}} {{-- --}}
{{__('lang.serial_no')}} {{__('lang.registration_no')}} {{__('lang.unit_no')}} {{__('lang.customer')}} {{__('lang.internal_dealer')}}Internal Rebate{{__('lang.external_dealer')}}External Rebate{{__('lang.schedule')}} {{$transaction->systemSettingCurrency()}} {{__('lang.total_collection')}} {{__('lang.total_collection')}} (%) {{__('lang.receipts')}} {{__('lang.collected_terms')}} {{__('lang.collected_terms')}} {{$transaction->systemSettingCurrency()}} {{__('lang.till_month_balance')}} {{__('lang.total_outstanding_balance')}} {{__('lang.sale_status')}}
{{ $loop->iteration }} {{ $sell->registration_no}} {{ $sell->product_id }} {{ $sell->customer->name }} {{ $transaction->convert_money_format($sell->employee_rebate) ?? '0' }}{{ $transaction->convert_money_format($sell->external_employee_rebate) ?? '0' }}{{ $transaction->convert_money_format($sell->total_schedule_amount) }} {{ $transaction->convert_money_format($sell->total_received_amount) }} {{ $total_collection_percent }}% {{ $sell->receipt_no }} {{ $sell->schedule_term }} {{ $transaction->convert_money_format($sell->received_amount) }} {{ $transaction->convert_money_format($sell->balance_amount) }} {{ $transaction->convert_money_format($balance_amouont ) }} {{ $sell->status }}
{{__('lang.total')}}{{ $transaction->convert_money_format($total_internal_rebate) }}{{ $transaction->convert_money_format($total_external_rebate) }}{{ $transaction->convert_money_format($grand_total_amount) }} {{ $transaction->convert_money_format($grand_total_collection) }} {{ $transaction->convert_money_format($total_received)}} {{ $transaction->convert_money_format($grand_total)}} {{ $transaction->convert_money_format($grand_total_amount-$grand_total_collection) }}
{{__('lang.total_collected')}} | {{ $transaction->convert_money_format($total_received) }}