@extends('layouts.admin') @section('title', 'Klantprofiel: ' . $customerName . ' | Jouwdriedee Beheer') @section('content')
Terug naar Klantenoverzicht

{{ $customerName }}

@if($user) Geregistreerd account (#{{ $user->id }}) @else Gastkoper @endif

{{ $email }} @if($customerPhone) • {{ $customerPhone }} @endif

Communicatie Dossier {{ $communications->count() }} vragen / berichten
Bestellingen {{ $orders->count() }} orders
Totale Omzet € {{ number_format($totalSpent, 2, ',', '.') }}
@if($communications->isEmpty())

Geen communicatie gevonden

Deze klant heeft nog geen vragen gesteld via het contactformulier.

@else
@foreach($communications as $comm)
#{{ $comm->id }}

{{ $comm->subject }}

{{ $comm->status_label }} {{ $comm->created_at->format('d-m-Y H:i') }}
{{ $comm->message }}
@if($comm->order) Betreft: #{{ $comm->order->order_number }} • @endif {{ $comm->replies->count() }} antwoord(en) verzonden
Open Bericht & Beantwoord
@endforeach
@endif
@if($orders->isEmpty())

Nog geen bestellingen

Deze klant heeft nog geen geplaatste orders in het systeem.

@else
@foreach($orders as $order) @endforeach
Order # Datum Items Totaal Status Details
{{ $order->order_number }} {{ $order->created_at->format('d-m-Y H:i') }} {{ $order->items->count() }} prints {{ $order->formatted_total }} {{ $order->status_label }} Order bekijken
@endif
@endsection