@extends('layouts.app') @section('title') Commission Report @stop @section('breadcrumb') @stop @section('css') @stop @section('content')

@foreach($project_names as $key => $project_name) {{ $project_name }} @if($key < count($project_names) - 1) , @endif @endforeach

Commission Report

{{date(('d/m/Y'),strtotime($from_date))}} - {{date(('d/m/Y'),strtotime($to_date))}}
Date: {{date('d/m/Y')}}
User ID:   {{Auth::user()->name}}
{{ csrf_field() }}
@foreach($transactions as $t) @if($t->property->inventory->floor) @if( ($filter_type == 'filter' && $block > 0 && $block == $t->property->inventory->floor->unitBlock->id) || $filter_type == 'all' ) @endif @endif @endforeach
Sr No. Date Unit No. Unit Floor. Unit Block. Dealer Unit Cost Discount Net Price Commission Amount
{{$count++}} {{date('d/m/Y', strtotime($t->created_at)) }} @if($t->property) @if($t->property->inventory) {{$t->property->inventory->unit_number}} @endif @endif @if($t->property) @if($t->property->inventory) {{$t->property->inventory->floor?$t->property->inventory->floor->name:''}} @endif @endif @if($t->property) @if($t->property->inventory) @if($t->property->inventory->floor) {{$t->property->inventory->floor->unitBlock?$t->property->inventory->floor->unitBlock->name:''}} @endif @endif @endif {{$t->dealer ? $t->dealer->name : ''}} @if($t->property) {{number_format($t->property->inventory->total_price)}} @endif @if($t->property) {{ number_format($t->property->inventory->total_price - $t->property->net_pay )}} @endif @if($t->property) @if($t->property){{number_format($t->property->net_pay)}} @endif @endif {{number_format($t->amount)}}
Total {{number_format($unit_cost_total)}} {{number_format($discount_total)}} {{number_format($net_total)}} {{number_format($commission_total)}}
Total Commission Amount {{number_format($total_amount)}}
Total Paid Commission {{number_format($paid_amount)}}
Total Payable Commission {{number_format($total_amount - $paid_amount)}}
@stop @section('js') @stop