@extends('layouts.main') @section('content')

Editer la campagne

{!! Form::model($campagne, ['route' => ['campagne.update', $campagne]]) !!} @method('PUT')
{!! Form::label('camp_name', 'Nom') !!} {!! Form::input('text', 'camp_name', null, ['required']) !!}
{!! Form::label('camp_type', 'Type') !!} {!! Form::select('camp_type', ['Mur', 'Panier', 'Mur sans sélection', 'Panier Sélectionnable']) !!}
{!! Form::label('camp_published', 'Publier') !!} {!! Form::select('camp_published', ['Non', 'Oui']) !!}
{!! Form::label('camp_limitedPrinting', 'Limiter les impressions à 1 BR à la fois') !!} {!! Form::checkbox('camp_limitedPrinting', 1, ($campagne->camp_limitedPrinting ==1?true:null), array('id'=>'camp_limitedPrinting')) !!} {!! Form::label('camp_limitedPrinting', '') !!}
{!! Form::submit('Mettre à jour') !!}
{!! Form::close() !!}

Coupons de la campagne

@foreach($couponsLinked as $coupon) @endforeach
Code Nom
{{ $coupon->coupon_code }} {{ $coupon->coupon_name }} camp_id}} data-couponid={{$coupon->coupon_id}}>
@if(count($couponsLinked) == 0)

Pas de coupons liés

@endif

Notifications par mail

{!! Form::open(['action' => 'CampagneController@saveNotification']) !!}
{!! Form::label('notif_name', 'Nom') !!} {!! Form::input('text', 'notif_name', null, ['required']) !!} {{ Form::hidden('notif_campId', $campagne->camp_id) }}
{!! Form::label('notif_email', 'Email') !!} {!! Form::input('text', 'notif_email', null, ['required']) !!}
{!! Form::submit('Ajouter') !!}
{!! Form::close() !!}
@foreach($campagne->notifications as $n) @endforeach
{{__('No') }} {{__('Nom') }} {{__('Email') }}
{{ $n->notif_id }} {{ $n->notif_name }} {{ $n->notif_email }}
{!! Form::open(['id' => 'delete-hidden']) !!} @method('DELETE') {!! Form::close() !!} @endsection