<?php $__env->startSection('page-title'); ?>
    <?php echo e(__('Dashboard')); ?>

<?php $__env->stopSection(); ?>
<?php
    $setting = App\Models\Utility::settings();
    $icons = \App\Models\Utility::get_file('uploads/job/icons/');
?>
<?php $__env->startSection('content'); ?>
    <div class="welcome-back-wrapper-box">
        <div
            class="welcome-back-wrapper banner-cover d-flex flex-column flex-lg-row justify-content-between position-relative text-white">
            <div class="flex-grow-1 pe-lg-4 p-4">
                <h3 class="h4 welcome-box">Welcome back, <?php echo e(Auth::user()->name); ?></h3>
                <p class="mt-2 welcome-back-sub">
                    Welcome to Payraty—a platform designed to transform the way you manage your business.
                    In today's fast-paced world, efficiency and accuracy are critical to staying ahead.
                </p>
            </div>
            <div class="flex-shrink-0" style="position: relative;">
                <svg height="150" viewBox="0 0 300 192" fill="none" xmlns="http://www.w3.org/2000/svg"
                    xmlns:xlink="http://www.w3.org/1999/xlink">
                    <rect width="300" height="192" fill="url(#pattern0_1262_38308)" />
                    <defs>
                        <pattern id="pattern0_1262_38308" patternContentUnits="objectBoundingBox" width="1" height="1">
                            <use xlink:href="#image0_1262_38308" transform="scale(0.00333333 0.00520833)" />
                        </pattern>
                        <image id="image0_1262_38308" width="300" height="192"
                            xlink:href="data:image/png;base64, " />
                    </defs>
                </svg>
                <span class="welcome-back-cancel-box" id="dismissWelcome">
                    <svg class="welcome-back-cancel" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"
                        fill="currentColor" viewBox="0 0 24 24">
                        <path fill-rule="evenodd"
                            d="M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm7.707-3.707a1 1 0 0 0-1.414 1.414L10.586 12l-2.293 2.293a1 1 0 1 0 1.414 1.414L12 13.414l2.293 2.293a1 1 0 0 0 1.414-1.414L13.414 12l2.293-2.293a1 1 0 0 0-1.414-1.414L12 10.586 9.707 8.293Z"
                            clip-rule="evenodd" />
                    </svg>
                    </span>
                    </div>
                    </div>
                    </div>
    <?php if(session('status')): ?>
        <div class="alert alert-success" role="alert">
            <?php echo e(session('status')); ?>

        </div>
    <?php endif; ?>


    <?php if(\Auth::user()->type == 'employee'): ?>
        <div class="row">
            <div class="col-xxl-6">
                <div class="card">
                    <div class="card-header">
                        <div class="row">
                            <div class="col-lg-6">
                                <h5><?php echo e(__('Calendar')); ?></h5>
                                <input type="hidden" id="path_admin" value="<?php echo e(url('/')); ?>">
                            </div>
                            <div class="col-lg-6">
                                
                                <label for=""></label>
                                <?php if(isset($setting['is_enabled']) && $setting['is_enabled'] == 'on'): ?>
                                    <select class="form-control" name="calender_type" id="calender_type"
                                        style="float: right;width: 155px;" onchange="get_data()">
                                        <option value="google_calender"><?php echo e(__('Google Calendar')); ?></option>
                                        <option value="local_calender" selected="true">
                                            <?php echo e(__('Local Calendar')); ?>

                                            </option>
                                    </select>
                                <?php endif; ?>
                                
                            </div>
                        </div>
                    </div>
                    <div class="card-body">
                        <div id='event_calendar' class='calendar'></div>
                    </div>
                </div>
            </div>
            <div class="col-xxl-6">
                <div class="card" style="height: 230px;">
                    <div class="card-header">
                        <h5><?php echo e(__('Mark Attandance')); ?></h5>
                    </div>
                    <div class="card-body">
                        <p class="text-muted pb-0-5">
                            <?php echo e(__('My Office Time: ' . $officeTime['startTime'] . ' to ' . $officeTime['endTime'])); ?>

                            </p>
                        <div class="row">
                            <div class="col-md-6 float-right border-right">
                                <?php echo e(Form::open(['url' => 'attendanceemployee/attendance', 'method' => 'post'])); ?>

                                <?php if(empty($employeeAttendance) || $employeeAttendance->clock_out != '00:00:00'): ?>
                                    <button type="submit" value="0" name="in" id="clock_in"
                                        class="btn btn-primary"><?php echo e(__('CLOCK IN')); ?></button>
                                <?php else: ?>
                                    <button type="submit" value="0" name="in" id="clock_in"
                                        class="btn btn-primary disabled" disabled><?php echo e(__('CLOCK IN')); ?></button>
                                <?php endif; ?>
                                <?php echo e(Form::close()); ?>

                            </div>
                            <div class="col-md-6 float-left">
                                <?php if(!empty($employeeAttendance) && $employeeAttendance->clock_out == '00:00:00'): ?>
                                    <?php echo e(Form::model($employeeAttendance, ['route' => ['attendanceemployee.update', $employeeAttendance->id], 'method' => 'PUT'])); ?>

                                    <button type="submit" value="1" name="out" id="clock_out"
                                        class="btn btn-danger"><?php echo e(__('CLOCK OUT')); ?></button>
                                <?php else: ?>
                                    <button type="submit" value="1" name="out" id="clock_out"
                                        class="btn btn-danger disabled" disabled><?php echo e(__('CLOCK OUT')); ?></button>
                                <?php endif; ?>
                                <?php echo e(Form::close()); ?>

                            </div>
                        </div>
                    </div>
                </div>
                <div class="card" style="height: 402px;">
                    <div class="card-header card-body table-border-style">
                        <h5><?php echo e(__('Meeting schedule')); ?></h5>
                    </div>
                    <div class="card-body" style="height: 320px">
                        <div class="table-responsive">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th><?php echo e(__('Meeting title')); ?></th>
                                        <th><?php echo e(__('Meeting Date')); ?></th>
                                        <th><?php echo e(__('Meeting Time')); ?></th>
                                    </tr>
                                </thead>
                                <tbody class="list">
                                    <?php $__currentLoopData = $meetings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $meeting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($meeting->title); ?></td>
                                            <td><?php echo e(\Auth::user()->dateFormat($meeting->date)); ?></td>
                                            <td><?php echo e(\Auth::user()->timeFormat($meeting->time)); ?></td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xl-12 col-lg-12 col-md-12">
                <div class="card">
                    <div class="card-header card-body table-border-style">
                        <h5><?php echo e(__('Announcement List')); ?></h5>
                    </div>
                    <div class="card-body">
                        <div class="table-responsive">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th><?php echo e(__('Title')); ?></th>
                                        <th><?php echo e(__('Start Date')); ?></th>
                                        <th><?php echo e(__('End Date')); ?></th>
                                        <th><?php echo e(__('Description')); ?></th>
                                    </tr>
                                </thead>
                                <tbody class="list">
                                    <?php $__currentLoopData = $announcements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $announcement): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($announcement->title); ?></td>
                                            <td><?php echo e(\Auth::user()->dateFormat($announcement->start_date)); ?></td>
                                            <td><?php echo e(\Auth::user()->dateFormat($announcement->end_date)); ?></td>
                                            <td><?php echo e($announcement->description); ?></td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    <?php else: ?>
        <div class="row">
            <div class="col-xl-12 mt-4">
                <div class="hris-container">
                    <div class="p-4 hris-box" style="background: #F0F2F5; margin-bottom: 25px;">
                        <div class="d-flex justify-content-between">
                            <div>
                                <h3 class="h5 text-dark font-weight-semibold summary-text">Summary</h3>
                            </div>
                            <div class="d-flex justify-content-end align-items-center gap-3 mt-3 mt-lg-0">
                                <a href="<?php echo e(route('employee.create')); ?>" data-size="xl" data-url=""
                                    data-ajax-popup="true"
                                    data-bs-toggle="tooltip" title="<?php echo e(__('Create')); ?>"
                                    data-title="<?php echo e(__('Create Product & Service')); ?>"
                                    class="btn btn-outline-primary-dark d-flex align-items-center mr-3">
                                    <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"
                                        xmlns="http://www.w3.org/2000/svg">
                                        <path d="M12 5V19" stroke="currentColor" stroke-width="2" stroke-linecap="round"
                                            stroke-linejoin="round" />
                                        <path d="M5 12H19" stroke="currentColor" stroke-width="2" stroke-linecap="round"
                                            stroke-linejoin="round" />
                                    </svg>
                                    <span class="ms-2">Create Employee</span>
                                </a>
                                <a href="<?php echo e(route('job.create')); ?>" data-size="xl" data-url="" data-ajax-popup="true"
                                    data-bs-toggle="tooltip" title="<?php echo e(__('Create')); ?>"
                                    data-title="<?php echo e(__('Create Product & Service')); ?>"
                                    class="btn btn-outline-dark d-flex align-items-center">
                                    <svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor"
                                        xmlns="http://www.w3.org/2000/svg">
                                        <path d="M12 5V19" stroke="currentColor" stroke-width="2" stroke-linecap="round"
                                            stroke-linejoin="round" />
                                        <path d="M5 12H19" stroke="currentColor" stroke-width="2" stroke-linecap="round"
                                            stroke-linejoin="round" />
                                    </svg>
                                    <span class="ms-2">Create Job</span>
                                </a>
                            </div>
                        </div>
                        <div class="mt-4">
                            <div class="row g-4">
                                <div class="col-lg-4 col-md-6">
                                    <a href="" class="card border-0 bg-white shadow-sm text-decoration-none">
                                        <div class="card-body d-flex flex-column justify-content-between p-4">
                                            <div class="d-flex align-items-center text-sm text-muted">
                                                <span class="p-2 blue-color rounded-circle">
                                                    <img src="<?php echo e(asset('assets/images/svg/product.svg')); ?>" class="w-4 h-4"
                                                        alt="Employee Icon" />
                                                </span>
                                            </div>
                                            <dl class="mt-3 total-box">
                                                <dt class="h2 blue-text font-weight-bold">
                                                    <?php echo e(\Auth::user()->priceFormat($accountBalance)); ?>

                                                </dt>
                                                <dd class="mt-2 total-text">Total Account balance</dd>
                                            </dl>
                                        </div>
                                    </a>
                                </div>
                                <div class="col-lg-4 col-md-6">
                                    <a href="" class="card border-0 bg-white shadow-sm text-decoration-none">
                                        <div class="card-body d-flex flex-column justify-content-between p-4">
                                            <div class="d-flex align-items-center text-sm text-muted">
                                                <span class="p-2 orange-color rounded-circle">
                                                    <img src="<?php echo e(asset('assets/images/svg/sales.svg')); ?>" class="w-4 h-4"
                                                        alt="Employee Icon" />
                                                </span>
                                            </div>
                                            <dl class="mt-3 total-box">
                                                <dt class="h2 orange-text font-weight-bold">
                                                    <?php echo e($countTicket); ?>

                                                </dt>
                                                <dd class="mt-2 total-text">Total Ticket</dd>
                                            </dl>
                                        </div>
                                    </a>
                                </div>
                                <div class="col-lg-4 col-md-6">
                                    <a href="" class="card border-0 bg-white shadow-sm text-decoration-none">
                                        <div class="card-body d-flex flex-column justify-content-between p-4">
                                            <div class="d-flex align-items-center text-sm text-muted">
                                                <span class="p-2 green-color rounded-circle">
                                                    <img src="<?php echo e(asset('assets/images/svg/customer.svg')); ?>" class="w-4 h-4"
                                                        alt="Employee Icon" />
                                                </span>
                                            </div>
                                            <dl class="mt-3 total-box">
                                                <dt class="h2 green-text font-weight-bold">
                                                    <?php echo e($countUser + $countEmployee); ?>

                                                </dt>
                                                <dd class="mt-2 total-text">Total Staff</dd>
                                            </dl>
                                        </div>
                                    </a>
                                </div>
                                <div class="col-lg-4 col-md-6">
                                    <a href="" class="card border-0 bg-white shadow-sm text-decoration-none">
                                        <div class="card-body d-flex flex-column justify-content-between p-4">
                                            <div class="d-flex align-items-center text-sm text-muted">
                                                <span class="p-2 red-color rounded-circle">
                                                    <img src="<?php echo e(asset('assets/images/svg/invoice.svg')); ?>" class="w-4 h-4"
                                                        alt="Employee Icon" />
                                                </span>
                                            </div>
                                            <dl class="mt-3 total-box">
                                                <dt class="h2 red-text font-weight-bold">
                                                    <?php echo e($activeJob + $inActiveJOb); ?>

                                                </dt>
                                                <dd class="mt-2 total-text">Total Jobs</dd>
                                            </dl>
                                        </div>
                                    </a>
                                </div>
                                <div class="col-lg-4 col-md-6">
                                    <a href="" class="card border-0 bg-white shadow-sm text-decoration-none">
                                        <div class="card-body d-flex flex-column justify-content-between p-4">
                                            <div class="d-flex align-items-center text-sm text-muted">
                                                <span class="p-2 red-color rounded-circle">
                                                    <img src="<?php echo e(asset('assets/images/svg/invoice.svg')); ?>" class="w-4 h-4"
                                                        alt="Employee Icon" />
                                                </span>
                                            </div>
                                            <dl class="mt-3 total-box">
                                                <dt class="h2 red-text font-weight-bold">
                                                    <?php echo e($activeJob); ?>

                                                </dt>
                                                <dd class="mt-2 total-text">Total Active Jobs</dd>
                                            </dl>
                                        </div>
                                    </a>
                                </div>
                                <div class="col-lg-4 col-md-6">
                                    <a href="" class="card border-0 bg-white shadow-sm text-decoration-none">
                                        <div class="card-body d-flex flex-column justify-content-between p-4">
                                            <div class="d-flex align-items-center text-sm text-muted">
                                                <span class="p-2 red-color rounded-circle">
                                                    <img src="<?php echo e(asset('assets/images/svg/invoice.svg')); ?>" class="w-4 h-4"
                                                        alt="Employee Icon" />
                                                </span>
                                            </div>
                                            <dl class="mt-3 total-box">
                                                <dt class="h2 red-text font-weight-bold">
                                                    <?php echo e($inActiveJOb); ?>

                                                </dt>
                                                <dd class="mt-2 total-text">Total Inactive Jobs</dd>
                                            </dl>
                                        </div>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>



        <div class="row">
            <div class="col-xl-5">

                <div class="card">
                    <div class="card-header card-body table-border-style">
                        <h5><?php echo e(__('Meeting schedule')); ?></h5>
                    </div>
                    <div class="card-body" style="height: 324px; overflow:auto">
                        <div class="table-responsive">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th><?php echo e(__('Title')); ?></th>
                                        <th><?php echo e(__('Date')); ?></th>
                                        <th><?php echo e(__('Time')); ?></th>
                                    </tr>
                                </thead>
                                <tbody class="list">
                                    <?php $__currentLoopData = $meetings; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $meeting): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($meeting->title); ?></td>
                                            <td><?php echo e(\Auth::user()->dateFormat($meeting->date)); ?></td>
                                            <td><?php echo e(\Auth::user()->timeFormat($meeting->time)); ?></td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>

                <div class="card">
                    <div class="card-header card-body table-border-style">
                        <h5><?php echo e(__("Today's Not Clock In")); ?></h5>
                    </div>
                    <div class="card-body" style="height: 324px; overflow:auto">
                        <div class="table-responsive">
                            <table class="table">
                                <thead>
                                    <tr>
                                        <th><?php echo e(__('Name')); ?></th>
                                        <th><?php echo e(__('Status')); ?></th>
                                    </tr>
                                </thead>
                                <tbody class="list">
                                    <?php $__currentLoopData = $notClockIns; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notClockIn): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($notClockIn->name); ?></td>
                                            <td><span class="absent-btn"><?php echo e(__('Absent')); ?></span></td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                </div>
                <div class="col-xl-7">
                    <div class="card">
                        <div class="card-header">
                            <div class="row">
                                <div class="col-lg-6">
                                    <h5><?php echo e(__('Calendar')); ?></h5>
                                    <input type="hidden" id="path_admin" value="<?php echo e(url('/')); ?>">
                                </div>
                                <div class="col-lg-6">
                                    
                                    <label for=""></label>
                                    <?php if(isset($setting['is_enabled']) && $setting['is_enabled'] == 'on'): ?>
                                        <select class="form-control" name="calender_type" id="calender_type"
                                            style="float: right;width: 155px;" onchange="get_data()">
                                            <option value="google_calender"><?php echo e(__('Google Calendar')); ?></option>
                                            <option value="local_calender" selected="true">
                                                <?php echo e(__('Local Calendar')); ?>

                                            </option>
                                        </select>
                                    <?php endif; ?>
                                    
                                </div>
                            </div>
                        </div>
                        <div class="card-body card-635 ">
                            <div id='calendar' class='calendar'></div>
                        </div>
                    </div>
            </div>
        </div>

                <div class="row">
                    <?php if(\Auth::user()->type == 'company'): ?>
                        <div class="col-xl-12 mt-4">
                            <div class="card">
                                <div class="card-header card-body table-border-style">
                                    <h5><?php echo e(__('Announcement List')); ?></h5>
                                </div>
                                <div class="card-body" style="height: 324px; overflow:auto">
                                    <div class="table-responsive">
                                        <table class="table">
                                            <thead>
                                                <tr>
                                                    <th><?php echo e(__('Title')); ?></th>
                                                    <th><?php echo e(__('Start Date')); ?></th>
                                                    <th><?php echo e(__('End Date')); ?></th>
                                                    <th><?php echo e(__('Description')); ?></th>
                                                </tr>
                                            </thead>
                                            <tbody class="list">
                                                <?php $__currentLoopData = $announcements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $announcement): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <tr>
                                                        <td><?php echo e($announcement->title); ?></td>
                                                        <td><?php echo e(\Auth::user()->dateFormat($announcement->start_date)); ?></td>
                                                        <td><?php echo e(\Auth::user()->dateFormat($announcement->end_date)); ?></td>
                                                        <td><?php echo e($announcement->description); ?></td>
                                                    </tr>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php endif; ?>
                </div>


                <?php if(\Auth::user()->type != 'company'): ?>
                    <div class="col-xl-12 col-lg-12 col-md-12">
                        <div class="card">
                            <div class="card-header card-body table-border-style">
                                <h5><?php echo e(__('Announcement List')); ?></h5>
                            </div>
                            <div class="card-body" style="height: 270px; overflow:auto">
                                <div class="table-responsive">
                                    <table class="table">
                                        <thead>
                                            <tr>
                                                <th><?php echo e(__('Title')); ?></th>
                                                <th><?php echo e(__('Start Date')); ?></th>
                                                <th><?php echo e(__('End Date')); ?></th>
                                                <th><?php echo e(__('Description')); ?></th>
                                            </tr>
                                        </thead>
                                        <tbody class="list">
                                            <?php $__currentLoopData = $announcements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $announcement): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <tr>
                                                    <td><?php echo e($announcement->title); ?></td>
                                                    <td><?php echo e(\Auth::user()->dateFormat($announcement->start_date)); ?></td>
                                                    <td><?php echo e(\Auth::user()->dateFormat($announcement->end_date)); ?></td>
                                                    <td><?php echo e($announcement->description); ?></td>
                                                </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                <?php endif; ?>
    <?php endif; ?>
    </div>
<?php $__env->stopSection(); ?>



    <?php $__env->startPush('script-page'); ?>
        <script src="<?php echo e(asset('assets/js/plugins/main.min.js')); ?>"></script>
        <script src="<?php echo e(asset('assets/js/plugins/apexcharts.min.js')); ?>"></script>

        <?php if(Auth::user()->type == 'company' || Auth::user()->type == 'hr'): ?>
            <script type="text/javascript">
                $(document).ready(function() {
                    get_data();
                });

                function get_data() {
                    var calender_type = $('#calender_type :selected').val();

                    $('#calendar').removeClass('local_calender');
                    $('#calendar').removeClass('google_calender');
                    if (calender_type == undefined) {
                        calender_type = 'local_calender';
                    }
                    $('#calendar').addClass(calender_type);

                    $.ajax({
                        url: $("#path_admin").val() + "/event/get_event_data",
                        method: "POST",
                        data: {
                            "_token": "<?php echo e(csrf_token()); ?>",
                            'calender_type': calender_type
                        },
                        success: function(data) {

                            var etitle;
                            var etype;
                            var etypeclass;
                            var calendar = new FullCalendar.Calendar(document.getElementById('calendar'), {
                                headerToolbar: {
                                    left: 'prev,next today',
                                    center: 'title',
                                    right: 'dayGridMonth,timeGridWeek,timeGridDay'
                                },
                                buttonText: {
                                    timeGridDay: "<?php echo e(__('Day')); ?>",
                                    timeGridWeek: "<?php echo e(__('Week')); ?>",
                                    dayGridMonth: "<?php echo e(__('Month')); ?>"
                                },
                                // slotLabelFormat: {
                                //     hour: '2-digit',
                                //     minute: '2-digit',
                                //     hour12: false,
                                // },
                                themeSystem: 'bootstrap',
                                slotDuration: '00:10:00',
                                allDaySlot: true,
                                navLinks: true,
                                droppable: true,
                                selectable: true,
                                selectMirror: true,
                                editable: true,
                                dayMaxEvents: true,
                                handleWindowResize: true,
                                events: data,
                                // height: 'auto',
                                // timeFormat: 'H(:mm)',
                            });
                            calendar.render();
                        }
                    });
                };
            </script>
        <?php else: ?>
            <script>
                $(document).ready(function() {
                    get_data();
                });

                function get_data() {
                    var calender_type = $('#calender_type :selected').val();

                    $('#event_calendar').removeClass('local_calender');
                    $('#event_calendar').removeClass('google_calender');
                    if (calender_type == undefined) {
                        calender_type = 'local_calender';
                    }
                    $('#event_calendar').addClass(calender_type);

                    $.ajax({
                        url: $("#path_admin").val() + "/event/get_event_data",
                        method: "POST",
                        data: {
                            "_token": "<?php echo e(csrf_token()); ?>",
                            'calender_type': calender_type
                        },
                        success: function(data) {
                            var etitle;
                            var etype;
                            var etypeclass;
                            var calendar = new FullCalendar.Calendar(document.getElementById(
                                'event_calendar'), {
                                headerToolbar: {
                                    left: 'prev,next today',
                                    center: 'title',
                                    right: 'dayGridMonth,timeGridWeek,timeGridDay'
                                },
                                buttonText: {
                                    timeGridDay: "<?php echo e(__('Day')); ?>",
                                    timeGridWeek: "<?php echo e(__('Week')); ?>",
                                    dayGridMonth: "<?php echo e(__('Month')); ?>"
                                },
                                // slotLabelFormat: {
                                //     hour: '2-digit',
                                //     minute: '2-digit',
                                //     hour12: false,
                                // },
                                themeSystem: 'bootstrap',
                                slotDuration: '00:10:00',
                                allDaySlot: true,
                                navLinks: true,
                                droppable: true,
                                selectable: true,
                                selectMirror: true,
                                editable: true,
                                dayMaxEvents: true,
                                handleWindowResize: true,
                                events: data,
                                // height: 'auto',
                                // timeFormat: 'H(:mm)',

                            });

                            calendar.render();
                        }
                    });
                        };
                    </script>
        <?php endif; ?>

    <?php $__env->stopPush(); ?>
<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/payraty/hris/resources/views/dashboard/dashboard.blade.php ENDPATH**/ ?>