{{ __('customer.Customer') }}: {{ $customer->name }}

{{ __('customer.Existing addresses') }}

@if($customer->address)
{{ __('customer.Invoice Address') }}
{{ $customer->address->name }}
{{ $customer->address->address }}
{{ $customer->address->zip }} {{ $customer->address->city }}
{{ $customer->address->phone }}
{{ $customer->address->email }}
@endif @if($customer->delivery)
{{ __('customer.Delivery Address') }}
{{ $customer->delivery->name }}
{{ $customer->delivery->address }}
{{ $customer->delivery->zip }} {{ $customer->delivery->city }}
{{ $customer->delivery->phone }}
{{ $customer->delivery->email }}
@endif

{{ __('invoice.Invoices') }}

{{ __('invoice.Invoice Number') }}
{{ __('common.Name') }}
{{ __('invoice.State') }}
{{ __('invoice.Sum') }}
{{ __('common.Created at') }}
@php $sum = 0; @endphp @foreach($customer->invoices as $invoice) @php($sum += $invoice->sum)
{{ $invoice->number }}
{{ $invoice->address->name }}
{{ $invoice->localized_state }}
{{ \Illuminate\Support\Number::currency($invoice->sum) }}
{{ $invoice->created }}
@endforeach
{{ __('invoice.Sum') }}
{{ \Illuminate\Support\Number::currency($sum) }}