[WIP] Working on orders & invoices
This commit is contained in:
@@ -1,29 +1,51 @@
|
||||
@extends('layout.index', [
|
||||
'title' => 'Famille d\'articles',
|
||||
'subtitle' => 'Edition d\'une famille d\'article',
|
||||
'breadcrumb' => ['Articles']
|
||||
'title' => 'Commandes',
|
||||
'subtitle' => 'Edition d\'une commandes',
|
||||
'breadcrumb' => ['Commandes']
|
||||
])
|
||||
|
||||
@include('boilerplate::load.fileinput')
|
||||
|
||||
@section('content')
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.ArticleFamilies.update', 'id' => 'article-family-form', 'autocomplete' => 'off', 'files' => true]) }}
|
||||
|
||||
{{ Form::open(['route' => 'Admin.Shop.Orders.update', 'id' => 'order-form', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="id" value="{{ $id }}">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-sm-12 mbl">
|
||||
<a href="{{ route("Admin.Shop.ArticleFamilies.index") }}" class="btn btn-default">
|
||||
{{ __('article_families.list.title') }}
|
||||
</a>
|
||||
|
||||
<span class="btn-group pull-right">
|
||||
@include('components.form.buttons.button-save')
|
||||
</span>
|
||||
<div class="col-12">
|
||||
{{ $order['last_name'] }} {{ $order['first_name'] }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="id" value="{{ $id }}">
|
||||
@include('Admin.Shop.ArticleFamilies.form')
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ $order['delivery']['name'] }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
{{ $order['address'] }}<br/>
|
||||
{{ $order['address2'] }}<br/>
|
||||
{{ $order['zipcode'] }} {{ $order['city'] }}<br/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<x-card title="Détail de a commande">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<table class="datatable">
|
||||
@foreach ($order['details'] as $detail)
|
||||
<tr>
|
||||
<td>{{ $detail['quantity'] }}</td>
|
||||
<td>{{ $detail['name'] }}</td>
|
||||
<td>{{ $detail['price'] }}</td>
|
||||
<td>{{ $detail['total'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</x-card>
|
||||
|
||||
</form>
|
||||
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
<form id="{{ $model }}-filters">
|
||||
<input type="hidden" name="tariff_id" value="{{ $tariff['id'] ?? false }}">
|
||||
</form>
|
||||
Reference in New Issue
Block a user