‹ {{ __('customer_detail.back') }}

{{ $customer->name }}

{{ $customer->email }}

{{ __('customers.status.'.$customer->status) }}
{{-- ── Write to them ──────────────────────────────────────────── The point of the page. An operator answering a question used to have the name in one window and a mail client in another, and afterwards nothing in the console said an answer had ever been given. --}}

{{ __('customer_message.title') }}

@if ($answering) {{ __('customer_message.answering') }} @endif
@error('body')

{{ $message }}

@enderror
{{ __('customer_message.send') }}

{{ __('customer_message.note', ['email' => $customer->email]) }}

{{-- ── What they asked ──────────────────────────────────────── --}}

{{ __('customer_detail.requests') }}

@if ($requests->isEmpty())

{{ __('customer_detail.no_requests') }}

@else
    @foreach ($requests as $request)
  • {{ $request->subject }} {{ __('support.status.'.$request->status) }} {{ $request->created_at->local()->isoFormat('D. MMM YYYY, HH:mm') }}
    {{-- The customer's own words, whole. Reading the question was the other reason to leave the console. --}}

    {{ $request->body }}

    @if ($request->isOpen()) {{ __('customer_detail.answer') }} @endif
  • @endforeach
@endif
{{-- ── What we sent ───────────────────────────────────────────── The delivery register, filtered to this customer: when, which mail, and — where an operator wrote it — what it said. --}}

{{ __('customer_detail.mails') }}

{{ __('customer_detail.all_mails') }} ›
@if ($mails->isEmpty())

{{ __('customer_detail.no_mails') }}

@else
    @foreach ($mails as $mail)
  • {{ $mail->subject }} @if ($mail->from_operator) {{ __('customer_detail.by_hand') }} @endif {{ $mail->sent_at->local()->isoFormat('D. MMM YYYY, HH:mm') }}
    @if ($mail->body)

    {{ $mail->body }}

    @else

    {{ $mail->kind() }}

    @endif
  • @endforeach
@endif
{{-- ── Who they are ─────────────────────────────────────────────── --}}

{{ __('customer_detail.contract') }}

@foreach ([ __('customer_detail.plan') => $subscription ? __('billing.plan.'.$subscription->plan) : '—', __('customer_detail.instance') => $instance?->subdomain ?? '—', __('customer_detail.since') => $customer->created_at->local()->isoFormat('D. MMM YYYY'), __('customer_detail.vat_id') => $customer->vat_id ?: '—', ] as $term => $value)
{{ $term }}
{{ $value }}
@endforeach
{{-- Prefilled with this customer, so writing an invoice for the work just agreed is one click from the conversation about it. --}} {{ __('customer_detail.write_invoice') }}