@extends('layouts.dash') @section('title', $title) @section('content')
Your {{ $plan->dplan->name }} Plan

{{ $plan->dplan->name }} - {{ $plan->dplan->increment_type == 'Fixed' ? $settings->currency : '' }}{{ $plan->dplan->increment_amount }}{{ $plan->dplan->increment_type == 'Percentage' ? '%' : '' }} {{ $plan->dplan->increment_interval }} for {{ $plan->dplan->expiration }}

@if ($plan->active == 'yes') Active @elseif($plan->active == 'expired') Expired @else Inactive @endif
@if ($settings->should_cancel_plan) @if ($plan->active == 'yes') Cancel this Plan @endif @endif

Plan information

{{ $settings->currency }}{{ number_format($plan->amount, 2, '.', ',') }} +  

Invested amount

{{ $settings->currency }}{{ number_format($plan->profit_earned, 2, '.', ',') }}

Profit earned

@if ($settings->return_capital) {{ $settings->currency }}{{ number_format($plan->amount + $plan->profit_earned, 2, '.', ',') }} @else {{ $settings->currency }}{{ number_format($plan->profit_earned, 2, '.', ',') }} @endif

Total Return

Duration:
{{ $plan->dplan->expiration }}

Start Date:
{{ $plan->created_at->addHour()->toDayDateTimeString() }}

End Date:
{{ \Carbon\Carbon::parse($plan->expire_date)->addHour()->toDayDateTimeString() }}

Minimum Return:
{{ $plan->dplan->minr }}%

Maximum Return:
{{ $plan->dplan->maxr }}%

ROI Interval:
{{ $plan->dplan->increment_interval }}

Transactions

@forelse($transactions as $history) @empty @endforelse
Type Date Amount
Profit {{ $history->created_at->addHour()->toDayDateTimeString() }} {{ $settings->currency }}{{ number_format($history->amount, 2, '.', ',') }}
No transaction record yet
{{ $transactions->links() }}
@endsection