@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())
@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())