@php
$NonSadaButton = 'disabled';
$display_floor_percent = false;
$ground_floor_cnt = 0;
$is_test_dsr = false;
$quality_control_label_added = false;
$ssr = false;
$mat_tot_cost = 0;
if (stristr($pr->RateIndexCode, 'test dsr') != FALSE) {
$is_test_dsr = true;
} else {
$is_test_dsr = false;
}
@endphp
{{ Form::open(['url' => route('updateCompleteMarketRateAnalysis', $row->ProjectID)]) }}
@if ($rate_analysis)
@foreach ($rate_analysis as $pr)
R.A.: {{ $pr->RateSequenceNo }} - {{ $pr->RateItem }} |
Remove
|
Item No: {{ $pr->DSRItemCodeRef }}, ( {{ $pr->RateIndexCode }} ) |
Basic Rate |
{{ $pr->BasicRate }}/{{ $pr->RateUnit }} |
@php
$total = $pr->BasicRate;
$basic_rate_amount_ded = 0;
$mat_tot_deduct_cost = 0;
$non_scada_amount = 0;
$diff_arr=[];
if (($pr->NonSadaPercent != 0 || $pr->NonSadaAmount != 0)) {
if ($pr->NonSadaPercent != 0) {
$non_scada_amount = ($total * $pr->NonSadaPercent) / 100;
$non_scada_percent = $pr->NonSadaPercent;
} else {
$non_scada_amount = $pr->NonSadaAmount;
$non_scada_percent = round(($non_scada_amount * 100) / $total);
}
$total = $total - $non_scada_amount;
$pr->BasicRate = $pr->BasicRate - $non_scada_amount;
@endphp
Deduct for Non Scada @ {{ $non_scada_percent }}%
|
Rs. 0.004 |
@php } @endphp
@if ($is_test_dsr == false && $pr->GeneralNotePerRate != 0)
@if (count($diff_arr) > 0)
Royalty Deductions |
Material |
Constant |
Cost |
Value |
|
@endif
@endif
@php
$act_not_per_amt = $pr->GeneralNotePerRate;
if ($is_test_dsr == false) {
if ($mat_tot_deduct_cost != 0) {
$tmp_per = $pr->GeneralNotePerRate * 100 / ($pr->BasicRate + $non_scada_amount);
$act_not_per_amt = ($pr->BasicRate - $mat_tot_deduct_cost) * $tmp_per / 100;
}
}
@endphp
@if ($pr->GeneralNotePerRate != 0)
{{ $pr->RateGeneralNotes }} |
Rs. {{ number_format($act_not_per_amt, 2) }} |
@endif
@if ($display_floor_percent == true)
@php $total = $total + $pr->FloorPerRate;@endphp
Floor Percent |
Rs. {{ $pr->FloorPerRate }} |
@endif
@php
$total = ($total - $mat_tot_deduct_cost) + $act_not_per_amt;
@endphp
@if ($mat_tot_cost != 0 && $is_test_dsr == false && $EstType != "marketing")
Sub Total |
Rs. 0.00 |
@endif
Total Amount |
Rs. 0.00 |
Total Rate |
Rs.
|