@extends('layouts.admin') @section('title', __('View Customer')) @section('page-title', __('View Customer')) @section('content')
@csrf @method('PATCH') {{ $customer->hasVerifiedEmail() ? __('Mark Unverified') : __('Mark Verified') }}
{{ __('Edit Customer') }}
{{ __('First Name') }}
{{ $customer->first_name }}
{{ __('Last Name') }}
{{ $customer->last_name }}
{{ __('Email') }}
{{ $customer->email }} @if($customer->hasVerifiedEmail()) {{ __('Verified') }} @else {{ __('Unverified') }} @endif
{{ __('Timezone') }}
{{ $customer->timezone }}
{{ __('Language') }}
{{ $customer->language }}
{{ __('Company Name') }}
{{ $customer->company_name ?? '-' }}
{{ __('Phone') }}
{{ $customer->phone ?? '-' }}
{{ __('Country') }}
{{ $customer->country ?? '-' }}
@if($customer->address)
{{ __('Address') }}
{{ $customer->address }}
@endif @if($customer->city || $customer->state || $customer->zip_code)
{{ __('City') }}
{{ $customer->city ?? '-' }}
{{ __('State') }}
{{ $customer->state ?? '-' }}
{{ __('Zip Code') }}
{{ $customer->zip_code ?? '-' }}
@endif
@php $statusColors = [ 'active' => 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200', 'inactive' => 'bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300', 'pending' => 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200', 'suspended' => 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200', ]; @endphp {{ __(ucfirst($customer->status)) }}
{{ __('Created') }}
{{ $customer->created_at->format('M d, Y') }}
{{ __('Email Verified') }}
{{ $customer->hasVerifiedEmail() ? $customer->email_verified_at->format('M d, Y') : __('No') }}
@if($customer->expires_at)
{{ __('Expires At') }}
{{ $customer->expires_at->format('M d, Y') }}
@endif
{{ __('Quota Usage') }}
{{ number_format($customer->quota_usage, 2) }} / {{ number_format($customer->quota, 2) }}
{{ __('Max Lists') }}
{{ $customer->max_lists ?: __('Unlimited') }}
{{ __('Max Subscribers') }}
{{ $customer->max_subscribers ?: __('Unlimited') }}
{{ __('Max Campaigns') }}
{{ $customer->max_campaigns ?: __('Unlimited') }}
{{ __('Currency') }}
{{ $customer->currency }}
@if($customer->customerGroups->count() > 0)
    @foreach($customer->customerGroups as $group)
  • {{ $group->name }}
  • @endforeach
@endif
@endsection