@extends('layouts.app') @section('title') Dealer Detail @stop @section('breadcrumb') @stop @section('content')
user-img

{{$dealer->name}}

{{$dealer->dealerType ? $dealer->dealerType->name : ''}}

@if($dealer->status == true) Active @else InActive @endif

{{number_format($total_sales)}}

PKR

Total Sale

{{number_format($total_rebates)}}

PKR

Total Rebate

{{number_format($total_paid_rebates)}}

PKR

Paid Amount

Basic Information


@if(!empty($dealer->cnic)) @endif @if(!empty($dealer->reg_no)) @endif @if($dealer->rebate_in_percent) @else @endif
Code {{$dealer->code}}
CNIC {{$dealer->cnic}}
Reg No {{$dealer->reg_no}}
Is Filer {{$dealer->is_filer ? 'YES' : 'NO'}}
NTN Number {{$dealer->ntn_number}}
Address {{$dealer->address}}{{$dealer->city ? ', '.$dealer->city->name.', '.$dealer->city->country->name : ''}}
Email {{$dealer->email}}
Phone Number {{$dealer->phone_number}}
Percentage {{$dealer->percentage}} % {{$dealer->percentage}} PKR
Updated at {{$dealer->updated_at}}
Created at {{$dealer->created_at}}
{{-- Dealer Open Files --}} @if(\App\ProjectType::getProjectType() == \App\ProjectType::society)

Open File Packages


@foreach($dealer_openfile_package as $dealer_package) @endforeach {{-- --}}
Package Name Total Amount Received Amount Issue Date Payment Status Action
{{$dealer_package->package->name}} {{$dealer_package->package->total_price}} pkr {{$dealer_package->dealerPackagePaymentReceipt->where('is_approved', 1)->sum('amount')}} pkr {{$dealer_package->issue_date}} @if($dealer_package->payment_status == \App\DealerPackage::pending) Pending @elseif($dealer_package->payment_status == \App\DealerPackage::completed) Completed @endif {{-- --}}
Total {{number_format($net_amount)}} {{number_format($total_rebate)}} {{number_format($total_received)}} {{number_format($paid_rebates)}}
@endif {{-- End Dealer Open Files --}}

Dealer Rebate


@foreach($transactions as $t) @if($t->property) @if($t->property->status == \App\CustomerProperty::pending) @elseif($t->property->status == \App\CustomerProperty::approved) @elseif($t->property->status == \App\CustomerProperty::cancel) @else @endif @endif @endforeach
Unit No. Client Net Amount Total Rebate Payable Total Received Amount Paid Rebate Status
{{$t->property->inventory->unit_number}} {{$t->property->customer->name}} {{number_format($t->property->net_pay)}} {{number_format($t->amount)}} {{number_format($received_amount[$t->id])}} {{number_format($paid_rebate[$t->id])}} PendingApprovedCanceled
Total {{number_format($net_amount)}} {{number_format($total_rebate)}} {{number_format($total_received)}} {{number_format($paid_rebates)}}
@foreach($package_transactions as $t) @if($t->dealerPackage) @endif @endforeach
Package Net Amount Total Rebate Payable Total Received Amount Paid Rebate
{{$t->dealerPackage->package->name}} {{number_format($t->dealerPackage->package->total_price)}} {{number_format($t->amount)}} {{number_format($package_received_amount[$t->id])}} {{number_format($package_paid_rebate[$t->id])}}
Total {{number_format($package_net_amount)}} {{number_format($package_total_rebate)}} {{number_format($package_total_received)}} {{number_format($package_paid_rebates)}}

Dealer Paid Rebates


@if(!$inventory_rebate->isEmpty()) @foreach($inventory_rebate as $rebate) @endforeach @else @endif
# Unit # Amount Date
{{$count++}} {{$rebate->property?$rebate->property->inventory->unit_number:''}} {{number_format($rebate->amount)}} {{date('d-m-Y', strtotime($rebate->date)) }}
Total {{number_format($t_rebate)}}
No record found.
@if(!$package_rebate->isEmpty()) @foreach($package_rebate as $rebate) @endforeach @else @endif
# Package Amount Date
{{$count++}} {{$rebate->dealerPackage?$rebate->dealerPackage->package->name:''}} {{number_format($rebate->amount)}} {{date('d-m-Y', strtotime($rebate->date)) }}
Total {{number_format($t_rebate)}}
No record found.

Dealer Customer Properties


@foreach($properties as $property) @if($color[$property->id] == 'red') @elseif($color[$property->id] == 'orange') @else @endif @endforeach
Sr # Unit # Customer Net Amount Received Amt. Remaining Amt. Last Payment Date Due Amt. Action
{{$count++}} {{$property->inventory->unit_number}} {{$property->customer->name}} {{number_format($property->net_pay)}} {{number_format($receivedAmount[$property->id])}} {{number_format($remainingAmount[$property->id])}} {{$lastDate[$property->id] ? date('d-m-Y', strtotime($lastDate[$property->id]->receipt_date)) : ''}} {{number_format($dueAmt[$property->id])}}
@foreach($dueMonth[$property->id] as $s) @if($loop->last){{date('M', strtotime($s->due_date))}} @else{{date('M', strtotime($s->due_date))}} - @endif @endforeach
@permission('sms-dealer')    @endpermission Transfer
Total {{number_format($net_amount)}} {{number_format($received_amount)}} {{number_format($remaining_amount)}} {{number_format($due_amount)}}
@permission('dealer-payment') @endpermission @stop @section('js') @stop