Dashboard

{{-- ================= ADMIN DASHBOARD ================= --}} @if (auth()->user()->user_type === 'admin')

Total Properties

{{ $totalProperties ?? 0 }}

Total Units

{{ $totalUnits ?? 0 }}

Total Invoice

${{ $totalInvoice ?? 0 }}

Total Expense

${{ $totalExpense ?? 0 }}
@endif {{-- ================= END ADMIN DASHBOARD ================= --}} {{-- ================= OWNER DASHBOARD ================= --}} @if (auth()->user()->user_type === 'owner')

Total Properties

{{ $totalProperties ?? 0 }}

Total Units

{{ $totalUnits ?? 0 }}

Total Invoice

${{ $totalInvoice ?? 0 }}

Total Expense

${{ $totalExpense ?? 0 }}
{{-- Packages Section (only for owners) --}} @if ($showPackages)

Choose a Package @if (!is_null($daysLeft)) ({{ $daysLeft <= 0 ? 'Expired' : $daysLeft . ' days left' }}) @endif

@forelse ($packages as $package)
{{ $package->package_type }}
@php $currency = strtoupper($package->currency ?? 'INR'); $symbol = $currency === 'INR' ? '₹' : ($currency === 'USD' ? '$' : $currency . ' '); @endphp
{{ $symbol }}{{ number_format($package->price, 2) }} / {{ $package->billing_cycle }}
@if (is_array($package->features))
    @foreach ($package->features as $feat)
  • @if (($feat['checked'] ?? '0') == '1') ✅ {{ $feat['name'] ?? '' }} @else ❌ {{ $feat['name'] ?? '' }} @endif
  • @endforeach
@endif
@csrf
@empty
No active packages available right now.
@endforelse
@endif @endif {{-- ================= END OWNER DASHBOARD ================= --}} {{-- ================= TENANT DASHBOARD ================= --}} @if (auth()->user()->user_type === 'tenant')

Total Units

{{ $totalUnits ?? 0 }}
@if ($unit)

{{ $unit->unit_name }} in property: {{ $unit->property->name ?? 'N/A' }}

Status: {{ ucfirst($unit->status) }}

@else

You are not assigned to any unit yet.

@endif
@endif {{-- ================= END TENANT DASHBOARD ================= --}}