<?php $__env->startSection('css_libraries'); ?>
    <link rel="stylesheet" href="<?php echo e(Theme::get('Default')->assets); ?>assets/modules/summernote/summernote-bs4.css">
    <link rel="stylesheet" href="<?php echo e(Theme::get('Default')->assets); ?>assets/modules/codemirror/lib/codemirror.css">
    <link rel="stylesheet" href="<?php echo e(Theme::get('Default')->assets); ?>assets/modules/codemirror/theme/duotone-dark.css">
    <link rel="stylesheet" href="<?php echo e(Theme::get('Default')->assets); ?>assets/modules/jquery-selectric/selectric.css">
    <link rel="stylesheet" href="<?php echo e(asset(AdminTheme::assets('modules/select2/dist/css/select2.min.css'))); ?>">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('js_libraries'); ?>
    <script src="<?php echo e(Theme::get('Default')->assets); ?>assets/modules/codemirror/lib/codemirror.js"></script>
    <script src="<?php echo e(Theme::get('Default')->assets); ?>assets/modules/codemirror/mode/javascript/javascript.js"></script>
    <script src="<?php echo e(asset(AdminTheme::assets('modules/select2/dist/js/select2.full.min.js'))); ?>"></script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('container'); ?>
    <section class="section">
        <div class="section-body">

            <?php if($order_errors->count() !== 0): ?>
                <div class="alert alert-danger alert-dismissible show fade">
                    <div class="alert-body">
                        <?php echo __('admin.try_again_order_desc', ['default' =>
                         ' We faced some errors whilst attempting to create this server. Click "Try Again" to attempt to create the server again.']); ?>

                        <a href="<?php echo e(route('orders.try-again', $order->id)); ?>" class="btn btn-sm btn-info mr-2">
                            <?php echo __('admin.try_again', ['default' => 'Try Again']); ?>

                        </a>
                    </div>
                </div>
            <?php endif; ?>

            <?php $__currentLoopData = $order_errors; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="col-12">
                    <div class="alert alert-danger alert-dismissible show fade">
                        <div class="alert-body">
                            <button class="close" data-dismiss="alert">
                                <span>×</span>
                            </button>
                            <?php echo e($error->message); ?>

                        </div>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </div>
        <div class="row mt-sm-4">
            <div class="col-12 col-md-12 col-lg-4">
                <div class="card profile-widget">
                    <div class="profile-widget-header">
                        <img alt="image" src="<?php echo e(asset('storage/products/' . $order->package['icon'])); ?>"
                             class="rounded-circle profile-widget-picture"/>
                        <div class="profile-widget-items">
                            <div class="profile-widget-item">
                                <div
                                    class="profile-widget-item-label"><?php echo __('admin.status', ['default' => 'Status']); ?></div>
                                <div class="profile-widget-item-value">
                                    <a href="#" class="badge
                                        <?php if($order->status == 'active'): ?> badge-success <?php elseif($order->status == 'suspended'): ?> badge-warning @
                                        elseif($order->status == 'cancelled' OR $order->status == 'terminated') badge-danger
                                        <?php else: ?> badge-primary <?php endif; ?>">
                                        <?php echo __('admin.' . $order->status, ['default' => $order->status]); ?>

                                    </a>
                                </div>
                            </div>
                            <div class="profile-widget-item">
                                <div
                                    class="profile-widget-item-label"><?php echo __('admin.price', ['default' => 'Price']); ?></div>
                                <div
                                    class="profile-widget-item-value"><?php echo e(currency('symbol')); ?><?php echo e($order->price['renewal_price']); ?></span>
                                    / <?php echo $order->periodToHuman(); ?></div>
                            </div>
                        </div>
                    </div>
                    <div class="profile-widget-description">
                        <div class="profile-widget-name">
                            <?php echo e($order->name); ?>

                            <div class="text-muted d-inline font-weight-normal">
                                <div class="slash"></div>
                                <?php echo e($order->service); ?>

                            </div>
                        </div>

                        <a href="<?php echo e(route('users.edit', ['user' => $order->user->id])); ?>"
                            style="display: flex; color: #6c757d">
                             <img alt="image" src="<?php echo e($order->user->avatar()); ?>"
                                  class="rounded-circle mr-2 mt-1" width="48px" height="48px"
                                  data-toggle="tooltip" title="" data-original-title="
                                 <?php echo e($order->user->first_name); ?> <?php echo e($order->user->last_name); ?>">
                             <p class="flex">
                                 <?php echo e($order->user->username); ?> <br>
                                 <small><?php echo e($order->user->email); ?></small>
                             </p>
                         </a>
                    </div>
                    <div class="card-footer text-left">
                        <div class="row">
                            <div class="col-6 mb-2 d-flex">
                                <button type="button" data-toggle="modal" data-target="#extendDateModal"
                                        class="btn btn-icon icon-left btn-primary w-100"><i
                                        class="fas fa-solid fa-calendar-days"></i> <?php echo __('admin.extend_date', ['default' => 'Extend Date']); ?>

                                </button>
                            </div>
                            <div class="col-6 mb-2 d-flex">
                                <button type="button" data-toggle="modal" data-target="#cancelServiceModal"
                                        class="btn btn-icon icon-left btn-warning w-100"><i
                                        class="fa-solid fa-xmark"></i> <?php echo __('admin.cancel', ['default' => 'Cancel']); ?>

                                </button>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="card">
                    <div class="card-body">
                        <a href="<?php echo e(route('orders.action', ['order' => $order->id, 'action' => 'unsuspend'])); ?>"
                            class="btn btn-icon icon-left btn-info mr-2"><i class="fas fa-solid fa-rotate-left"></i>
                            <?php echo __('admin.unsuspend', ['default' => 'Unsuspend']); ?>

                        </a>
                        <a href="<?php echo e(route('orders.action', ['order' => $order->id, 'action' => 'suspend'])); ?>"
                            class="btn btn-icon icon-left btn-warning  mr-2"><i class="fas fa-solid fa-ban"></i>
                            <?php echo __('admin.suspend', ['default' => 'Suspend']); ?>

                        </a>
                        <a onclick="terminate(event)"
                            href="<?php echo e(route('orders.action', ['order' => $order->id, 'action' => 'terminate'])); ?>"
                            class="btn btn-icon icon-left btn-danger mr-2"><i class="fas fa-solid fa-trash-can"></i>
                            <?php echo __('admin.terminate', ['default' => 'Terminate']); ?>

                        </a>
                        <br>
                        <a href="<?php echo e(route('orders.action', ['order' => $order->id, 'action' => 'force_suspend'])); ?>"
                            class="btn btn-icon icon-left btn-warning mr-2 mt-4 "><i class="fas fa-solid fa-ban"></i>
                             <?php echo __('admin.force_suspend', ['default' => 'Force Suspend']); ?>

                         </a>
                         <a onclick="terminate(event)"
                            href="<?php echo e(route('orders.action', ['order' => $order->id, 'action' => 'force_terminate'])); ?>"
                            class="btn btn-icon icon-left btn-danger mr-2  mt-4"><i class="fas fa-solid fa-trash-can"></i>
                             <?php echo __('admin.force_terminate', ['default' => 'Force Terminate']); ?>

                         </a>
                    </div>
                </div>

                <div class="card">
                    <div class="card-header">
                        <h4><?php echo __('admin.recent_payments', ['default' => 'Recent Payments']); ?></h4>
                        <div class="card-header-action">
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="summary">
                            <div class="summary-info">
                                <h4><?php echo e(currency('symbol')); ?><?php echo e(number_format($order->payments()->whereStatus('paid')->getAmountSum(), 2)); ?></h4>
                                <div class="text-muted"><?php echo e($order->payments()->whereStatus('paid')->count()); ?>

                                    <?php echo __('admin.paid_payments', ['default' => 'Paid Payments']); ?>

                                </div>
                                <div class="d-block mt-2">
                                    <a href="#"><?php echo __('admin.view_all', ['default' => 'View All']); ?></a>
                                </div>
                            </div>
                            <div class="summary-item">
                                <h6><?php echo __('admin.paid_payments', ['default' => 'Paid Payments']); ?></h6>
                                <ul class="list-unstyled list-unstyled-border">
                                    <?php $__currentLoopData = $order->payments()->latest()->paginate(8); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <li class="media">
                                            <div class="media-body">
                                                <div
                                                    class="media-right"><?php echo e(currency('symbol')); ?><?php echo e(number_format($payment->amount, 2)); ?></span></div>
                                                <div class="media-title"><a href="<?php echo e(route('payments.edit', $payment->id)); ?>"><?php echo e($payment->description); ?></a>
                                                </div>
                                                <div
                                                    class="text-muted text-small"><?php echo __('admin.' . $payment->status, ['default' => $payment->status]); ?>

                                                    <div
                                                        class="bullet"></div> <?php echo e($order->created_at->translatedFormat(settings('date_format', 'd M Y'))); ?>

                                                </div>
                                            </div>
                                        </li>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </ul>
                                <?php echo e($order->payments()->latest()->paginate(8)->links(AdminTheme::pagination())); ?>

                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <div class="col-12 col-md-12 col-lg-8">

                <?php if($order->status == 'cancelled'): ?>
                    <div class="alert alert-warning" role="alert">
                        <?php echo __('admin.service_cancelled', ['default' => 'This service was cancelled on the']); ?> <a
                            class="alert-link"><?php if(isset($order->cancelled_at)): ?>
                                <?php echo e($order->cancelled_at->translatedFormat(settings('date_format', 'd M Y'))); ?>

                            <?php endif; ?></a> for: <code style="color: #454545;"><?php if(isset($order->cancel_reason)): ?>
                                <?php echo e($order->cancel_reason); ?>

                            <?php else: ?>
                                <?php echo __('admin.no_reason', ['default' => 'No reason given']); ?>

                            <?php endif; ?></code>
                    </div>
                <?php endif; ?>

                <div class="card">
                    <form method="post" action="<?php echo e(route('orders.update', ['order' => $order->id])); ?>"
                          class="needs-validation" novalidate="">
                        <?php echo csrf_field(); ?>
                        <div class="card-header">
                            <h4><?php echo __('admin.update_service', ['default' => 'Update Service']); ?></h4>
                        </div>
                        <div class="card-body">
                            <div class="row">
                                <div class="form-group col-md-12 col-12">
                                    <label><?php echo __('admin.order_name', ['default' => 'Order Name']); ?></label>
                                    <input type="text" class="form-control" name="name" value="<?php echo e($order->name); ?>"
                                           required/>
                                    <small class="form-text text-muted"></small>
                                </div>

                                <div class="form-group col-md-12 col-12">
                                    <label for="user"><?php echo __('admin.user', ['default' => 'User']); ?></label>
                                    <select class="form-control select2 select2-hidden-accessible" name="user_id"
                                            tabindex="-1" aria-hidden="true">
                                        <?php $__currentLoopData = User::get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($user->id); ?>"
                                                    <?php if($order->user->id == $user->id): ?> selected="" <?php endif; ?>><?php echo e($user->username); ?>

                                                (<?php echo e($user->email); ?>)
                                            </option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>

                                <div class="form-group col-md-12 col-12">
                                    <label
                                        for="package_id"><?php echo __('admin.package', ['default' => 'Package']); ?></label>
                                    <select class="form-control select2 select2-hidden-accessible" name="package_id"
                                            tabindex="-1" aria-hidden="true">
                                        <?php $__currentLoopData = Package::where('category_id',$order->package->category->id)->get(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $package): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($package->id); ?>"
                                                    <?php if($order->package->id == $package->id): ?> selected="" <?php endif; ?>><?php echo e($package->name); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>

                                <div class="form-group col-md-12 col-12">
                                    <label><?php echo __('admin.notes', ['default' => 'Notes']); ?> <?php echo __('admin.optional', ['default' => '(optional)']); ?></label>
                                    <textarea type="text" class="form-control" rows="4"
                                              name="notes"><?php echo e($order->notes); ?></textarea>
                                </div>

                                <div class="form-group col-md-6 col-6">
                                    <label for="status"><?php echo __('admin.domain', ['default' => 'Domain']); ?></label>
                                    <input type="text" class="form-control" name="domain" value="<?php echo e($order->domain); ?>"
                                           placeholder="example.com"/>
                                    <small class="form-text text-muted"></small>
                                </div>

                                <div class="form-group col-md-6 col-6">
                                    <label
                                        for="status"><?php echo __('admin.service_provider', ['default' => 'Service Provider']); ?></label>
                                    <input type="text" class="form-control" name="service" value="<?php echo e($order->service); ?>"
                                           disabled/>
                                    <small class="form-text text-muted"></small>
                                </div>

                                <div class="form-group col-md-6 col-6">
                                    <label
                                        for="last_renewed_at"><?php echo __('admin.last_renewed_at', ['default' => 'Last Renewed at']); ?></label>
                                    <input type="date" class="form-control" name="last_renewed_at"
                                           value="<?php echo e($order->last_renewed_at->translatedFormat('Y-m-d')); ?>" required/>
                                    <small
                                        class="form-text text-muted"><?php echo __('admin.last_renewed_at_service_desc', ['default' => 'The date service was last renewed a']); ?>

                                        t</small>
                                </div>

                                <div class="form-group col-md-6 col-6">
                                    <label
                                        for="cancelled_at"><?php echo __('admin.cancelled_at', ['default' => 'Cancelled at']); ?></label>
                                    <input type="date" class="form-control" name="cancelled_at"
                                           value="<?php if(isset($order->cancelled_at)): ?><?php echo e($order->cancelled_at->translatedFormat('Y-m-d')); ?><?php endif; ?>"
                                           <?php if($order->status == 'cancelled'): ?> required <?php else: ?> disabled <?php endif; ?>/>
                                    <small class="form-text text-muted">
                                        <?php echo __('admin.cancelled_at_service_desc', ['default' => 'The date the service is set to be cancelled. Only fillable if status is cancelled']); ?>

                                    </small>
                                </div>

                                <div class="form-group col-md-12 col-12">
                                    <div class="alert alert-light alert-has-icon">
                                        <div class="alert-icon"><i class="fas fa-solid fa-dollar-sign"></i></div>
                                        <div class="alert-body">
                                            <div
                                                class="alert-title"><?php echo __('admin.price_data', ['default' => 'Price Data']); ?></div>
                                            <?php echo __('admin.price_data_service_desc', ['default' => '
                                            Modify the price data for each order using this field. To change the price
                                            for a specific period (daily, weekly, monthly, quarterly, yearly), make
                                            adjustments to the "renewal_price" value. The "period" value determines the
                                            duration and is measured in days. Use "1" for daily, "7" for weekly, "31"
                                            for monthly, "93" for quarterly, and "365" for yearly. Any other numbers
                                            represent custom durations measured in days.
                                            ']); ?>


                                        </div>
                                    </div>

                                    <textarea type="text" class="codeeditor" style="display: none;" rows="6"
                                              name="price"><?php echo e($casts['price']); ?></textarea>
                                    <small class="form-text text-muted">
                                        <?php echo __('admin.price_data_warn_price', ['default' => '
                                        Please refrain from modifying service price
                                        data, only proceed if you are sure of what you are doing and know proper
                                        syntax.
                                        ']); ?>

                                    </small>
                                </div>

                                <?php if($order->data !== NULL): ?>
                                    <div class="form-group col-md-12 col-12">
                                        <label><?php echo __('admin.service_data', ['default' => 'Service Data']); ?></label>
                                        <textarea type="text" class="codeeditor" style="display: none;" rows="4"
                                                  name="data"><?php echo e($casts['data']); ?></textarea>
                                        <small class="form-text text-muted">
                                            <?php echo __('admin.service_data_warn', ['default' => '
                                            Please refrain from modifying service data,
                                            only proceed if you are sure of what you are doing and know proper
                                            syntax.
                                            ']); ?>

                                        </small>
                                    </div>
                                <?php endif; ?>

                                <?php if($order->options !== NULL): ?>
                                    <div class="form-group col-md-12 col-12">
                                        <label><?php echo __('admin.service_options', ['default' => 'Service Options']); ?></label>
                                        <textarea type="text" class="codeeditor" style="display: none;" rows="4"
                                                  name="options"><?php echo e($casts['options']); ?></textarea>
                                        <small class="form-text text-muted">
                                            <?php echo __('admin.service_options_warn', ['default' => '
                                            Please refrain from modifying service
                                            options, only proceed if you are sure of what you are doing and know proper
                                            syntax.
                                            ']); ?>

                                        </small>
                                    </div>
                                <?php endif; ?>

                            </div>
                        </div>
                        <div class="card-footer text-right">
                            <button class="btn btn-dark" type="submit"><?php echo __('admin.update_changes', ['default' => 'Update Changes']); ?></button>
                        </div>
                    </form>
                </div>

            </div>
        </div>
        </div>
    </section>


    <!-- Extend Date Modal -->
    <div class="modal fade" id="extendDateModal" tabindex="-1" role="dialog" aria-labelledby="extendDateModalLabel"
         aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="extendDateModalLabel">
                        <?php echo __('admin.extend_date', ['default' => 'Extend Date']); ?> [<?php echo __('admin.order', ['default' => 'Order']); ?> #<?php echo e($order->id); ?>]
                    </h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <form action="<?php echo e(route('orders.extend', ['order' => $order->id])); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <div class="modal-body">
                        <div class="row">
                            <div class="form-group col-md-12 col-12">
                                <label for="due_date"><?php echo __('admin.new_due_date', ['default' => 'New Due Date']); ?></label>
                                <input type="date" class="form-control" name="new_due_date"
                                       value="<?php echo e($order->due_date->translatedFormat('Y-m-d')); ?>" required="">
                                <small class="form-text text-muted"><?php echo __('admin.new_due_date_desc', ['default' => 'The current due date']); ?>

                                    is <?php echo e($order->due_date); ?></small>
                            </div>
                            <div class="form-group col-md-12 col-12">
                                <label><?php echo __('admin.email', ['default' => 'Email']); ?> <?php echo __('admin.optional', ['default' => '(optional)']); ?></label>
                                <textarea type="text" class="form-control" rows="4" name="email">Our team has updated the due date of your order. Find the details below.</textarea>
                                <small class="form-text text-muted">
                                    <?php echo __('admin.new_due_date_order_email_desc', ['default' => '
                                    Leave this field empty to not send the user an email
                                    notifying them of the new due date.
                                    ']); ?>

                                </small>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo __('admin.close', ['default' => 'Close']); ?></button>
                        <button type="submit" class="btn btn-primary"><?php echo __('admin.update', ['default' => 'Update']); ?></button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <!-- Extend Date Modal -->

    <!-- Cancel Service Modal -->
    <div class="modal fade" id="cancelServiceModal" tabindex="-1" role="dialog"
         aria-labelledby="cancelServiceModalLabel" aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="cancelServiceModalLabel"><?php echo __('admin.cancel_service', ['default' => 'Cancel Service']); ?> [<?php echo __('admin.order'); ?> #<?php echo e($order->id); ?>]</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <form action="<?php echo e(route('orders.cancel', ['order' => $order->id])); ?>" method="POST">
                    <?php echo csrf_field(); ?>
                    <div class="modal-body">
                        <?php if($order->price['cancellation_fee'] > 0): ?>
                            <div class="alert alert-warning" role="alert">
                                <?php echo __('admin.cancel_service_modal_body', ['currency'=> currency('symbol'), 'price'=> number_format($order->price['cancellation_fee'], 2),
                                'default' => '
                                This service has a cancellation fee of <a class="alert-link">:currency :price</a>
                                - The cancellation fee will be waved when you proceed with the cancellation below.
                                ']); ?>


                            </div>
                        <?php endif; ?>
                        <div class="row">
                            <div class="form-group col-md-12 col-12">
                                <div class="custom-control custom-radio">
                                    <input type="radio" id="customRadio1" name="cancelled_at"
                                           class="custom-control-input" value="end_of_term" checked>
                                    <label class="custom-control-label" for="customRadio1">
                                        <?php echo __('admin.cancel_at_end_of_term', ['default' => 'Cancel at end of term']); ?>

                                    </label>
                                    <small class="form-text text-muted mt-0">
                                        <?php echo __('admin.cancel_at_end_of_term_order_desc', ['date'=> $order->due_date->translatedFormat(settings('date_format', 'd M Y')),
                                        'default' => '
                                        The service will be cancelled gracefully at
                                        the due date: :date
                                        ']); ?>

                                    </small>
                                </div>
                                <div class="custom-control custom-radio">
                                    <input type="radio" id="customRadio2" name="cancelled_at"
                                           class="custom-control-input" value="immediately">
                                    <label class="custom-control-label" for="customRadio2">
                                        <?php echo __('admin.cancel_immediately', ['default' => 'Cancel immediately']); ?>

                                    </label>
                                    <small class="form-text text-muted mt-0">
                                        <?php echo __('admin.cancel_immediately_order_desc', ['default' =>
                                        'The service will be cancelled within 24 hours. <br>
                                        All files and data attached to your service will be deleted right away.
                                        ']); ?>


                                    </small>
                                </div>
                            </div>
                            <div class="form-group col-md-12 col-12">
                                <label>
                                    <?php echo __('admin.cancellation_reason', ['default' => 'Cancellation Reason']); ?> <?php echo __('admin.optional'); ?>

                                </label>
                                <textarea type="text" class="form-control" rows="4" name="cancel_reason"></textarea>
                                <small class="form-text text-muted">
                                    <?php echo __('admin.cancellation_reason_order_desc', ['default' => 'The reason for the cancellation']); ?>


                                </small>
                            </div>

                            <div class="form-group col-md-12 col-12">
                                <label><?php echo __('admin.email'); ?> <?php echo __('admin.optional'); ?></label>
                                <textarea type="text" class="form-control" rows="4" name="email">Our team has cancelled your order. Find the details below.</textarea>
                                <small class="form-text text-muted">
                                    <?php echo __('admin.cancellation_order_email_desc', ['default' => '
                                    Leave this field empty to not send the user an email
                                    notifying them of the new due date.
                                    ']); ?>

                                    </small>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo __('admin.close'); ?></button>
                        <button type="submit" class="btn btn-primary"><?php echo __('admin.update'); ?></button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <!-- Cancel Service Modal -->

    <script>
        function terminate(event) {
            if (window.confirm(
                '<?php echo __('admin.cancellation_confirm_order_warn', ['default' => 'You are about to terminate this service. Terminating may delete all data including files or servers on third party applications. This process cannot be undone.']); ?>'
                )) {
            } else {
                event.preventDefault();
            }
        }
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make(AdminTheme::wrapper(), ['title' => __('admin.orders', ['default' => 'Orders']), 'keywords' => 'WemX Dashboard, WemX Panel'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/wemx/resources/themes/admin/default/orders/edit.blade.php ENDPATH**/ ?>