new: add channel management
This commit is contained in:
@@ -48,6 +48,37 @@
|
||||
|
||||
</div>
|
||||
<div class="col-lg-3 col-xs-12">
|
||||
@if (config('app.debug') && ($article['current_sale_channel'] ?? false))
|
||||
<div class="alert alert-info p-2 mb-3">
|
||||
<strong>Canal actif :</strong>
|
||||
{{ $article['current_sale_channel']['name'] ?? 'N/A' }}
|
||||
<span class="d-block small text-muted">
|
||||
ID {{ $article['current_sale_channel']['id'] ?? '–' }} · Code {{ $article['current_sale_channel']['code'] ?? '–' }}
|
||||
</span>
|
||||
@if (!empty($article['available_sale_channels']))
|
||||
<hr class="my-2">
|
||||
<strong class="d-block">Offres disponibles dans :</strong>
|
||||
<ul class="list-unstyled mb-0 small">
|
||||
@foreach ($article['available_sale_channels'] as $channel)
|
||||
<li class="d-flex justify-content-between align-items-start">
|
||||
<span>
|
||||
• {{ $channel['name'] }}
|
||||
<span class="d-block text-muted" style="font-size: 0.85em; padding-left: 0.9em;">code {{ $channel['code'] }}</span>
|
||||
</span>
|
||||
@if (isset($channel['price_taxed']))
|
||||
<span class="ml-2 text-nowrap text-right">
|
||||
{{ number_format($channel['price_taxed'], 2, ',', ' ') }} € TTC
|
||||
@if (! empty($channel['quantity']))
|
||||
<span class="d-block text-muted" style="font-size: 0.85em;">Qté min. {{ $channel['quantity'] }}</span>
|
||||
@endif
|
||||
</span>
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
@include('Shop.Articles.partials.ArticleAddBasket')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user