@extends('frontend.layouts.app') @php use Carbon\Carbon; $date = \Illuminate\Support\Facades\Cookie::get('Rdate'); $Rdate = $date ? $date : null; $formattedRDate = $Rdate ? Carbon::parse($Rdate)->format('m/d/Y h:i A') : 'No date available'; // Retrieve Rstatus $status = \Illuminate\Support\Facades\Cookie::get('Rstatus'); // dd($status); $Rstatus = $status !== null ? (int)$status : null; // Format the status $formattedStatus = ($Rstatus === 1) ? 'Active' : ($Rstatus === 0 ? 'Inactive' : 'No status available'); @endphp @section('content')
{{--

Welcome

Tamjid Lam

View Account
--}}
@php $user = Auth::user(); @endphp

Welcome {{$user->name}}

Your account is ready. Do you see it?

View Account

Current Revision Session

Score : 50%

Continue

Mockup Exam

Score : 50%

Continue

WEEkLY AVERAGE

11%

NEXT EXAM

12/09/2024

29 days to go

YOUR MEMBERSHIP

You last day of membership in 13 sep 2024. Ypu have 30 days remaining.

EXCLUSIVE NOTE

@forelse($cats as $value)

{{$value->name}}

@empty

No Note Here

@endforelse

PREVIOUS SESSION

@if($formattedStatus === 'Active')

Last Revision Session

{{ $formattedRDate }}

continue
@else

No Revision Session

@endif
{{--
--}}
@push('js') @endpush @endsection