Viewing file: b9f18aa82e1e47fd9f5212fe79679b092136984d.php (4.24 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('content'); ?>
<style>
body { margin: 0; padding: 0; font-family: Arial, Helvetica Neue, Helvetica, sans-serif; font-size: 14px; }
#top { background: #eee; border-bottom: 1px solid #ddd; padding: 0 10px; line-height: 40px; font-size: 12px; }
#calendar { max-width: 1100px; margin: 40px auto; padding: 0 10px; }
</style>
<div class="mainSection-title"> <div class="row"> <div class="col-12"> <div class="d-flex justify-content-between align-items-center flex-wrap gr-15" > <div class="d-flex flex-column"> <h4><?php echo e(get_phrase('Noticeboard calendar')); ?></h4> <ul class="d-flex align-items-center eBreadcrumb-2"> <li><a href="#"><?php echo e(get_phrase('Home')); ?></a></li> <li><a href="#"><?php echo e(get_phrase('Back Office')); ?></a></li> <li><a href="#"><?php echo e(get_phrase('Noticeboard')); ?></a></li> </ul> </div> <div class="export-btn-area"> <a href="javascript:;" class="export_btn" onclick="rightModal('<?php echo e(route('admin.noticeboard.open_modal')); ?>', '<?php echo e(get_phrase('Add New Notice')); ?>')"><i class="bi bi-plus"></i><?php echo e(get_phrase('Add New Notice')); ?></a> </div> </div> </div> </div> </div>
<div class="row"> <div class="col-12"> <div class="eSection-wrap"> <div class="row"> <div class="col-12 noticeboard_content"> <?php echo $__env->make('admin.noticeboard.list', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?>
<script type="text/javascript"> "use strict";
document.addEventListener('DOMContentLoaded', function() { var initialLocaleCode = 'en'; var localeSelectorEl = document.getElementById('locale-selector'); var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, { headerToolbar: { left: 'prev,next today', center: 'title', right: 'dayGridMonth,timeGridWeek,timeGridDay,listMonth' }, initialDate: '<?php echo e(date('Y-m-d')); ?>', navLinks: true, // can click day/week names to navigate views selectable: true, selectMirror: true, select: function(arg) { rightModal('<?php echo e(route('admin.noticeboard.open_modal')); ?>', 'Add New Notice') }, eventClick: function(arg) { let url = "<?php echo e(route('admin.edit.noticeboard', ['id' => ":arg.event.id"])); ?>"; url = url.replace(":arg.event.id", arg.event.id); rightModal(url, 'Update notice')
// if (confirm('Are you sure you want to delete this event?')) { // arg.event.remove() // } }, editable: false, dayMaxEvents: true, // allow "more" link when too many events events: <?php echo $events; ?> });
calendar.render();
// build the locale selector's options calendar.getAvailableLocaleCodes().forEach(function(localeCode) { var optionEl = document.createElement('option'); optionEl.value = localeCode; optionEl.selected = localeCode == initialLocaleCode; optionEl.innerText = localeCode; localeSelectorEl.appendChild(optionEl); });
// when the selected option changes, dynamically change the calendar option localeSelectorEl.addEventListener('change', function() { if (this.value) { calendar.setOption('locale', this.value); } });
});
</script>
<?php echo $__env->make('admin.navigation', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/school.picotech.app/public_html/resources/views/admin/noticeboard/noticeboard.blade.php ENDPATH**/ ?>
|