File "88fc9b62470523fd49098a368a2a2c727c988101.php"

Full Path: /home/fundopuh/trader.fxex.org/storage/framework/views/88fc9b62470523fd49098a368a2a2c727c988101.php
File size: 14.06 KB
MIME-type: text/x-php
Charset: utf-8

<?php $__env->startSection('content'); ?>
    <div class="mt-2 mb-4">
        <h1 class="title1 ">Managers List</h1>
    </div>
    <?php if (isset($component)) { $__componentOriginal431821226313d25f12c6b9e5d4f97b7033ed596e = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\Admin\Alert::class, []); ?>
<?php $component->withName('admin.alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal431821226313d25f12c6b9e5d4f97b7033ed596e)): ?>
<?php $component = $__componentOriginal431821226313d25f12c6b9e5d4f97b7033ed596e; ?>
<?php unset($__componentOriginal431821226313d25f12c6b9e5d4f97b7033ed596e); ?>
<?php endif; ?>
    <div class="mb-5 row">
        <div class="col p-4 shadow card ">
            <div class="table-responsive" data-example-id="hoverable-table">
                <table id="ShipTable" class="table table-hover ">
                    <thead>
                        <tr>
                            <th>USER ID</th>
                            <th>FIRSTNAME</th>
                            <th>LASTNAME</th>
                            <th>EMAIL</th>
                            <th>PHONE</th>
                            <th>TYPE</th>
                            <th>STATUS</th>
                            <th>ACTION</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $admins; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $admin): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($admin->id); ?></td>
                                <td><?php echo e($admin->firstName); ?></td>
                                <td><?php echo e($admin->lastName); ?></td>
                                <td><?php echo e($admin->email); ?></td>
                                <td><?php echo e($admin->phone); ?></td>
                                <td><?php echo e($admin->type); ?></td>
                                <td><?php echo e($admin->acnt_type_active); ?></td>
                                <td>
                                    <div class="dropdown">
                                        <a class="btn btn-secondary btn-sm dropdown-toggle" href="#" role="button"
                                            id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true"
                                            aria-expanded="false">
                                            Actions
                                        </a>
                                        <div class="dropdown-menu " aria-labelledby="dropdownMenuLink">

                                            <?php if($admin->acnt_type_active == null || $admin->acnt_type_active == 'blocked'): ?>
                                                <a class="m-1 btn btn-primary btn-sm"
                                                    href="<?php echo e(url('admin/dashboard/unblock')); ?>/<?php echo e($admin->id); ?>">Unblock</a>
                                            <?php else: ?>
                                                <a class="m-1 btn btn-danger btn-sm"
                                                    href="<?php echo e(url('admin/dashboard/ublock')); ?>/<?php echo e($admin->id); ?>">Block</a>
                                            <?php endif; ?>
                                            <a href="#" data-toggle="modal"
                                                data-target="#resetpswdModal<?php echo e($admin->id); ?>"
                                                class="m-1 btn btn-warning btn-sm">Reset Password</a>

                                            <a href="#" data-toggle="modal"
                                                data-target="#deleteModal<?php echo e($admin->id); ?>"
                                                class="m-1 btn btn-danger btn-sm">Delete</a>
                                            <a href="#" data-toggle="modal"
                                                data-target="#edituser<?php echo e($admin->id); ?>"
                                                class="m-1 btn btn-secondary btn-sm">Edit</a>
                                            <a href="#" data-toggle="modal"
                                                data-target="#sendmailModal<?php echo e($admin->id); ?>"
                                                class="m-1 btn btn-info btn-sm">Send Email</a>
                                        </div>
                                    </div>
                                </td>
                            </tr>


                            <!-- Reset user password Modal -->
                            <div id="resetpswdModal<?php echo e($admin->id); ?>" class="modal fade" role="dialog">
                                <div class="modal-dialog">

                                    <!-- Modal content-->
                                    <div class="modal-content">
                                        <div class="modal-header  ">

                                            <h4 class="modal-title ">Reset Password</strong></h4>
                                            <button type="button" class="close " data-dismiss="modal">&times;</button>
                                        </div>
                                        <div class="modal-body  p-3">
                                            <p class="">Are you sure you want to reset password for
                                                <?php echo e($admin->firstName); ?> to <span
                                                    class="text-primary font-weight-bolder">admin01236</span>
                                            </p>
                                            <a class="btn btn-danger"
                                                href="<?php echo e(url('admin/dashboard/resetadpwd')); ?>/<?php echo e($admin->id); ?>">Reset
                                                Now</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- /Reset user password Modal -->

                            <!-- Delete user Modal -->
                            <div id="deleteModal<?php echo e($admin->id); ?>" class="modal fade" role="dialog">
                                <div class="modal-dialog">

                                    <!-- Modal content-->
                                    <div class="modal-content">
                                        <div class="modal-header ">

                                            <h4 class="modal-title ">Delete Manager</strong></h4>
                                            <button type="button" class="close " data-dismiss="modal">&times;</button>
                                        </div>
                                        <div class="modal-body  p-3">
                                            <p class="">Are you sure you want to delete
                                                <?php echo e($admin->firstName); ?></p>
                                            <a class="btn btn-danger"
                                                href="<?php echo e(url('admin/dashboard/deleletadmin')); ?>/<?php echo e($admin->id); ?>">Yes
                                                i'm sure</a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- /Delete user Modal -->

                            <!-- Edit user Modal -->
                            <div id="edituser<?php echo e($admin->id); ?>" class="modal fade" role="dialog">
                                <div class="modal-dialog">
                                    <!-- Modal content-->
                                    <div class="modal-content">
                                        <div class="modal-header ">

                                            <h4 class="modal-title ">Edit user details.</strong></h4>
                                            <button type="button" class="close " data-dismiss="modal">&times;</button>
                                        </div>
                                        <div class="modal-body ">
                                            <form style="padding:3px;" role="form" method="post"
                                                action="<?php echo e(route('editadmin')); ?>">
                                                <h5 class=" ">Firstname</h5>
                                                <input style="padding:5px;" class="form-control  "
                                                    value="<?php echo e($admin->firstName); ?>" type="text" name="fname"
                                                    required><br />
                                                <h5 class=" ">Lastname</h5>
                                                <input style="padding:5px;" class="form-control  "
                                                    value="<?php echo e($admin->lastName); ?>" type="text" name="l_name"
                                                    required><br />
                                                <h5 class=" ">Email</h5>
                                                <input style="padding:5px;" class="form-control  "
                                                    value="<?php echo e($admin->email); ?>" type="email" name="email"
                                                    required><br />
                                                <h5 class=" ">Phone Number</h5>
                                                <input style="padding:5px;" class="form-control  "
                                                    value="<?php echo e($admin->phone); ?>" type="text" name="phone" required>
                                                <br>
                                                <h5 class=" ">Type</h5>
                                                <select class="form-control  " name="type">
                                                    <option><?php echo e($admin->type); ?></option>
                                                    <option>Super Admin</option>
                                                    <option>Admin</option>
                                                    <option>Conversion Agent</option>
                                                </select><br>
                                                <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                                                <input type="hidden" name="user_id" value="<?php echo e($admin->id); ?>">
                                                <input type="submit" class="btn btn-info" value="Update account">
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <!-- /Edit user Modal -->
                            <!-- send a single user email Modal-->
                            <div id="sendmailModal<?php echo e($admin->id); ?>" class="modal fade" role="dialog">
                                <div class="modal-dialog">
                                    <!-- Modal content-->
                                    <div class="modal-content">
                                        <div class="modal-header ">
                                            <h4 class="modal-title ">Send Email Message</h4>
                                            <button type="button" class="close " data-dismiss="modal">&times;</button>
                                        </div>

                                        <div class="modal-body ">
                                            <p class="">This message will be sent to
                                                <?php echo e($admin->firstName); ?> <?php echo e($admin->lastName); ?> </p>
                                            <form role="form" method="post" action="<?php echo e(route('sendmailtoadmin')); ?>">
                                                <input type="hidden" name="user_id" value="<?php echo e($admin->id); ?>">
                                                <div class="form-group">
                                                    <input type="text" name="subject" class="form-control  "
                                                        placeholder="Enter Email Subject">
                                                </div>
                                                <div class="form-group">
                                                    <textarea class="form-control  " name="message " row="3" placeholder="Type your message here" required></textarea>
                                                </div>
                                                <div class="form-group">
                                                    <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                                                    <input type="submit" class="btn btn-primary" value="Send">
                                                </div>
                                            </form>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/fundopuh/trader.fxex.org/resources/views/admin/madmin.blade.php ENDPATH**/ ?>