@extends('admin.layouts.app') @section('content')
{{-- Sidebar --}}
{{-- Customer info --}}
{{ strtoupper(mb_substr($customer->name, 0, 1)) }}

{{ $customer->name }}

{{ $customer->email }}

Inscrit le {{ $customer->created_at->format('d/m/Y') }}
@if ($customer->is_admin)
Role Admin
@endif
{{-- Stats --}}

Statistiques

{{ $stats['orders_count'] }}

Commande{{ $stats['orders_count'] > 1 ? 's' : '' }}

{{ number_format($stats['total_spent'], 2, ',', ' ') }} €

Total dépensé

{{-- Orders --}}

Commandes

@forelse ($orders as $order) @empty @endforelse
Commande Statut Total Date Actions
{{ $order->number }} {{ number_format($order->total, 2, ',', ' ') }} € {{ $order->created_at->format('d/m/Y H:i') }}
Aucune commande pour ce client.
@if ($orders->hasPages())
{{ $orders->links() }}
@endif
@endsection