@extends('layouts.main') @section('content') @if ($errors->any())
@endif

{{ __('Editer le Coupon')}}

@csrf @method('PUT')
coupon_norme === 1 ? 'checked' : null) }}>
coupon_enablelimitquantity === 1 ? 'checked' : null) }}>
coupon_enablelimitperiod === 1 ? 'checked' : null) }}>
{{ __('coupons') }}
{{ __('jours') }}

{{ __('Validité') }}

{{ __('jours') }}

{{ __('Calendrier de diffusion') }}

@foreach ($coupon->calendriers()->get() as $calendrier)
@endforeach

{{ __('Mouvements') }}

@foreach ($coupon->mouvements()->get() as $mouvement) @endforeach
{{ __('Date') }} {{ __('Quantité') }}
{{ $mouvement->mouvement_created_at->format('d/m/Y') }} {{ $mouvement->mouvement_nombre }}

{{ __('Vignettes') }}

@if($coupon->coupon_thumbnail1 != "")
{{ $coupon->coupon_name }}
@endif
@if($coupon->coupon_thumbnail2 != "")
{{ $coupon->coupon_name }}
@endif
@if($coupon->coupon_thumbnail3 != "")
{{ $coupon->coupon_name }}
@endif
@if($coupon->coupon_thumbnail4 != "")
{{ $coupon->coupon_name }}
@endif

{{ __('Informations pour génération') }}

coupon_legal_mentions_splitted === 1 ? 'checked' : null) }}>
{{ __('280x260px ou 280x160px si GS1') }} {{ __('Formats : JPG ou PNG') }}
@if($coupon->coupon_decoration_image != "")
{{ $coupon->coupon_name }}
@endif
{{ __('135x70px') }} {{ __('Formats : JPG ou PNG') }}
@if($coupon->coupon_logo_image != "")
{{ $coupon->coupon_name }}
@endif
{{ __('Formats : JPG') }}
@if($coupon->coupon_gs1code != "")
{{ $coupon->coupon_name }}
@endif
coupon_published === 1 ? 'checked' : null) }}>

{{ __('Bon généré') }} :

@if($coupon->coupon_image != "")
{{ $coupon->coupon_name }}
@endif
@endsection