@extends('layouts.app') @section('title', 'Profile') @section('content')
@if($account)

{{ $account->account_name }}

{{ $account->license_plan }} Plan

Status

{{ ucfirst($account->status) }}

Expires

{{ $account->expiry_date->format('d M Y') }}

Days Left

{{ $account->daysRemaining() }} days

@if($account->status === 'active')
@php $totalDays = $account->expiry_date->diffInDays($account->created_at) ?: 365; $elapsed = $totalDays - $account->daysRemaining(); $pct = max(0, min(100, round(($elapsed / $totalDays) * 100))); @endphp
@endif
@endif
@include('profile.partials.update-profile-information-form')
@if(!$account || auth()->user()->isSuperAdmin())
@include('profile.partials.update-password-form')
@endif
@include('profile.partials.delete-user-form')
@endsection