@extends('layouts.app') @section('content')
Voltar Ver Cupons
@if($store->picture) {{ $store->picture }} @else {{ $store->store->store_name }} @endif
@if(Auth::check()) @if(Auth::user()->isAdmin()) @endif @endif

{{ $store->store->store_name }}

{!! $store->store->about !!}

Compartilhe esses cupons!

@if($store->address)

{{ $store->address->address }}, {{ $store->address->number }} - {{ $store->address->city->name }}, {{ $store->address->state->abbr }}

@endif

{{ $store->email }}

{{ $store->getInformation(1) }}

{{ $store->getInformation(2) }}

{{ $store->getInformation(5) }}

@if(!$store->hasCoupon())

Essa loja não possui cupons

@endif
@foreach($store->couponsActive->reverse() as $key => $coupon)
@if ($coupon->picture) @else @endif

{{ $coupon->name }}

{!! $coupon->description !!}

@if(Auth::check()) @if(Auth::user()->isAdmin()) Editar Cupom @elseif(Auth::user()->isClient() && !$coupon->couponCodesHasReedem(Auth::user()->id)) @else

Parabéns! Você já resgatou esse cupom

@endif @else Resgatar Cupom @endif
@endforeach
@endsection