@extends('Layouts/dashboard') @section('submenu') @include( 'Plugins/Payment/Views/Elements/Line/submenu' ) @endsection @section('content') {!! Form::open() !!}
{!! Form::label('data[Zone][name]', __('Name')) !!} {!! Form::text( 'data[Zone][name]', (isset($data->name) ? $data->name : null) ) !!}
{!! Form::label('data[Zone][type]', __('Zone Type')) !!} {!! Form::select( 'data[Zone][type]', [ 'Venue' => __('Venue'), 'Bowling' => __('Bowling') ], (isset($data->type) ? $data->type : null), ['empty' => true] ) !!}
{!! Form::label('data[Zone][ordering]', __('Ordering')) !!} {!! Form::number( 'data[Zone][ordering]', (isset($data->ordering) ? $data->ordering : null), ['step' => '1'] ) !!}
{!! Form::label('data[Zone][zone_capacity]', __('Average Resource Capacity')) !!} {!! Form::number( 'data[Zone][zone_capacity]', (isset($data->zone_capacity) ? $data->zone_capacity : null), ['step' => '1'] ) !!}
{!! Form::label('data[Zone][zone_duration]', __('Average Slot Duration')) !!} {!! Form::number( 'data[Zone][zone_duration]', (isset($data->zone_duration) ? $data->zone_duration : null), ['step' => '1'] ) !!}
{!! Form::label('data[Zone][zone_service_time]', __('Zone Service Time')) !!} {!! Form::number( 'data[Zone][zone_service_time]', (isset($data->zone_service_time) ? $data->zone_service_time : null), ['step' => '1'] ) !!}
{!! Form::label('data[Zone][description]', __('Description')) !!} {!! Form::textarea( 'data[Zone][description]', (isset($data->description) ? $data->description : null), ['class' => 'autogrow form-control'] ) !!}
@include('Plugins/Payment/Views/Elements/Settings/times', [ 'start_name' => 'data[Zone][times][]', 'start_value' => (isset($data->times) ? $data->times : []), 'show' => true ] )
{!! Form::checkbox( 'data[Zone][enable_weekly_times]', 1, (isset($data->weekly_times) && $data->weekly_times ? true : false) ) !!} {!! Form::label( 'data[Zone][enable_weekly_times]', __('Use Weekend Times') ) !!}
@for ($i = 1; $i <= 7; $i++)

{{ weekday($i) }}

@include('Plugins/Payment/Views/Elements/Settings/times', [ 'start_name' => 'data[Zone][weekly_times][' . $i . '][]', 'start_value' => (isset($data->weekly_times->{$i}) ? $data->weekly_times->{$i} : []), 'show' => true ] )
@endfor
{{--
{!! Form::label('data[Zone][Photo]', t('Zone\'s Image')) !!}
{!! Form::file( 'data[Zone][Photo]', [ 'class'=>'btn btn-default image-uploader background', 'data-button'=>__('Upload an image'), 'value' => (isset($data->Photo) ? oa($data->Photo) : null) ] ) !!}
--}} {!! Form::close() !!} @endsection