@extends('layouts.admin') @section('content') @push('css') @endpush

{{--
--}}

{{$setting->app_name}}

{{$setting->email}}

Confirm TO :

{{ @$investment->member->name }}

{{ @$investment->member->phone_number }}
User: 21190301193

FUND WITHDRAW CONFIRM

Withdraw Method : Cash
Date: {{ date('d M, Y') }}
#
Description
Amount
1
Business Opening Date
{{ \Carbon\Carbon::parse($investment->invest_start_date)->format('d M Y') }}
1
Business End Date
{{ \Carbon\Carbon::parse($investment->invest_end_date)->format('d M Y') }}
2
Business Type
{{ $investment->package->package_name }}
@php $date1 = $investment->invest_start_date; $date2 = $investment->closing_request_date; $d1=new DateTime($date2); $d2=new DateTime($date1); $Months = $d2->diff($d1); $howeverManyMonths = (($Months->y) * 12) + ($Months->m); @endphp
3
Profit Rate
@if($investment->term_of_month<=$howeverManyMonths) {{ $investment->profit_ratio }} @else @if($howeverManyMonths < 3) {{ $investment->closing_one_profit_ratio }} @elseif($howeverManyMonths >= 3 && $howeverManyMonths <= 6) {{ $investment->closing_two_profit_ratio }} @elseif($howeverManyMonths >= 6 && $howeverManyMonths <= 9) {{ $investment->closing_three_profit_ratio }} @elseif($howeverManyMonths >= 9 && $howeverManyMonths <= 12) {{ $investment->closing_four_profit_ratio }} @elseif($howeverManyMonths >= 12 && $howeverManyMonths <= 15) {{ $investment->closing_five_profit_ratio }} @elseif($howeverManyMonths > 15) {{ $investment->profit_ratio }} @endif @endif %
5
Target Term(month)
{{ $investment->term_of_month }}
4
Profit Taken Time(month)
{{ $howeverManyMonths }}
6
Business Amount
{{ number_format($investment->amount) }}
7
Actual Profit
@php $profit =0; if($howeverManyMonths<=$investment->closing_one_month){ $profit=($investment->amount*$investment->closing_one_profit_ratio)/100; }elseif($howeverManyMonths>$investment->closing_one_month&&$howeverManyMonths<=$investment->closing_two_month){ $profit=($investment->amount*$investment->closing_two_profit_ratio)/100; }elseif($howeverManyMonths>$investment->closing_two_month&&$howeverManyMonths<=$investment->closing_three_month){ $profit=($investment->amount*$investment->closing_three_profit_ratio)/100; }elseif($howeverManyMonths>$investment->closing_three_month&&$howeverManyMonths<=$investment->closing_four_month){ $profit=($investment->amount*$investment->closing_four_profit_ratio)/100; }elseif($howeverManyMonths>$investment->closing_four_month&&$howeverManyMonths<=$investment->closing_five_month){ $profit=($investment->amount*$investment->closing_five_profit_ratio)/100; } @endphp {{$profit}}
@php $grand_total = $investment->amount+$profit; @endphp
8
Total Amount
{{ number_format($investment->amount+$profit) }}
@if(in_array($investment->package_id, [1,8]))
9
Total Paid Profit
@php $total_paid_profit =0; $paid_amount = \App\Models\Transaction::where(['module_type' => 'Investment', 'module_id' => $investment->id, 'for_report' => 'agent_commission', 'dr_cr' => 'cr', 'trans_type' => 'Liabilities'])->sum('amount'); if($howeverManyMonths<=$investment->closing_one_month){ $total_paid_profit=($paid_amount*$investment->closing_one_profit_ratio)/100; }elseif($howeverManyMonths>$investment->closing_one_month&&$howeverManyMonths<=$investment->closing_two_month){ $total_paid_profit=($paid_amount*$investment->closing_two_profit_ratio)/100; }elseif($howeverManyMonths>$investment->closing_two_month&&$howeverManyMonths<=$investment->closing_three_month){ $total_paid_profit=($paid_amount*$investment->closing_three_profit_ratio)/100; }elseif($howeverManyMonths>$investment->closing_three_month&&$howeverManyMonths<=$investment->closing_four_month){ $total_paid_profit=($paid_amount*$investment->closing_four_profit_ratio)/100; }elseif($howeverManyMonths>$investment->closing_four_month&&$howeverManyMonths<=$investment->closing_five_month){ $total_paid_profit=($paid_amount*$investment->closing_five_profit_ratio)/100; } @endphp {{ number_format($total_paid_profit) }}
@endif

Customer Signature

@if($investment->closing_request!=1)

Thank You

@endif @if($investment->closing_request==1)
@csrf
@endif

Authorize Signature

@if($investment->closing_request==100)
@php $start_date = now()->parse($investment->invest_start_date); $end_date = now()->parse($investment->invest_end_date); $different_month = $start_date->diffInMonths($end_date); @endphp @if($investment->term_of_month <=$howeverManyMonths)
@csrf
@endif
@endif
@push('alljs') @endpush @endsection