{{ Form::open(['route' => 'Admin.Shop.Invoices.update', 'id' => 'invoice-form', 'autocomplete' => 'off']) }}
Facture N° {{ $invoice['ref'] }} du {{ Carbon\Carbon::parse($invoice['created_at'])->isoFormat('LLLL') }}
@include('components.form.buttons.button-save')

{{ $invoice['order']['customer']['last_name'] }} {{ $invoice['order']['customer']['first_name'] }}

@if ($invoice['order']['delivery_address']) {{ $invoice['order']['delivery_address']['address'] }}
@isset($invoice['order']['delivery_address']['address2']) {{ $invoice['order']['delivery_address']['address2'] }}
@endisset {{ $invoice['order']['delivery_address']['zipcode'] }} {{ $invoice['order']['delivery_address']['city'] }}
@endif
@include('components.form.select', [ 'label' => 'Statut', 'name' => 'status', 'list' => $statuses ?? [], 'value' => $invoice['status'], 'class' => 'select2', ])
@include('Admin.Shop.Invoices.partials.payments', [ 'payments' => $invoice['payments'] ?? false, ])
@include('Admin.Shop.Orders.partials.detail', [ 'detail_type' => 'facture', 'order' => $invoice['order'] ?? null, ])
@include('load.layout.modal')