@extends('Shop.layout.print')

@section('content')

	<div class="row mb-3">
		<div class="col-6">	
			<h3>{{ $invoice['order']['customer']['last_name'] }} {{ $invoice['order']['customer']['first_name'] }}</h3>
			<div class="row">
				<div class="col-12">
					<h6>
						@if ($invoice['order']['address'])
							{{ $invoice['order']['address']['address'] }}<br/>
							@isset ($invoice['order']['address']['address2'])
								{{ $invoice['order']['address']['address2'] }}<br/>
							@endisset
							{{ $invoice['order']['address']['zipcode'] }} {{ $invoice['order']['address']['city'] }}<br/>
						@endif
					</h6>
				</div>
			</div>
		</div>
		<div class="col-6">
			<div class="row mb-3">
				<div class="col-6" style="font-size: 1.2em; font-weight: 500;">
					Facture N° {{ $invoice['ref'] }}<br/>
						du {{ Carbon\Carbon::parse($invoice['created_at'])->isoFormat('LLLL') }}
				</div>
				<div class="col-6">
						
				</div>
			</div>
		</div>
	</div>

	<div class="row mb-3">
		<div class="col-12">
			@include('Admin.Shop.Orders.partials.detail', ['detail_type' => 'facture', 'order' => $invoice['order']])
		</div>
	</div>
@endsection