Files
opensem/resources/views/Admin/Shop/Orders/edit.blade.php
Ludovic CANDELLIER 7df2421373 restart
2022-11-11 13:05:40 +01:00

55 lines
1.4 KiB
PHP

@extends('layout.index', [
'title' => 'Commandes',
'subtitle' => 'Edition d\'une commandes',
'breadcrumb' => ['Commandes']
])
@section('content')
{{ Form::open(['route' => 'Admin.Shop.Orders.update', 'id' => 'order-form', 'autocomplete' => 'off']) }}
<input type="hidden" name="id" value="{{ $order['id'] ?? null }}">
<x-card>
<h3>{{ $order['customer']['last_name'] }} {{ $order['customer']['first_name'] }}</h3>
<h4>{{ $order['delivery']['name'] }} </h4>
<div class="row">
<div class="col-12">
@if ($order['address'])
{{ $order['address']['address'] }}<br/>
@isset ($order['address']['address2']) {{ $order['address']['address2'] }}<br/> @endisset
{{ $order['address']['zipcode'] }} {{ $order['address']['city'] }}<br/>
@endif
</div>
</div>
<x-card title="Détail de la commande">
<div class="row">
<div class="col-12">
<table class="datatable w-100 table-bordered">
<thead>
<th>Quantité</th>
<th>Nom</th>
<th>Prix</th>
<th>Total</th>
</thead>
<tbody>
@foreach ($order['detail'] as $detail)
<tr>
<td>{{ $detail['quantity'] }}</td>
<td>{{ $detail['name'] }}</td>
<td>{{ $detail['price'] }}</td>
<td>{{ $detail['total'] }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</x-card>
</x-card>
</form>
@endsection