@extends($layout_template) @section('scripts') @if ($print) @endif @endsection @section('submenu') @include('Plugins/Payment/Views/Elements/Order/submenu', ['row' => $data]) {{-- @include('Elements/Venue/submenu') --}} @endsection @section('content')
@include('Plugins/Payment/Views/Elements/Order/details') @include('Plugins/Payment/Views/Elements/Order/items') @include( 'Plugins/Payment/Views/Elements/Order/CustomFields/view', [ 'data' => ( (isset($data->extra->custom_fields) && $data->extra->custom_fields) ? array_values( json_decode( json_encode( $data->extra->custom_fields ), true) ) : [] ) ] ) @include( 'Plugins/Payment/Views/Elements/Event/CustomFields/view', [ 'labels' => ( ( isset($custom_fields) && $custom_fields ) ? array_values($custom_fields) : null ), 'data' => ( (isset($data->extra->extra_fields) && $data->extra->extra_fields) ? array_values( json_decode( json_encode( $data->extra->extra_fields ), true) ) : [] ) ] ) @if (isset($data->extra->notes) && $data->extra->notes)

{{ __('User Notes') }}

{{ $data->extra->notes }}
@endif @include( 'Plugins/Message/Views/Elements/Message/messages', [ 'title' => __('Communication with the customer'), 'object_type' => 'Plugins/Payment/Order', 'object_id' => $data->id ] ) @if(is_super_admin())

{{ $data->token }}
@endif @if(is_god())

PDF Template {{ $data->id }} {{ $data->token }}
@endif
@if (isset($data->Ticket) && $data->Ticket)
@include('Plugins/Payment/Views/Elements/Order/tickets')
@endif
@include('Plugins/Payment/Views/Elements/Order/payments')

{{ __('Internal Notes Log') }}

@if ($data->internal_notes)
{!! (isset($data->internal_notes) ? nl2br($data->internal_notes) : null) !!}
@endif @include( 'Plugins/Payment/Views/Elements/Note/list', [ 'object_type' => 'Plugins\Payment\Order', 'object_id' => $data->id, 'url' => action( 'Payment/NotesController@secure_index.hson', [ $venue->id, 'query' => ['object_type' => 'Order', 'object_id' => $data->id] ] ) ] )
@if (isset($data->contract) && $data->contract)
@include('Plugins/Payment/Views/Elements/Order/details_readonly') @include('Plugins/Payment/Views/Elements/Order/items_readonly') @if (isset($data->Contract) && $data->Contract) @include( 'Plugins/Payment/Views/Elements/Order/CustomFields/view', [ 'title' => 'Contract Conditions', 'data' => array_values(json_decode(json_encode($contract_fields), true)), 'field_name' => 'data[Order][extra][contract_fields]' ] ) @include('Plugins/History/Views/Elements/Plugins-Payment-Waiver', ['data' => $data->Contract, 'title' => __('Contract signature')]) @else {!! Form::open([ 'action' => action('Payment/OrdersController@secure_contract.json', [$venue->id, $data->id]), 'class' => 'ajaxed notify', 'id' => 'contract-form' ]) !!} @include( 'Plugins/Payment/Views/Elements/Order/CustomFields/edit', [ 'title' => false, 'data' => array_values(json_decode(json_encode($contract_fields), true)), 'field_name' => 'data[Order][extra][contract_fields]' ] )
{!! Form::close() !!} @endif
@endif @if (!isset($settings->content->hide_external_notes) || !$settings->content->hide_external_notes)
{!! Form::open() !!}
{!! Form::label('data[Order][description]', __('External Notes')) !!} {!! Form::textarea( 'data[Order][description]', (isset($data->description) ? $data->description : null), [ 'class' => 'form-control', 'rows' => 10 ] ) !!}
{!! Form::close() !!}
@endif @if (isset($data->Waiver) && $data->Waiver)
@include('Plugins/History/Views/Elements/Plugins-Payment-Waiver', ['data' => $data->Waiver])
@endif
@if (is_admin())


{{ $data->token }}
@endif {{-- @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, 'settings' => $settings ] ), 'footer' => view( 'Plugins/Payment/Views/Elements/Order/payment_modal_footer', [ 'users_orders' => $users_orders ] ) ] ) @if (isset($settings->content->custom_fields) && $settings->content->custom_fields) @include( 'Elements/Common/modal', [ 'id' => 'order-invoice-modal', 'title' => t("Orders Invoice Details"), 'form' => [ 'data-toggle' => 'validator', 'action' => action('Payment/OrdersController@secure_user', [$venue->id, $data->id]), ], 'content' => view( 'Plugins/Payment/Views/Elements/Order/invoice_modal_form', [ 'venue' => $venue, 'data' => $data, 'settings' => $settings ] ), 'footer' => view( 'Plugins/Payment/Views/Elements/Order/payment_modal_footer', [ 'users_orders' => $users_orders ] ) ] ) @endif {{-- @endif --}} @include( 'Elements/Common/modal', [ 'id' => 'order-refund-modal', 'title' => t('Refunding'), 'form' => [ 'data-toggle' => 'validator', 'action' => action('Payment/OrdersController@secure_refund', [$venue->id, $data->id]), ], 'content' => view( 'Plugins/Payment/Views/Elements/Order/order_refund_form', [ 'venue' => $venue, 'data' => $data ] ), 'footer' => '' ] ) @include( 'Elements/Common/modal', [ 'id' => 'resend-modal-dialog', 'title' => t('Email'), 'form' => [ 'id' => 'resend-form', 'action' => action( 'Payment/OrdersController@secure_resend', [$venue->id, $data->id] ), 'class' => 'ajaxed' ], 'content' => view( 'Plugins/Payment/Views/Elements/Order/resend_form', [ 'template_selection_types' => $template_selection_types, 'email' => (isset($data->User->email) && $data->User->email ? $data->User->email : '') ] ), 'footer' => view( 'Plugins/Payment/Views/Elements/Cart/modal_footer' ) ] ) @include( 'Elements/Common/modal', [ 'id' => 'card-modal-dialog', 'title' => t('Membership card'), 'form' => [ 'id' => 'card-form', 'action' => action( 'Payment/OrdersController@secure_card', [$venue->id, $data->id] ), 'enctype' => "multipart/form-data" ], 'content' => view( 'Plugins/Payment/Views/Elements/Order/card_form', ['data' => $data] ), 'footer' => view( 'Plugins/Payment/Views/Elements/Cart/modal_footer', ['label' => __('Generate')] ) ] ) @endsection