@extends('layouts.dash') @section('title', $title) @section('content')
My Investment plans ({{ request()->route('sort') == 'yes' ? 'Active' : request()->route('sort') }})
@if ($numOfPlan > 0)
Sort
@endif @forelse ($plans as $plan)
{{-- --}}
{{ $plan->dplan->name }}

Amount - {{ $settings->currency }}{{ number_format($plan->amount) }}

{{ $plan->created_at->addHour()->toDayDateTimeString() }}
Start Date
{{ \Carbon\Carbon::parse($plan->expire_date)->addHour()->toDayDateTimeString() }}
End Date
@if ($plan->active == 'yes') Active @elseif($plan->active == 'expired') Expired @else Inactive @endif
Status
@empty

You do not have an investment plan at the moment or no value match your query.

Buy a plan
@endforelse @if (count($plans) > 0)
{{ $plans->links() }}
@endif
@endsection @section('scripts') @parent @endsection