@extends('layouts.pdf') @section('title') {{ $extra['module_name'] }} @endsection @section('content')
@include('admin.partials.header', ['extra' => $extra]) @php $total_colspan = 15; @endphp @foreach ($sells as $sell) @php $monthly_installment = $sell->current_monthly_installment; $half_yearly_installment = $sell->current_half_yearly_installment; $quarterly_installment = $sell->current_quarterly_installment; $annually_installment = $sell->current_annually_installment; $possession_term = $sell->current_possession_term; $down_payment_term = $sell->current_down_payment_term; $product_fixed_amount = $sell->product->fixed_amount; $discount_amount = $sell->discount_amount; $additional_charges = $sell->additional_charges; $schedule_amount = $sell->total_schedule_amount; $collected_amount = $sell->total_received_amount; $till_month_amount = $sell->total_till_month_due; $sale_amount = $schedule_amount + $discount_amount; $due_amount = $schedule_amount - $collected_amount; $last_payment_date = $sell->current_month_payment_date; $last_paid_amount = $sell->current_month_paid_amount; $last_mode_of_payment = $sell->current_month_payment_mode; $internal_dealer = $sell->sell_internal_dealer_rebate->implode('DealerName.name' , ','); $external_dealer = $sell->sell_external_dealer_rebate->implode('DealerName.name' , ','); $no_of_days = 0; if ($sell->due_terms_count == 1) { $no_of_days = "0-30"; } elseif ($sell->due_terms_count == 2) { $no_of_days = "30-60"; } elseif ($sell->due_terms_count == 3) { $no_of_days = "60-90"; } elseif ($sell->due_terms_count >= 4) { $no_of_days = "90+"; } //total amounts $total_product_fixed_amount += $product_fixed_amount ; $total_additional_charges += $additional_charges ; $total_discount_amount += $discount_amount; $total_schedule_amount += $schedule_amount; $total_collected_amount += $collected_amount; $total_till_month_amount += $till_month_amount; $total_sale_amount += $sale_amount; $total_due_amount += $due_amount; $total_last_paid_amount += $last_paid_amount; $badge_class = ''; if ($sell->is_transfered) { $badge_class = 'badge-danger'; } else{ 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 @endforeach
PRODUCT CUSTOMER SALES
S. No. Registration No Project Name Unit No Block Floor Category Size Customer NIC Address Phone Sale Date Internal Dealer External Dealer Property Value Additional Charges {{$transaction->systemSettingCurrency()}} Sale {{$transaction->systemSettingCurrency()}} Discount Schedule {{$transaction->systemSettingCurrency()}} Total Collection Total Due Total Due Till Month Sale Status Down Payment / Booking Money Per Month Installment Half Yearly Amount Quarterly Amount Annually Amount Possession Amount Due Months No Of Days Last Payment Date Last Payment Amount Last Payment Mode Agent Name
{{ $loop->iteration }} {{ $sell->registration_no }} {{ $sell->branch->name }} {{ $sell->product->product_unique_id }} {{ $sell->product->block->name ?? '-' }} {{ $sell->product->floor->name ?? '-' }} {{ $sell->product->category->name ?? '-' }} {{ $sell->product->flat_size }} {{ $sell->product->size_in }} {{ $sell->customer->name }} {{ $sell->customer->nid }} {{ $sell->customer->mailing_address }} {{ $sell->customer->phone }} {{ $transaction->date_format($sell->sale_date_v2) }} {{ $internal_dealer ?? "-" }} {{ $external_dealer ?? "-" }} {{ $transaction->convert_money_format($product_fixed_amount) }} {{ $transaction->convert_money_format($additional_charges) }} {{ $transaction->convert_money_format($sale_amount) }} {{ $transaction->convert_money_format($discount_amount) }} {{ $transaction->convert_money_format($schedule_amount) }} {{ $transaction->convert_money_format($collected_amount) }} {{ $transaction->convert_money_format($due_amount) }} {{ $transaction->convert_money_format($till_month_amount) }} @if ($sell->is_transfered) TRANSFER @else {{ $sell->status }} @endif {{ $transaction->convert_money_format($down_payment_term) ?? "-" }} {{ $transaction->convert_money_format($monthly_installment) ?? "-" }} {{ $transaction->convert_money_format($half_yearly_installment) ?? "-" }} {{ $transaction->convert_money_format($quarterly_installment) ?? "-" }} {{ $transaction->convert_money_format($annually_installment) ?? "-" }} {{ $transaction->convert_money_format($possession_term) ?? "-" }} {{ $sell->due_terms_count ?? "-" }} {{ $no_of_days ?? "-" }} {{ $transaction->date_format($last_payment_date) ?? "-" }} {{ $transaction->convert_money_format($last_paid_amount) ?? "-" }} {{ $last_mode_of_payment ?? "-" }} {{ $sell->SellAssignRecovery->recoveryAgent->name ?? "-" }}
TOTAL {{ $transaction->convert_money_format($total_product_fixed_amount ) }} {{ $transaction->convert_money_format($total_additional_charges ) }} {{ $transaction->convert_money_format($total_sale_amount ) }} {{ $transaction->convert_money_format($total_discount_amount ) }} {{ $transaction->convert_money_format($total_schedule_amount ) }} {{ $transaction->convert_money_format($total_collected_amount ) }} {{ $transaction->convert_money_format($total_due_amount ) }} {{ $transaction->convert_money_format($total_till_month_amount ) }} {{ $transaction->convert_money_format($total_last_paid_amount) }}
@stop