@extends('layouts.app') @section('title', 'Dashboard') @section('content')

Welcome back, {{ auth()->user()->name }}!

Here's what's happening with your account today.

Account Balance

{{ '$' . number_format($accountBalance, 2) }}

Quick Actions

Active

Services

{{ $services->count() }}

{{ $services->where('status', 'active')->count() }} active services

Registered

Domains

{{ $domains->count() }}

{{ $domains->count() }} domains registered

@if($tickets->where('status', 'open')->count() > 0) Open @else None @endif

Support Tickets

{{ $tickets->count() }}

{{ $tickets->where('status', 'open')->count() }} open tickets

@if($invoices->where('status', 'unpaid')->count() > 0) Unpaid @else Paid @endif

Invoices

{{ $invoices->count() }}

{{ $invoices->where('status', 'unpaid')->count() }} unpaid invoices

Recent Services

View All →
@if($services->count())
@foreach($services as $service)

{{ $service->name }}

{{ $service->product->name ?? 'Service' }}

{{ ucfirst($service->status) }}
@endforeach
@else @endif

Recent Invoices

View All →
@if($invoices->count())
@foreach($invoices as $invoice)

{{ $invoice->invoice_number }}

${{ number_format($invoice->total, 2) }}

{{ ucfirst($invoice->status) }}
@endforeach
@else

No invoices yet

@endif
@endsection