@extends('layout.index', [ 'title' => 'Factures', 'subtitle' => 'Edition d\'une facture', 'breadcrumb' => ['Articles'] ]) @include('boilerplate::load.fileinput') @section('content') {{ Form::open(['route' => 'Admin.Shop.Invoices.update', 'id' => 'invoice-form', 'autocomplete' => 'off']) }}

@include('components.form.buttons.button-save')

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

@if ($invoice['order']['address']) {{ $invoice['order']['address']['address'] }}
@isset ($invoice['order']['address']['address2']) {{ $invoice['order']['address']['address2'] }}
@endisset {{ $invoice['order']['address']['zipcode'] }} {{ $invoice['order']['address']['city'] }}
@endif
Facture N° {{ $invoice['ref'] }}
du {{ Carbon\Carbon::parse($invoice['created_at'])->isoFormat('LLLL') }}
@include('components.form.select', [ 'label' => 'Statut', 'name' => 'status', 'list' => $statuses ?? [], 'value' => $invoice['status'], 'class' => 'select2', ])
@include('components.form.select', [ 'label' => 'Règlement', 'name' => 'payment_type', 'list' => $payment_types ?? [], 'value' => $invoice['order']['payment_type'], 'class' => 'select2', 'disabled' => false, ])
@include('Admin.Shop.Orders.partials.detail', ['detail_type' => 'facture', 'order' => $invoice['order']])
@endsection