@include('Plugins/Payment/Views/Elements/Order/payments_table')
{{--@if ($data->status != 'partial_refund')--}}
@if (is_admin())
@if ($data->remaining_payment) @endif
@endif @t('Add payment') @include( 'Plugins/Dojo/Views/Elements/Terminal/popup', [ 'settings' => $settings, 'id' => $data->id, 'amount' => $data->remaining_payment - (isset($data->remaining_service_charge) ? array_sum(oa($data->remaining_service_charge)) : 0) - (isset($data->remaining_tax_charge) ? $data->remaining_tax_charge : 0) ] ) @if ($data->status == 'cancelled') {{ __('WARNING: this order has been cancelled') }} @endif {{--@endif--}}
@include( 'Elements/Common/modal', [ 'id' => 'payment-modal-dialog', 'title' => t( 'New Payment. Remaining %s', amount( $data->remaining_payment - (isset($data->remaining_service_charge) ? array_sum(oa($data->remaining_service_charge)) : 0) - (isset($data->remaining_tax_charge) ? $data->remaining_tax_charge : 0), ['to' => $order_currency->id] ) ), 'form' => [ 'data-toggle' => 'validator', 'action' => action('Payment/OrdersPaymentsController@secure_add', [$venue->id, $data->id]), 'id' => 'orderspayment-form', 'class' => '', 'data-trigger' => '#orderspayment-form', 'data-toggle' => 'validator' ], 'content' => view( 'Plugins/Payment/Views/Elements/Order/payment_modal_form', [ 'venue' => $venue, 'currencies' => $currencies, 'currencies_list' => $currencies_list, 'settings' => $settings, 'fees' => $fees, 'payment_options' => $payment_options_list, 'order' => $data, 'items' => $items ] ), 'footer' => view( 'Plugins/Payment/Views/Elements/Order/payment_modal_footer' ) ] ) @include( 'Elements/Common/modal', [ 'id' => 'order-payment-refund-modal', 'title' => t('Refunding'), 'form' => [ 'data-toggle' => 'validator', ], 'content' => view( 'Plugins/Payment/Views/Elements/Order/order_refund_form', [ 'venue' => $venue, 'data' => $data, 'refund_reasons' => $refund_reasons ] ), 'footer' => view( 'Plugins/Payment/Views/Elements/Order/order_refund_footer', [ 'data' => $data, 'settings' => $settings ] ) ] )