@extends('layouts.app') @section('page', $page) @section('title', getSetting('APPLICATION_NAME') . ' | ' . $page) @section('content')

Hi, {{ auth()->user()->username }}!

@if (Session::has('success')) @endif @if(auth()->user()->plan_status == 'active')

Your plan is Active and is valid till {{ !$userPlan->isEmpty() ? $userPlan[0]->plan_end_date : '-' }}.

@elseif(auth()->user()->plan_status == 'inactive')

Your plan is Inactive, Upgrade now!

@else

Your plan is Expired, Upgrade now!

@endif @if(!$userPlan->isEmpty())
@foreach ($userPlan as $key => $value) @endforeach
# Amount Type Currency Gateway Plan Start Date Plan End Date
{{ $key + 1 }} {{ $value->amount }} {{ ucfirst($value->type) }} {{ $value->currency }} {{ ucfirst($value->gateway) }} {{ $value->plan_start_date }} {{ $value->plan_end_date }}
@else

Your transactions will be displayed here.

@endif
@endsection