@extends('layouts.admin') @section('title', __('Customers')) @section('page-title', __('Customers')) @section('content')
{{ __('Search') }}
{{ __('Add Customer') }}
@forelse($customers as $customer) @empty @endforelse
{{ __('Customer') }} {{ __('Plan/Group') }} {{ __('Status') }} {{ __('Quota') }} {{ __('Created') }} {{ __('Actions') }}
{{ $customer->full_name }}
{{ $customer->email }}
@if($customer->customerGroups->count() > 0) {{ $customer->customerGroups->pluck('name')->join(', ') }} @else - @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)) }} {{ number_format($customer->quota_usage, 2) }} / {{ number_format($customer->quota, 2) }} {{ $customer->created_at->format('M d, Y') }}
{{ __('View') }} {{ __('Edit') }}
@csrf @method('DELETE') {{ __('Delete') }}
{{ __('No customers found.') }}
@if($customers->hasPages())
{{ $customers->links() }}
@endif
@endsection