@extends('Layouts/dashboard')
@section('scripts')
@endsection
@section('submenu')
{{-- TODO Add something here --}}
@endsection
@section('content')
@if (isset($event) && $event)
@if ($event->name)
@t('Event: %s', $event->name)
@else
@date($event->date)
@endif
@endif
{!! Form::open([
'data-toggle' => 'validator',
'id' => 'order-edit-form'
]) !!}
@include('Plugins/Payment/Views/Elements/Order/mainDetails', ['edit' => true])
@include('Plugins/Payment/Views/Elements/Event/CustomFields/modify', ['edit' => true])
@include('Plugins/Payment/Views/Elements/Order/products', ['edit' => true])
@include('Plugins/Payment/Views/Elements/Order/total')
@include(
'Plugins/Payment/Views/Elements/Order/CustomFields/edit',
[
'data' => (
(isset($data->extra->custom_fields) && $data->extra->custom_fields) ?
array_values(
json_decode(json_encode(
$data->extra->custom_fields
), true)
)
:
[]
)
]
)
@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
{!! Form::submit('Submit') !!}
{!! Form::close() !!}
{{-- @if (!$data->user_id) --}}
@include(
'Elements/Common/modal',
[
'id' => 'order-user-modal',
'title' => t("Modify Order's User"),
'form' => [
'data-toggle' => 'validator',
'action' => action('Payment/OrdersController@secure_user', [$venue->id, $data->id]),
],
'content' => view(
'Plugins/Payment/Views/Elements/Order/order_modal_form',
[
'venue' => $venue,
'data' => $data
]
),
'footer' => view(
'Plugins/Payment/Views/Elements/Order/payment_modal_footer'
)
]
)
{{-- @endif --}}
@endsection