@extends('layouts.app') @section('title') Paid Rebate Statement       {{date(('d/m/Y'),strtotime($from_date))}} to {{date(('d/m/Y'),strtotime($to_date))}} @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

Paid Rebate Statement

{{date(('d/m/Y'),strtotime($from_date))}} - {{date(('d/m/Y'),strtotime($to_date))}}
Date: {{date('d/m/Y')}}
User ID:   {{Auth::user()->name}}

@foreach($rebates as $rebate) @endforeach
Sr No. Date Unit No. Dealer Name Customer Unit Cost Discount Net Price Rebate Amount
{{$count++}} {{date('d/m/Y', strtotime($rebate->date)) }} {{$rebate->property ? $rebate->property->inventory->unit_number : '' }} {{$rebate->dealer ? $rebate->dealer->name : ''}} @if($rebate->property) {{$rebate->property->customer->name}} @endif @if($rebate->property) {{number_format($rebate->property->inventory->total_price)}} @endif @if($rebate->property) {{ number_format($rebate->property->inventory->total_price - $rebate->property->net_pay )}} @endif @if($rebate->property){{number_format($rebate->property->net_pay)}} @endif {{number_format($rebate->amount)}}
{{number_format($unit_cost_total)}} {{number_format($discount_total)}} {{number_format($net_total)}} {{number_format($rebate_total)}}
@stop @section('js') @stop