Fix on preview mode
This commit is contained in:
54
resources/views/Admin/Shop/Offers/partials/article.blade.php
Normal file
54
resources/views/Admin/Shop/Offers/partials/article.blade.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-4">
|
||||
{{ Form::label('ref', 'Référence') }}<br>
|
||||
{{ $article['ref'] ?? null }}
|
||||
</div>
|
||||
<div class="col-8">
|
||||
{{ Form::label('name', 'Nom') }}<br>
|
||||
{{ $article['name'] ?? null }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('categories', __('Shop.shelves.title')) }}<br>
|
||||
@foreach (($article['categories'] ?? null) as $category)
|
||||
{{ $category }}
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('tags', 'Tags') }}<br>
|
||||
@foreach (($article['tags'] ?? null) as $tag)
|
||||
{{ $tag }}
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
@include('Admin.Shop.Articles.partials.product.description')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
{{ Form::label('description', 'Description') }}
|
||||
{{ $article['description'] ?? null }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-3">
|
||||
<div class="col-12">
|
||||
@include('Admin.Core.Comments.partials.comments', ['model' => 'Shop.Article', 'model_id' => $article['id'] ?? false, 'comments' => $article['comments'], 'with_add' => false])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
34
resources/views/Admin/Shop/Offers/partials/tariff.blade.php
Normal file
34
resources/views/Admin/Shop/Offers/partials/tariff.blade.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
{{ $tariff['ref'] ?? null }}
|
||||
</div>
|
||||
<div class="col-8">
|
||||
{{ $tariff['name'] ?? null }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@foreach (($tariff['price_lists'] ?? []) as $price_list)
|
||||
{{ $price_list['sale_channel']['name'] }}
|
||||
{{ $price_list['name'] }}
|
||||
@if ($price_list['price_list_values'] ?? false)
|
||||
<table class="table table-bordered table-hover table-striped w-100">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Seuil</th>
|
||||
<th>Prix</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@foreach (($price_list['price_list_values'] ?? []) as $price_value)
|
||||
<tr>
|
||||
<td>{{ $price_value['quantity'] }}</td>
|
||||
<td class="text-right">{{ $price_value['price'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
@endif
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
|
||||
{{ $variation['name'] }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user