HEX
Server: LiteSpeed
System: Linux srv1.dhviews.com 5.14.0-570.23.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 24 11:27:16 EDT 2025 x86_64
User: bdedition (1723)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/bdedition/public_html/core/storage/framework/views/670b764956acb8e88159131676c66c3e.php
<?php $__env->startSection('panel'); ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-body p-0">
                    <div class="table-responsive--md  table-responsive">
                        <table class="table table--light style--two">
                            <thead>
                                <tr>
                                    <th><?php echo app('translator')->get('Staff'); ?></th>
                                    <th><?php echo app('translator')->get('Email-Mobile'); ?></th>
                                    <th><?php echo app('translator')->get('Country'); ?></th>
                                    <th><?php echo app('translator')->get('Joined At'); ?></th>
                                    <th><?php echo app('translator')->get('News'); ?></th>
                                    <th><?php echo app('translator')->get('Action'); ?></th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $__empty_1 = true; $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <tr>
                                        <td>
                                            <span class="fw-bold"><?php echo e($user->fullname); ?></span>
                                            <br>
                                            <span class="small">
                                                <a href="<?php echo e(route('admin.users.detail', $user->id)); ?>">
                                                    <span>@</span><?php echo e($user->username); ?>

                                                </a>
                                            </span>
                                        </td>
                                        <td><?php echo e($user->email); ?><br><?php echo e($user->mobileNumber); ?></td>
                                        <td>
                                            <span class="fw-bold" title="<?php echo e(@$user->country_name); ?>">
                                                <?php echo e($user->country_code); ?>

                                            </span>
                                        </td>
                                        <td>
                                            <?php echo e(showDateTime($user->created_at)); ?> <br>
                                            <?php echo e(diffForHumans($user->created_at)); ?>

                                        </td>
                                        <td><span class="fw-bold"><?php echo e($user->news_count); ?></span></td>
                                        <td>
                                            <div class="button--group">
                                                <a href="<?php echo e(route('admin.users.detail', $user->id)); ?>"
                                                    class="btn btn-sm btn-outline--primary">
                                                    <i class="las la-desktop"></i> <?php echo app('translator')->get('Details'); ?>
                                                </a>
                                            </div>
                                        </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    <tr>
                                        <td class="text-muted text-center" colspan="100%"><?php echo e(__($emptyMessage)); ?></td>
                                    </tr>
                                <?php endif; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
                <?php if($users->hasPages()): ?>
                    <div class="card-footer py-4">
                        <?php echo e(paginateLinks($users)); ?>

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

    <div class="modal fade" id="addStaffModal">
        <div class="modal-dialog modal-xl">
            <div class="modal-content">
                <div class="modal-header">
                    <h4 class="modal-title" id="getLangModalLabel"><?php echo app('translator')->get('Add New Staff'); ?></h4>
                    <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close">
                        <i class="las la-times"></i>
                    </button>
                </div>
                <form action="<?php echo e(route('admin.users.store')); ?>" method="POST" class="disableSubmission">
                    <?php echo csrf_field(); ?>
                    <div class="modal-body">
                        <div class="row">
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('First Name'); ?></label>
                                    <input type="text" name="firstname" class="form-control" required>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Last Name'); ?></label>
                                    <input type="text" name="lastname" class="form-control" required>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Father Name'); ?></label>
                                    <input type="text" name="fatherName" class="form-control" required>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Mother Name'); ?></label>
                                    <input type="text" name="motherName" class="form-control" required>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('NID'); ?></label>
                                    <input type="text" name="nid" class="form-control" required>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('District'); ?></label>
                                    <input type="text" name="district" class="form-control" required>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Upazila'); ?></label>
                                    <input type="text" name="upazila" class="form-control" required>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Email'); ?></label>
                                    <input type="email" class="form-control" name="email" required>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Username'); ?></label>
                                    <input type="text" name="username" class="form-control" required>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Country'); ?></label>
                                    <select name="country" class="form-control select2" required>
                                        <?php $__currentLoopData = $countries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $country): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($country->country); ?>" data-code="<?php echo e($key); ?>"
                                                data-mobile_code="<?php echo e($country->dial_code); ?>">
                                                <?php echo e(__($country->country)); ?>

                                            </option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Mobile Number'); ?></label>
                                    <div class="input-group ">
                                        <span class="input-group-text mobile-code">--</span>
                                        <input type="hidden" name="mobile_code">
                                        <input type="hidden" name="country_code">
                                        <input type="number" name="mobile" class="form-control" required>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Password'); ?></label>
                                    <input type="password" name="password" class="form-control" required>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Confirm Password'); ?></label>
                                    <input type="password" name="password_confirmation" class="form-control" required>
                                </div>
                            </div>
                            <div class="col-lg-4">
                                <div class="form-group">
                                    <label><?php echo app('translator')->get('Designation'); ?></label>
                                    <select name="designation" class="form-control select2" required>
                                        <option value="">Select Designation</option>
                                        <option value="peb"><?php echo app('translator')->get('President of the Editorial Board'); ?></option>
                                        <option value="advisor"><?php echo app('translator')->get('Advisor'); ?></option>
                                        <option value="editor"><?php echo app('translator')->get('Editor'); ?></option>
                                        <option value="executiveEditor"><?php echo app('translator')->get('Executive editor'); ?></option>
                                        <option value="managingEditor"><?php echo app('translator')->get('Managing editor'); ?></option>
                                        <option value="deputyEditor"><?php echo app('translator')->get('Deputy editor'); ?></option>
                                        <option value="jointEditor"><?php echo app('translator')->get('Joint editor'); ?></option>
                                        <option value="associateEditor"><?php echo app('translator')->get('Associate editor'); ?></option>
                                        <option value="newsEditor"><?php echo app('translator')->get('News editor'); ?></option>
                                        <option value="assistantEditor"><?php echo app('translator')->get('Assistant Editor'); ?></option>
                                        <option value="featureEditor"><?php echo app('translator')->get('Feature Editor'); ?></option>
                                        <option value="specialCorrespondent"><?php echo app('translator')->get('Special Correspondent'); ?></option>
                                        <option value="cityEditor"><?php echo app('translator')->get('City Editor'); ?></option>
                                        <option value="jointNewsEditor"><?php echo app('translator')->get('Joint News Editor'); ?></option>
                                        <option value="chiefCorrespondent"><?php echo app('translator')->get('Chief Correspondent'); ?></option>
                                        <option value="subEditor"><?php echo app('translator')->get('Sub-Editor'); ?></option>
                                        <option value="chiefSubEditor"><?php echo app('translator')->get('Chief Sub-Editor'); ?></option>
                                        <option value="staffEditor"><?php echo app('translator')->get('Staff Editor'); ?></option>
                                        <option value="sportsEditor"><?php echo app('translator')->get('Sports Editor'); ?></option>
                                        <option value="editorialAssistant"><?php echo app('translator')->get('Editorial Assistant'); ?></option>
                                        <option value="associateEditor"><?php echo app('translator')->get('Associate Editor'); ?></option>
                                        <option value="staffCorrespondent"><?php echo app('translator')->get('Staff Correspondent'); ?></option>
                                        <option value="ownCorrespondent"><?php echo app('translator')->get('Own Correspondent'); ?></option>
                                        <option value="sportsCorrespondent"><?php echo app('translator')->get('Sports Correspondent'); ?></option>
                                        <option value="artist"><?php echo app('translator')->get('Artist'); ?></option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="submit" class="btn btn--primary w-100 h-45"><?php echo app('translator')->get('Submit'); ?></button>
                    </div>
                </form>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('breadcrumb-plugins'); ?>
    <?php if (isset($component)) { $__componentOriginale48b4598ffc2f41a085f001458a956d1 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginale48b4598ffc2f41a085f001458a956d1 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.search-form','data' => ['placeholder' => 'Username / Email']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('search-form'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['placeholder' => 'Username / Email']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginale48b4598ffc2f41a085f001458a956d1)): ?>
<?php $attributes = $__attributesOriginale48b4598ffc2f41a085f001458a956d1; ?>
<?php unset($__attributesOriginale48b4598ffc2f41a085f001458a956d1); ?>
<?php endif; ?>
<?php if (isset($__componentOriginale48b4598ffc2f41a085f001458a956d1)): ?>
<?php $component = $__componentOriginale48b4598ffc2f41a085f001458a956d1; ?>
<?php unset($__componentOriginale48b4598ffc2f41a085f001458a956d1); ?>
<?php endif; ?>

    <button type="button" class="btn btn-outline--primary btn-sm addNewStaff">
        <i class="las la-plus"></i><?php echo app('translator')->get('Add New Staff'); ?>
    </button>
<?php $__env->stopPush(); ?>

<?php $__env->startPush('script'); ?>
    <script>
        (function($) {
            "use strict";

            $('.addNewStaff').on('click', function() {
                var modal = $('#addStaffModal');
                $('input[name=mobile_code]').val($('select[name=country] :selected').data('mobile_code'));
                $('input[name=country_code]').val($('select[name=country] :selected').data('code'));
                $('.mobile-code').text('+' + $('select[name=country] :selected').data('mobile_code'));
                modal.modal('show');
            });

            $('select[name=country]').on('change', function() {
                $('input[name=mobile_code]').val($('select[name=country] :selected').data('mobile_code'));
                $('input[name=country_code]').val($('select[name=country] :selected').data('code'));
                $('.mobile-code').text('+' + $('select[name=country] :selected').data('mobile_code'));
            });
        })(jQuery);
    </script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/bdedition/public_html/core/resources/views/admin/users/list.blade.php ENDPATH**/ ?>