@extends('layouts.app') @section('title', 'Customer Details') @section('page-title', $customer['name']) @section('page-subtitle', $customer['email']) @section('content')

Total Licenses

{{ $customer['total_licenses'] }}

Active Licenses

{{ $customer['active_licenses'] }}

Expired Licenses

{{ $customer['expired_licenses'] }}

Total Revenue

${{ number_format($customer['total_revenue']) }}

Customer Information

{{ $customer['name'] }}

{{ $customer['email'] }}

{{ \Carbon\Carbon::parse($customer['first_license'])->format('F d, Y') }}

License History

@foreach($customerLicenses as $license) @endforeach
License Key Product Plan Status Domain Expires Actions
{{ $license->license_key }} {{ $license->product_name }} {{ ucfirst($license->plan_type) }} @if($license->expired_at && $license->expired_at < now()) Expired @elseif($license->status === 'active') Active @elseif($license->status === 'suspended') Suspended @else Inactive @endif {{ $license->domain ?? '-' }} {{ $license->expired_at ? $license->expired_at->format('M d, Y') : 'N/A' }} View
← Back to Customers
@endsection