64 lines
No EOL
2.6 KiB
PHP
64 lines
No EOL
2.6 KiB
PHP
@section('widget')
|
|
<div class="widget">
|
|
<div class="link-copied">
|
|
<i class="fas fa-copy"></i> Lien copié !
|
|
</div>
|
|
<p>URL publique : <span class="copy-url">{{ $campagne->url }}</span></p>
|
|
<div class="widgetContent">
|
|
@foreach ($coupons as $coupon)
|
|
<div class="coupon">
|
|
<p><i class="fas fa-chevron-right"></i>{{$coupon->coupon_code}} - {{$coupon->coupon_name}} :</p> <p>{{$coupon->qty}} coupon(s) actuellement</p><p>Ajouter <input type="text" data-couponcode="{{ $coupon->coupon_code }}" value="0"> Coupon(s)</p>
|
|
</div>
|
|
@endforeach
|
|
<input type="submit" class="update-basket" data-panier="{{ $panier }}" value="Valider">
|
|
</div>
|
|
@if (isset($logs) && !empty($logs))
|
|
<div>
|
|
<h4><i class="fas fa-file-alt"></i> Logs :</h4>
|
|
<div class="logs-wrapper">
|
|
<table class="logs">
|
|
<thead>
|
|
<th>Date</th>
|
|
<th>Action</th>
|
|
<th>Message</th>
|
|
<th>Source</th>
|
|
</thead>
|
|
@foreach ($logs as $log)
|
|
<tr>
|
|
<td>{{ date('d/m/Y H:i:s' , strtotime($log->created_at)) }}</td>
|
|
<td>
|
|
@switch($log->log_action)
|
|
@case(1)
|
|
Mise à jour de panier
|
|
@break
|
|
@case(2)
|
|
Remise à zéro du mur
|
|
@break
|
|
@case(3)
|
|
Impressions
|
|
@break
|
|
@endswitch
|
|
</td>
|
|
<td>
|
|
@if ($log->log_action == 3 || $log->log_action == 1)
|
|
{{ $log->log_message['Message'] }}
|
|
<ul>
|
|
@foreach ($log->log_message['Coupons'] as $coupons)
|
|
<li>{{ $coupons['qty'] }} bon(s), code {{ $coupons['cp_code'] }}</li>
|
|
@endforeach
|
|
</ul>
|
|
@else
|
|
{{ $log->log_message }}
|
|
@endif
|
|
</td>
|
|
<td>
|
|
{{ $log->log_source }}
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</table>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
@endsection |