{{ __('Day Of the Week') }}

@for ($i=1; $i <= 7; $i++) @endfor

{{ __('Date Range') }}

{!! Form::label('data[start_date]', t('From')) !!} {!! Form::text( 'data[start_date]', (isset($data) && $data ? (new DateTime($data->start))->format('Y-m-d') : null), [ 'data-error' => t('This field is required'), 'class' => 'form-control datepicker required', 'required' ] ) !!}
{!! Form::label('data[end_date]', t('Until')) !!} {!! Form::text( 'data[end_date]', (isset($data) && $data ? (new DateTime($data->end))->format('Y-m-d') : null), [ 'data-error' => t('This field is required'), 'class' => 'form-control datepicker required', 'required' ] ) !!}
{!! Form::label('data[start_time]', t('Start Time')) !!} {!! Form::select( 'data[start_time]', array_merge( ['' => t('Start time')], times([ 'step' => 5, 'start' => (isset($settings->content->default_start) ? $settings->content->default_start : null), 'end' => (isset($settings->content->default_end) ? $settings->content->default_end : null), ]) ), (isset($data) && $data ? (new DateTime($data->start))->format('H:i:s') : null), [ 'data-error' => t('This field is required'), 'class' => 'form-control required', 'required' ] ) !!}
{!! Form::label('data[end_time]', t('End Time')) !!} {!! Form::select( 'data[end_time]', array_merge( ['' => t('End time')], times([ 'step' => 5, 'start' => (isset($settings->content->default_start) ? $settings->content->default_start : null), 'end' => (isset($settings->content->default_end) ? $settings->content->default_end : null), ]) ), (isset($data) && $data ? (new DateTime($data->end))->format('H:i:s') : null), [ 'data-error' => t('This field is required'), 'class' => 'form-control required', 'required' ] ) !!}
{!! Form::label('data[name]', t('Label')) !!} {!! Form::text( 'data[name]', (isset($data) && $data ? $data->name : null), [ 'data-error' => t('This field is required'), 'class' => 'form-control', ] ) !!}
@include('Plugins/Payment/Views/Elements/LinesOrder/resources', ['selected' => (isset($data->resources) && $data->resources ? $data->resources : [])]) @if (isset($settings->content->pin_code) && $settings->content->pin_code)
{!! Form::password( 'data[pin_code]', null, [ 'class' => 'form-control text-center pincode', 'placeholder' => __('PIN CODE'), ] ) !!}
@endif