@extends('backend.layouts.app') @section('page-title', trans('app.wheelfortune')) @section('page-heading', trans('app.wheelfortune')) @section('content')
@include('backend.partials.messages')
{!! Form::open(['route' => 'backend.wheelfortune.update']) !!}

{{ trans('app.wheelfortune') }}

@permission('wheelfortune.manage') @if( auth()->user()->shop ) @if( auth()->user()->shop->wheelfortune_active ) @lang('app.disable') @else @lang('app.active') @endif @endif @endpermission
@php $wh1 = array_combine(\VanguardLTE\WheelFortune::$values['wh1'], \VanguardLTE\WheelFortune::$values['wh1']); $wh2 = array_combine(\VanguardLTE\WheelFortune::$values['wh2'], \VanguardLTE\WheelFortune::$values['wh2']); @endphp
@for($i=1; $i<=7; $i++)
{!! Form::select('wh1_'.$i, \VanguardLTE\WheelFortune::$values['wh1'], $wheelfortune->{'wh1_'.$i}, ['class' => 'form-control']) !!}
@endfor

@for($i=1; $i<=8; $i++)
{!! Form::select('wh2_'.$i, \VanguardLTE\WheelFortune::$values['wh1'], $wheelfortune->{'wh2_'.$i} , ['class' => 'form-control']) !!}
@endfor

@for($i=1; $i<=16; $i++)
{!! Form::select('wh3_'.$i, \VanguardLTE\WheelFortune::$values['wh2'], $wheelfortune->{'wh3_'.$i}, ['class' => 'form-control']) !!}
@endfor

{!! Form::select('wager', \VanguardLTE\WheelFortune::$values['wager'], $wheelfortune->wager, ['class' => 'form-control']) !!}
{!! Form::select('status', [__('app.disabled'), __('app.active')], $wheelfortune->status, ['class' => 'form-control', 'id' => 'status']) !!}
{!! Form::close() !!}
@stop