My plans @if ($plans->count() > 0) Buy new plan @endif

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

You do not have an investment plan at the moment

Buy a plan
@endif @if ($sortValue)

No record found

@endif
@endforelse
@if (count($plans) > 0)
{{ $plans->links() }}
@endif