@extends('layouts.app') @section('title') Package Details @stop @section('breadcrumb') @stop @section('content') @php $size= ''; if($projectType->id == \App\ProjectType::society){ $size= \App\ProjectType::society_size; } else { $size= \App\ProjectType::high_rise_size; } @endphp

Package Details


@if( $package->rebate_type == 'openfile') @endif
Sr. No: {{ $count++ }}
Package Name: {{ $package->name }}
Inventory Price List {{ $package->pricelist->l_no }}
Package Price PKR {{ $package->total_price }}
Total Rebate PKR {{ $package->rebate_amount ? $package->rebate_amount : 'NIL' }}
Delivered Rebate In: {{ $package->rebate_type }}
Remaining Rebate In: PKR {{ $package->remaining_rebate }}

@if( $package->rebate_type == 'cash' )

Package Open Files



@foreach ($package->packageDetail as $p) @if ($p->rebate_file == 0) @endif @endforeach
Sr. No. Unit Type Size No. of Files Per File Dealer Down Payment Per File Rebate
{{ $count++ }} {{ $p->unittype->name }} {{ $p->unitSize->name }} {{$size}} {{ $p->unit_quantity }} PKR {{ $p->dealer_downpayment }} PKR {{ $p->dealer_rebate }}
@else

Package Open Files



@foreach($package->packageDetail as $p) @if($p->rebate_file == 0) @endif @endforeach
Sr. No. Unit Type Size No. of Files Per File Dealer Down Payment Per File Rebate
{{ $count++ }} {{ $p->unittype->name }} {{ $p->unitSize->name }} {{$size}} {{ $p->unit_quantity }} PKR {{ $p->dealer_downpayment }} PKR {{ $p->dealer_rebate }}


Dealer Rebate Open Files



@foreach($package->packageDetail as $p) @if($p->rebate_file == 1) @endif @endforeach
Sr. No. Unit Type Size No. of Files Per File Dealer Down Payment Per File Rebate
{{ $count++ }} {{ $p->unittype->name }} {{ $p->unitSize->name }} {{$size}} {{ $p->unit_quantity }} PKR {{ $p->dealer_downpayment }} PKR {{ $p->dealer_rebate }}
@endif
@stop @section('js') @stop