@extends('Layouts/dashboard') @section('submenu') @endsection @section('content')

@t('Membership Program')

{!! Form::open([ 'data-toggle' => 'validator', 'class' => 'event-form' ]) !!} {!! Form::token() !!} {!! page_content('membership-description') !!}
{!! Form::checkbox( 'data[Membership][membership]', 1, ( isset($data->Membership->membership) && $data->Membership->membership ? true : false ), [ 'required', ( isset($data->Membership->membership) && $data->Membership->membership ? 'disabled' : null ) ] ) !!}
@php $weekdays = [ 1 => t('Monday'), 2 => t('Tuesday'), 3 => t('Wednesday'), 4 => t('Thursday'), 5 => t('Friday'), 6 => t('Saturday'), 7 => t('Sunday') ]; @endphp
Membership->membership) || !$data->Membership->membership) style="display: none;" @endif >

@t('Promotion Times')

@foreach ($weekdays as $key => $weekday)
Membership->membership) && $data->Membership->membership ) data-slider-enabled="false" @endif />
@endforeach

@t('Select drinks for members')

@foreach ($drinks as $drink)
{!! Form::checkbox( 'data[Membership][VenuesDrink][]', $drink->id, ( isset($data->Membership->VenuesDrink) && in_array($drink->id, $data->Membership->VenuesDrink) === true ? true : false ), [ 'class' => '', 'id' => 'drink-' . $drink->id, 'disabled' => ( isset($data->Membership->membership) && $data->Membership->membership ? true : false ) ] ) !!}
@endforeach
@if (!isset($data->Membership->membership) || !$data->Membership->membership)
{!! Form::submit( t('Apply'), ['class' => 'btn btn-pink btn-wider'] ) !!}
@endif
{!! Form::close() !!}
@if (is_admin() && isset($data->Membership->membership) && $data->Membership->membership)

@t('Cancel membership')
@endif @endsection