@section('content') @if ( $errors->count() > 0 )

Attenzione

@endif {{ Form::open(array('url' => '/area-riservata/changeCoupDisplay', 'method' => 'POST', 'role' => 'form', 'id'=>'modifyShowForm', 'class' => 'form-horizontal'))}} {{ Form::hidden('camp', $camp)}}
{{ Form::radio('showcoupon', 'all', ($showcoupon=='all')?true:false, array('id' => 'scall') )}} {{ Form::label('scall', 'Mostra tutti i coupon') }} {{ Form::radio('showcoupon', 'scou', ($showcoupon=='scou')?true:false, array('id' => 'scou') )}} {{ Form::label('scou', 'Mostra solo i coupon usati') }} {{ Form::radio('showcoupon', 'scon', ($showcoupon=='scon')?true:false, array('id' => 'scon') )}} {{ Form::label('scon', 'Mostra solo i coupon non ancora utilizzati') }}
{{ Form::close() }} @if (count($couponErogati) == 0 && Input::old('showcoupon') == 'scou')

Nessun coupon utilizzato.

@elseif (count($couponErogati) == 0 && Input::old('showcoupon') == 'scon')

Hai usato tutti i coupon che hai scaricato.

@elseif (count($couponErogati) == 0)

Ad oggi, non hai scaricato alcun coupon. La cronologia è vuota.

@endif @if (count($couponErogati) != 0) @foreach($couponErogati as $coupon)
@if($coupon->TCOUPCUDataUtilizzo != NULL)

Usato!

@endif
{{ $coupon->TCOUPCTitolo }}
{{ $coupon->TCOUPCDescrizione}}
Emesso il {{ date('d/m/Y \a\l\l\e H:i:s', strtotime($coupon->TCOUPCUDataErogazione)) }}
@if($coupon->TCOUPCUDataUtilizzo != NULL) @endif @if (($osFamily == "iOS" || $osFamily == "AndroidOS")) TCOUPCUDataUtilizzo == NULL) href="https://docs.google.com/gview?embedded=true&url={{ urlencode("http://couponing.ideasfera.it/redownload-coupon/".Crypt::encrypt($coupon->TCOUPCUCodiceCoupon)."/".$camp) }}" @endif class="btn btn-primary visible-xs">Scarica TCOUPCUDataUtilizzo == NULL) href="https://docs.google.com/gview?embedded=true&url={{ urlencode("http://couponing.ideasfera.it/redownload-coupon/".Crypt::encrypt($coupon->TCOUPCUCodiceCoupon)."/".$camp) }}" @endif class="btn btn-primary hidden-xs"> @else TCOUPCUDataUtilizzo == NULL) href="/redownload-coupon/{{ Crypt::encrypt($coupon->TCOUPCUCodiceCoupon) }}/{{ $camp }}" @endif class="btn btn-primary visible-xs">Scarica TCOUPCUDataUtilizzo == NULL) href="/redownload-coupon/{{ Crypt::encrypt($coupon->TCOUPCUCodiceCoupon) }}/{{ $camp }}" @endif class="btn btn-primary hidden-xs"> @endif @if($coupon->TCOUPCUDataUtilizzo != NULL) @endif @if($coupon->TCOUPCUDataUtilizzo != NULL) @endif TCOUPCUDataUtilizzo == NULL) href="/emailThisCouponId/{{ Crypt::encrypt($coupon->TCOUPCUCodiceCoupon) }}" @endif class="btn btn-primary visible-xs">Invia alla tua e-mail TCOUPCUDataUtilizzo == NULL) href="/emailThisCouponId/{{ Crypt::encrypt($coupon->TCOUPCUCodiceCoupon) }}" @endif class="btn btn-primary hidden-xs"> @if($coupon->TCOUPCUDataUtilizzo != NULL) @endif
@endforeach {{ $couponErogati->appends(array('choice' => $showcoupon))->links() }} @else

Nessun coupon scaricato.

@endif @stop