<?php
    $auth_user= authSession();
?>
<?php if($delete_at != null): ?>
    <div class="d-flex justify-content-end align-items-center">
        <?php if($auth_user->can('extracharge-edit')): ?>
            <a class="mr-2" href="<?php echo e(route('extracharge.restore', ['id' => $id ,'type'=>'restore'])); ?>" data--confirmation--restore="true" title="<?php echo e(__('message.restore_title')); ?>"><i class="ri-refresh-line" style="font-size:18px"></i></a>
        <?php endif; ?>
        <?php echo e(Form::open(['route' => ['extracharge.force.delete', $id, 'type'=>'forcedelete'], 'method' => 'delete','data--submit'=>'extracharge'.$id])); ?>

            <?php if($auth_user->can('extracharge-delete')): ?>
                <a class="mr-2 text-danger" href="javascript:void(0)" data--submit="extracharge<?php echo e($id); ?>"
                    data--confirmation='true' data-title="<?php echo e(__('message.delete_form_title',['form'=> __('message.extracharge') ])); ?>"
                    title="<?php echo e(__('message.force_delete_form_title',['form'=>  __('message.extracharge') ])); ?>"
                    data-message='<?php echo e(__("message.force_delete_msg")); ?>'>
                    <i class="ri-delete-bin-2-fill" style="font-size:18px"></i>
                </a>
            <?php endif; ?>
        <?php echo e(Form::close()); ?>

    </div>
 <?php else: ?>
    <?php if($action_type == 'status'): ?>
        <div class="custom-switch custom-switch-text custom-switch-color custom-control-inline">
            <div class="custom-switch-inner">
                <input type="checkbox" class="custom-control-input bg-success change_status" data-type="extracharge" id="<?php echo e($data->id); ?>" data-id="<?php echo e($data->id); ?>" <?php echo e(($data->status == '0' ? 0 : 1) ? 'checked' : ''); ?> value="<?php echo e($data->id); ?>">
                <label class="custom-control-label" for="<?php echo e($data->id); ?>" data-on-label="" data-off-label=""></label>
            </div>
        </div>
    <?php endif; ?>

    <?php if($action_type == 'action'): ?>
        <div class="d-flex justify-content-end align-items-center">
            <?php if($auth_user->can('extracharge-edit')): ?>
            <a class="mr-2" href="<?php echo e(route('extracharge.edit', $id)); ?>" title="<?php echo e(__('message.update_form_title',['form' => __('message.extracharge') ])); ?>"><i class="fas fa-edit text-primary"></i></a>
            <?php endif; ?>

            <?php echo e(Form::open(['route' => ['extracharge.destroy', $id], 'method' => 'delete','data--submit'=>'extracharge'.$id])); ?>

                <?php if($auth_user->can('extracharge-delete')): ?>
                    <a class="mr-2 text-danger" href="javascript:void(0)" data--submit="extracharge<?php echo e($id); ?>"
                        data--confirmation='true' data-title="<?php echo e(__('message.delete_form_title',['form'=> __('message.extracharge') ])); ?>"
                        title="<?php echo e(__('message.delete_form_title',['form'=>  __('message.extracharge') ])); ?>"
                        data-message='<?php echo e(__("message.delete_msg")); ?>'>
                        <i class="fas fa-trash-alt"></i>
                    </a>
                <?php endif; ?>
            <?php echo e(Form::close()); ?>

        </div>
    <?php endif; ?>
<?php endif; ?>
<?php /**PATH /www/wwwroot/mxunzo.mimeld.com/resources/views/extracharge/action.blade.php ENDPATH**/ ?>