@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($dealer->rebate_in_percent) @else @endif
Code {{$dealer->code}}
CNIC {{$dealer->cnic}}
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 Rebate


@foreach($transactions as $t) @if($t->property) @endif @endforeach
Unit No. Client Net Amount Total Rebate Payable Total Received Amount Paid Rebate
{{$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])}}
Total {{number_format($net_amount)}} {{number_format($total_rebate)}} {{number_format($total_received)}} {{number_format($paid_rebates)}}

Dealer Paid Rebates


@if(!$dealer->dealerRebate->isEmpty()) @foreach($dealer->dealerRebate as $rebate) @endforeach @else @endif
# Unit # Amount Date
{{$count++}} {{$rebate->property->inventory->unit_number}} {{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