@if(isset($total_sale))
{{$total_sale}}
@else
0
@endif
Total Sale
@if(isset($total_with))
{{$total_with}}
@else
0
@endif
Total withdraw
@if(isset($total_bal))
{{$total_bal}}
@else
0
@endif
Total income
@if(isset($due_amount))
{{$due_amount}}
@else
0
@endif
Due amount
Sale List
@foreach ($sale as $sale )
member_id;
$member= Member::where('id',$member_id)
->get();
$plot = App\Plot::where('id', $sale->plot_id)->first();
$company = Account::where('sell_id',$sale->id)->first();
$company_amount=$company->company_log;
$ref_income=ReferenceIncome::where('sell_id', $sale->id)->sum('amount');
$total_wid = ReferenceWithdraw::where('sell_id', $sale->id)->sum('amount');
$incom = \App\ReferenceIncome::where('sell_id',$sale->id)->first();
if($company_amount- $ref_income>=50000)
{
$eiligible=$ref_income-$total_wid;
}
else if($company_amount>=50000)
{
$eiligible=($company_amount- 50000)-$total_wid;
}
else {
$eiligible=0;
}
?>
@foreach ($member as $member )
| Name |
Plot Details |
Commision plan |
Balance sheet |
Actions |
| {{ $member->name}} |
Block name: {{ $sale->block->title}}
File no: {{ $sale->sale_no }}
Plot no: {{ $sale->plot_no }}
Road no: {{ $plot->road }}
| Booking amount: {{ $incom->booking_amount}}tk
এককালীন percentage: {{ $incom->ekkalin_per_amount}}%
Installment percentage: {{ $incom->installment_per_amount}}% |
Total income: {{ $ref_income}}
Total withdraw: {{ $total_wid}}
Eligible withdraw amount: {{$eiligible}}
|
Veiw
|
@endforeach
@endforeach