@extends('Layouts/dashboard') @section('submenu') {{-- TODO Add something here --}} @endsection @section('content') @if (isset($enquiry) && $enquiry)

{{ __('Enquiry') }}

@include('Plugins/Payment/Views/Elements/Booking/details', ['data' => $enquiry]) @endif
Change Date @if (isset($event) && $event) @if ($event->name)

@t('Event: %s', $event->name)

@long_date($event->date)

@else

@date($event->date)

@if ($event->start_time)

@time($event->start_time) @if ($event->end_time) - @time($event->end_time) @endif

@endif @endif @else

@date($date) @if ($end_date) - @date($end_date) @endif

@if ($start_time)

@time($start_time) @if ($end_time) - @time($end_time) @endif

@endif @endif

{!! Form::open([ 'data-toggle' => 'validator', 'id' => 'order-add-form' ]) !!}

@t('Order details')

@include ('Plugins/Payment/Views/Elements/Order/buyer')
@include('Plugins/Payment/Views/Elements/Order/payment')
{!! Form::label( 'data[Order][staff_id]', t('Staff Member') ) !!} @if ( isset($settings->content->pos_manual_bookings) && $settings->content->pos_manual_bookings ) {!! Form::select( 'data[Order][staff_id]', $admins, User::getLoggedUserId(), ['required', 'empty' => true] ) !!} @endif
{!! Form::label( 'data[Order][reason]', t('Reason') ) !!} @if ( isset($settings->content->pos_manual_bookings) && $settings->content->pos_manual_bookings ) {!! Form::select( 'data[Order][reason]', (isset($order_reasons) ? $order_reasons : []), null, ['required'] ) !!} @endif
@include('Plugins/Payment/Views/Elements/Event/CustomFields/populate')
@include('Plugins/Payment/Views/Elements/Order/people') @include('Plugins/Payment/Views/Elements/Order/products') @include('Plugins/Payment/Views/Elements/Order/total') @include('Plugins/Payment/Views/Elements/Order/CustomFields/edit', ['data' => []])
@if (isset($settings->content->pin_code) && $settings->content->pin_code) @endif
@if (isset($settings->content->allow_pdf_preview) && $settings->content->allow_pdf_preview) @endif
{!! Form::close() !!}
@if (isset($events) && $events) @include( 'Elements/Common/modal', [ 'id' => 'select-event', 'title' => t('Select Event'), 'dismissable' => false, 'content' => Form::select( 'event_id', oa($events), null, ['empty' => true] ), ] ) @endif @include( 'Elements/Common/modal', [ 'title' => t('Change Date'), 'form' => [ 'action' => action('Payment/OrdersController@secure_add', [$venue->id]), 'method' => 'get', 'id' => 'add-form' ], 'content' => view( 'Plugins/Payment/Views/Elements/Order/modal_form', [ 'venue' => $venue, 'currencies' => $currencies, 'settings' => $settings, 'times' => ( isset($settings->times) && $settings->times ? $settings->times : times(['step' => 5]) ), 'end_times' => ( isset($settings->end_times) && $settings->end_times ? $settings->end_times : times(['step' => 5]) ), 'banner' => __('Warning: The page will refresh and all changes would be lost'), 'data' => [ 'currency_id' => $currency->id, 'type' => $type, 'date' => $date, 'end_date' => $end_date, 'start_time' => $start_time, 'end_time' => $end_time ] ] ), 'footer' => view( 'Plugins/Payment/Views/Elements/Order/modal_footer', [ 'settings' => $settings ] ) ] ) @endsection