@if ($data->end_date) @if (isset($data->days) && $data->days > 0) @t('Start') @if (isset($edit) && $edit) {!! Form::text( 'data[Order][date]', (isset($data->Order->date) ? $data->Order->date : null), [ 'class' => 'form-control datepicker' ] ) !!} @else @if ($data->date) @date($data->date) @else @t('N/A') @endif @endif @if (isset($edit) && $edit) @t('End') {!! Form::text( 'data[Order][end_date]', (isset($data->Order->end_date) ? $data->Order->end_date : null), [ 'class' => 'form-control datepicker' ] ) !!} @else @if (!isset($settings->content->hide_order_times) || !$settings->content->hide_order_times) @t('End') @if ($data->checkout_date) @date($data->checkout_date) @else @t('N/A') @endif @endif @endif @else @t('Date') @if (isset($edit) && $edit) {!! Form::text( 'data[Order][date]', (isset($data->Order->date) ? $data->Order->date : null), [ 'id' => 'edit-date', 'class' => 'form-control datepicker edit-date', 'data-url' => action( 'Payment/EventsController@secure_index.json', [$venue->id, 'query' => ['stats' => 1]] ) ] ) !!} @else @if ($data->date) @date($data->date) @else @t('N/A') @endif @endif @if ($data->end_date) @t('Time') @if (isset($edit) && $edit)
{!! Form::select( 'data[Order][start_time]', array_merge( ['' => ''], array_combine(times(['step' => 5]), times(['step' => 5])) /*( $settings->times ? array_combine($settings->times, $settings->times) : array_combine(times(['step' => 5]), times(['step' => 5])) )*/ ), (isset($data->Order->start_time) ? $data->Order->start_time : null), [ 'class' => 'form-control ' . ( isset($settings->content->pos_manual_bookings) && $settings->content->pos_manual_bookings ? 'use-time' : '' ), 'times' ] ) !!}
@if ( !isset($settings->content->pos_manual_bookings) || !$settings->content->pos_manual_bookings )
{!! Form::select( 'data[Order][end_time]', array_merge( ['' => ''], array_combine(times(['step' => 5]), times(['step' => 5])) /*( $settings->end_times ? array_combine($settings->end_times, $settings->end_times) : array_combine(times(['step' => 5]), times(['step' => 5])) )*/ ), (isset($data->Order->end_time) ? $data->Order->end_time : null), [ 'class' => 'form-control', 'times' ] ) !!}
@endif
@else @time($data->start_time) - @time($data->end_time) @endif @endif @endif @else @t('Date') @if (isset($edit) && $edit) {!! Form::text( 'data[Order][date]', (isset($data->Order->date) ? $data->Order->date : null), [ 'id' => 'edit-date', 'class' => 'form-control datepicker edit-date', 'data-url' => action( 'Payment/EventsController@secure_index.json', [$venue->id] ) ] ) !!} @else @if ($data->date) @date($data->date) @else @t('N/A') @endif @endif @endif