Viewing file: 245608056372ed70786af565d9ff4221ec405aee.php (56.86 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
use App\Models\Routine;
use App\Models\Session;
use App\Models\Section;
use App\Models\Subject;
use App\Models\User;
use App\Models\ClassRoom;
$active_session = get_school_settings(auth()->user()->school_id)->value('running_session');
?>
<?php $__env->startSection('content'); ?>
<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('Routines')); ?></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('Academic')); ?></a></li>
<li><a href="#"><?php echo e(get_phrase('Routines')); ?></a></li>
</ul>
</div>
<div class="export-btn-area">
<a href="javascript:;" class="export_btn" onclick="rightModal('<?php echo e(route('admin.routine.open_modal')); ?>', '<?php echo e(get_phrase('Add class routine')); ?>')"><?php echo e(get_phrase('Add class routine')); ?></a>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="eSection-wrap-2">
<form method="GET" class="d-block ajaxForm" action="<?php echo e(route('admin.routine.routine_list')); ?>">
<div class="row mt-3">
<div class="col-md-3"></div>
<div class="col-md-2">
<select name="class_id" id="class_id" class="form-select eForm-select eChoice-multiple-with-remove" required onchange="classWiseSection(this.value)">
<option value=""><?php echo e(get_phrase('Select a class')); ?></option>
<?php $__currentLoopData = $classes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $class): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($class->id); ?>" <?php echo e($class_id == $class->id ? 'selected':''); ?>><?php echo e($class->name); ?></option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</select>
</div>
<div class="col-md-3">
<select name="section_id" id="section_id" class="form-select eForm-select eChoice-multiple-with-remove" required >
<?php $sections = Section::where(['class_id' => $class_id])->get(); ?>
<?php foreach($sections as $section): ?>
<option value="<?php echo e($section->id); ?>" <?php echo e($section_id == $section->id ? 'selected':''); ?>><?php echo e($section->name); ?></option>
<?php endforeach; ?>
</select>
</div>
<div class="col-md-2">
<button class="eBtn eBtn btn-secondary" type="submit" id = "filter_routine"><?php echo e(get_phrase('Filter')); ?></button>
</div>
<div class="col-md-2 position-relative">
<button class="eBtn-3 dropdown-toggle float-end" type="button" id="defaultDropdown" data-bs-toggle="dropdown" data-bs-auto-close="true" aria-expanded="false">
<span class="pr-10">
<svg xmlns="http://www.w3.org/2000/svg" width="12.31" height="10.77" viewBox="0 0 10.771 12.31">
<path id="arrow-right-from-bracket-solid" d="M3.847,1.539H2.308a.769.769,0,0,0-.769.769V8.463a.769.769,0,0,0,.769.769H3.847a.769.769,0,0,1,0,1.539H2.308A2.308,2.308,0,0,1,0,8.463V2.308A2.308,2.308,0,0,1,2.308,0H3.847a.769.769,0,1,1,0,1.539Zm8.237,4.39L9.007,9.007A.769.769,0,0,1,7.919,7.919L9.685,6.155H4.616a.769.769,0,0,1,0-1.539H9.685L7.92,2.852A.769.769,0,0,1,9.008,1.764l3.078,3.078A.77.77,0,0,1,12.084,5.929Z" transform="translate(0 12.31) rotate(-90)" fill="#00a3ff"></path>
</svg>
</span>
<?php echo e(get_phrase('Export')); ?>
</button>
<ul class="dropdown-menu dropdown-menu-end eDropdown-menu-2">
<li>
<a class="dropdown-item" id="pdf" href="javascript:;" onclick="Export()"><?php echo e(get_phrase('PDF')); ?></a>
</li>
<li>
<a class="dropdown-item" id="print" href="javascript:;" onclick="printableDiv('class_routines')"><?php echo e(get_phrase('Print')); ?></a>
</li>
</ul>
</div>
</div>
</form>
<ul class="class_routine_content pt-4" id="class_routines">
<li class="classRoutines-item d-flex align-items-center">
<h4 class="title"><?php echo e(get_phrase('Saturday')); ?></h4>
<div class="classTime-items d-flex">
<?php $perday_routines = Routine::where(['class_id' => $class_id, 'section_id' => $section_id, 'session_id' => $active_session,'school_id' => auth()->user()->school_id, 'day' => 'saturday'])->get();
foreach($perday_routines as $perday_routine) { ?>
<div class="classTime-item">
<?php $subject = Subject::find($perday_routine['subject_id']); ?>
<div class="d-flex">
<h4 class="subjectName"><?php echo e(isset($subject->name)?$subject->name:''); ?></h4>
<div class="btn-group ms-auto">
<button type="button" class="btn" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-three-dots-vertical"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li>
<a class="text-16px ps-2" href="javascript:;" onclick="rightModal('<?php echo e(route('admin.routine_edit_modal', ['id' => $perday_routine['id']])); ?>', '<?php echo e(get_phrase('Edit class routine')); ?>')"><?php echo e(get_phrase('Edit')); ?>
</a>
</li>
<li>
<a class="text-16px ps-2" href="javascript:;" onclick="confirmModal('<?php echo e(route('admin.routine.delete', ['id' => $perday_routine['id']])); ?>', 'undefined');"><?php echo e(get_phrase('Delete')); ?></a>
</li>
</ul>
</div>
</div>
<ul class="classDetails">
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16.03"
height="16.03"
viewBox="0 0 11.777 11.777"
>
<path
id="schedule_FILL0_wght600_GRAD0_opsz24"
d="M8.679,9.634a.605.605,0,0,0,.464.2.674.674,0,0,0,.492-.211.679.679,0,0,0,0-.956L8.088,7.119V5.306A.641.641,0,0,0,7.9,4.834a.658.658,0,0,0-.485-.189.643.643,0,0,0-.485.2.662.662,0,0,0-.19.478V7.372a.787.787,0,0,0,.056.3.7.7,0,0,0,.155.239ZM7.414,13.3a5.724,5.724,0,0,1-2.3-.464,5.909,5.909,0,0,1-3.12-3.12,5.724,5.724,0,0,1-.464-2.3,5.724,5.724,0,0,1,.464-2.3,5.909,5.909,0,0,1,3.12-3.12,5.724,5.724,0,0,1,2.3-.464,5.724,5.724,0,0,1,2.3.464,5.9,5.9,0,0,1,3.12,3.12,5.724,5.724,0,0,1,.464,2.3,5.724,5.724,0,0,1-.464,2.3,5.9,5.9,0,0,1-3.12,3.12A5.724,5.724,0,0,1,7.414,13.3Zm0-5.889Zm0,4.4a4.253,4.253,0,0,0,3.113-1.279,4.234,4.234,0,0,0,1.286-3.12,4.234,4.234,0,0,0-1.286-3.12A4.253,4.253,0,0,0,7.414,3.015,4.251,4.251,0,0,0,4.3,4.294a4.233,4.233,0,0,0-1.286,3.12A4.233,4.233,0,0,0,4.3,10.534,4.251,4.251,0,0,0,7.414,11.813Z"
transform="translate(-1.525 -1.525)"
fill="#00A3FF"
/>
</svg>
</div>
<p class="info"><?php echo e($perday_routine['starting_hour'].':'.$perday_routine['starting_minute'].' - '.$perday_routine['ending_hour'].':'.$perday_routine['ending_minute']); ?></p>
</li>
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="11.33"
height="14.71"
viewBox="0 0 13.275 14.944"
>
<g
id="user_icon"
data-name="user icon"
transform="translate(-1368.531 -147.15)"
>
<g
id="Ellipse_1"
data-name="Ellipse 1"
transform="translate(1370.609 147.15)"
fill="none"
stroke="#00A3FF"
stroke-width="2"
>
<ellipse
cx="4.576"
cy="4.435"
rx="4.576"
ry="4.435"
stroke="none"
/>
<ellipse
cx="4.576"
cy="4.435"
rx="3.576"
ry="3.435"
fill="none"
/>
</g>
<path
id="Path_41"
data-name="Path 41"
d="M1485.186,311.087a5.818,5.818,0,0,1,5.856-4.283,5.534,5.534,0,0,1,5.466,4.283"
transform="translate(-115.686 -149.241)"
fill="none"
stroke="#00A3FF"
stroke-width="2"
/>
</g>
</svg>
</div>
<?php $teacher = User::find($perday_routine['teacher_id']); ?>
<p class="info"><?php echo e(isset($teacher->name)?$teacher->name:''); ?></p>
</li>
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="18.641"
height="16.589"
viewBox="0 0 18.641 16.589"
>
<path
id="house_FILL0_wght400_GRAD0_opsz48"
d="M13.263,23.089H8.311a.72.72,0,0,1-.743-.743v-7.18H5.563a.35.35,0,0,1-.347-.235.329.329,0,0,1,.1-.409L14.006,6.7a.718.718,0,0,1,.99,0l4.457,3.937V8.481a.72.72,0,0,1,.743-.743h.5a.72.72,0,0,1,.743.743v3.986l2.253,2.055a.363.363,0,0,1-.248.644H21.434v7.18a.72.72,0,0,1-.743.743H15.739V17.146H13.263ZM9.054,21.6h2.724V16.4a.72.72,0,0,1,.743-.743h3.961a.72.72,0,0,1,.743.743v5.2h2.724V13.16L14.5,8.208,9.054,13.16ZM12.4,12.937h4.209a1.689,1.689,0,0,0-.631-1.349,2.3,2.3,0,0,0-2.946,0A1.689,1.689,0,0,0,12.4,12.937Zm.124,2.724h0Z"
transform="translate(-5.183 -6.5)"
fill="#00a3ff"
/>
</svg>
</div>
<?php $class_room = ClassRoom::find($perday_routine['room_id']); ?>
<p class="info"><?php echo e(isset($class_room->name)?$class_room->name:''); ?></p>
</li>
</ul>
</div>
<?php } ?>
</div>
</li>
<li class="classRoutines-item d-flex align-items-center">
<h4 class="title"><?php echo e(get_phrase('Sunday')); ?></h4>
<div class="classTime-items d-flex">
<?php $perday_routines = Routine::where(['class_id' => $class_id, 'section_id' => $section_id, 'session_id' => $active_session,'school_id' => auth()->user()->school_id, 'day' => 'sunday'])->get();
foreach($perday_routines as $perday_routine) { ?>
<div class="classTime-item">
<?php $subject = Subject::find($perday_routine['subject_id']); ?>
<div class="d-flex">
<h4 class="subjectName"><?php echo e(isset($subject->name)?$subject->name:''); ?></h4>
<div class="btn-group ms-auto">
<button type="button" class="btn" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-three-dots-vertical"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li>
<a class="text-16px ps-2" href="javascript:;" onclick="rightModal('<?php echo e(route('admin.routine_edit_modal', ['id' => $perday_routine['id']])); ?>', '<?php echo e(get_phrase('Edit class routine')); ?>')"><?php echo e(get_phrase('Edit')); ?>
</a>
</li>
<li>
<a class="text-16px ps-2" href="javascript:;" onclick="confirmModal('<?php echo e(route('admin.routine.delete', ['id' => $perday_routine['id']])); ?>', 'undefined');"><?php echo e(get_phrase('Delete')); ?></a>
</li>
</ul>
</div>
</div>
<ul class="classDetails">
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16.03"
height="16.03"
viewBox="0 0 11.777 11.777"
>
<path
id="schedule_FILL0_wght600_GRAD0_opsz24"
d="M8.679,9.634a.605.605,0,0,0,.464.2.674.674,0,0,0,.492-.211.679.679,0,0,0,0-.956L8.088,7.119V5.306A.641.641,0,0,0,7.9,4.834a.658.658,0,0,0-.485-.189.643.643,0,0,0-.485.2.662.662,0,0,0-.19.478V7.372a.787.787,0,0,0,.056.3.7.7,0,0,0,.155.239ZM7.414,13.3a5.724,5.724,0,0,1-2.3-.464,5.909,5.909,0,0,1-3.12-3.12,5.724,5.724,0,0,1-.464-2.3,5.724,5.724,0,0,1,.464-2.3,5.909,5.909,0,0,1,3.12-3.12,5.724,5.724,0,0,1,2.3-.464,5.724,5.724,0,0,1,2.3.464,5.9,5.9,0,0,1,3.12,3.12,5.724,5.724,0,0,1,.464,2.3,5.724,5.724,0,0,1-.464,2.3,5.9,5.9,0,0,1-3.12,3.12A5.724,5.724,0,0,1,7.414,13.3Zm0-5.889Zm0,4.4a4.253,4.253,0,0,0,3.113-1.279,4.234,4.234,0,0,0,1.286-3.12,4.234,4.234,0,0,0-1.286-3.12A4.253,4.253,0,0,0,7.414,3.015,4.251,4.251,0,0,0,4.3,4.294a4.233,4.233,0,0,0-1.286,3.12A4.233,4.233,0,0,0,4.3,10.534,4.251,4.251,0,0,0,7.414,11.813Z"
transform="translate(-1.525 -1.525)"
fill="#00A3FF"
/>
</svg>
</div>
<p class="info"><?php echo e($perday_routine['starting_hour'].':'.$perday_routine['starting_minute'].' - '.$perday_routine['ending_hour'].':'.$perday_routine['ending_minute']); ?></p>
</li>
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="11.33"
height="14.71"
viewBox="0 0 13.275 14.944"
>
<g
id="user_icon"
data-name="user icon"
transform="translate(-1368.531 -147.15)"
>
<g
id="Ellipse_1"
data-name="Ellipse 1"
transform="translate(1370.609 147.15)"
fill="none"
stroke="#00A3FF"
stroke-width="2"
>
<ellipse
cx="4.576"
cy="4.435"
rx="4.576"
ry="4.435"
stroke="none"
/>
<ellipse
cx="4.576"
cy="4.435"
rx="3.576"
ry="3.435"
fill="none"
/>
</g>
<path
id="Path_41"
data-name="Path 41"
d="M1485.186,311.087a5.818,5.818,0,0,1,5.856-4.283,5.534,5.534,0,0,1,5.466,4.283"
transform="translate(-115.686 -149.241)"
fill="none"
stroke="#00A3FF"
stroke-width="2"
/>
</g>
</svg>
</div>
<?php $teacher = User::find($perday_routine['teacher_id']); ?>
<p class="info"><?php echo e($teacher->name); ?></p>
</li>
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="18.641"
height="16.589"
viewBox="0 0 18.641 16.589"
>
<path
id="house_FILL0_wght400_GRAD0_opsz48"
d="M13.263,23.089H8.311a.72.72,0,0,1-.743-.743v-7.18H5.563a.35.35,0,0,1-.347-.235.329.329,0,0,1,.1-.409L14.006,6.7a.718.718,0,0,1,.99,0l4.457,3.937V8.481a.72.72,0,0,1,.743-.743h.5a.72.72,0,0,1,.743.743v3.986l2.253,2.055a.363.363,0,0,1-.248.644H21.434v7.18a.72.72,0,0,1-.743.743H15.739V17.146H13.263ZM9.054,21.6h2.724V16.4a.72.72,0,0,1,.743-.743h3.961a.72.72,0,0,1,.743.743v5.2h2.724V13.16L14.5,8.208,9.054,13.16ZM12.4,12.937h4.209a1.689,1.689,0,0,0-.631-1.349,2.3,2.3,0,0,0-2.946,0A1.689,1.689,0,0,0,12.4,12.937Zm.124,2.724h0Z"
transform="translate(-5.183 -6.5)"
fill="#00a3ff"
/>
</svg>
</div>
<?php $class_room = ClassRoom::find($perday_routine['room_id']); ?>
<p class="info"><?php echo e(isset($class_room->name)?$class_room->name:''); ?></p>
</li>
</ul>
</div>
<?php } ?>
</div>
</li>
<li class="classRoutines-item d-flex align-items-center">
<h4 class="title"><?php echo e(get_phrase('Monday')); ?></h4>
<div class="classTime-items d-flex">
<?php $perday_routines = Routine::where(['class_id' => $class_id, 'section_id' => $section_id, 'session_id' => $active_session,'school_id' => auth()->user()->school_id, 'day' => 'monday'])->get();
foreach($perday_routines as $perday_routine) { ?>
<div class="classTime-item">
<?php $subject = Subject::find($perday_routine['subject_id']); ?>
<div class="d-flex">
<h4 class="subjectName"><?php echo e(isset($subject->name)?$subject->name:''); ?></h4>
<div class="btn-group ms-auto">
<button type="button" class="btn" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-three-dots-vertical"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li>
<a class="text-16px ps-2" href="javascript:;" onclick="rightModal('<?php echo e(route('admin.routine_edit_modal', ['id' => $perday_routine['id']])); ?>', '<?php echo e(get_phrase('Edit class routine')); ?>')"><?php echo e(get_phrase('Edit')); ?>
</a>
</li>
<li>
<a class="text-16px ps-2" href="javascript:;" onclick="confirmModal('<?php echo e(route('admin.routine.delete', ['id' => $perday_routine['id']])); ?>', 'undefined');"><?php echo e(get_phrase('Delete')); ?></a>
</li>
</ul>
</div>
</div>
<ul class="classDetails">
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16.03"
height="16.03"
viewBox="0 0 11.777 11.777"
>
<path
id="schedule_FILL0_wght600_GRAD0_opsz24"
d="M8.679,9.634a.605.605,0,0,0,.464.2.674.674,0,0,0,.492-.211.679.679,0,0,0,0-.956L8.088,7.119V5.306A.641.641,0,0,0,7.9,4.834a.658.658,0,0,0-.485-.189.643.643,0,0,0-.485.2.662.662,0,0,0-.19.478V7.372a.787.787,0,0,0,.056.3.7.7,0,0,0,.155.239ZM7.414,13.3a5.724,5.724,0,0,1-2.3-.464,5.909,5.909,0,0,1-3.12-3.12,5.724,5.724,0,0,1-.464-2.3,5.724,5.724,0,0,1,.464-2.3,5.909,5.909,0,0,1,3.12-3.12,5.724,5.724,0,0,1,2.3-.464,5.724,5.724,0,0,1,2.3.464,5.9,5.9,0,0,1,3.12,3.12,5.724,5.724,0,0,1,.464,2.3,5.724,5.724,0,0,1-.464,2.3,5.9,5.9,0,0,1-3.12,3.12A5.724,5.724,0,0,1,7.414,13.3Zm0-5.889Zm0,4.4a4.253,4.253,0,0,0,3.113-1.279,4.234,4.234,0,0,0,1.286-3.12,4.234,4.234,0,0,0-1.286-3.12A4.253,4.253,0,0,0,7.414,3.015,4.251,4.251,0,0,0,4.3,4.294a4.233,4.233,0,0,0-1.286,3.12A4.233,4.233,0,0,0,4.3,10.534,4.251,4.251,0,0,0,7.414,11.813Z"
transform="translate(-1.525 -1.525)"
fill="#00A3FF"
/>
</svg>
</div>
<p class="info"><?php echo e($perday_routine['starting_hour'].':'.$perday_routine['starting_minute'].' - '.$perday_routine['ending_hour'].':'.$perday_routine['ending_minute']); ?></p>
</li>
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="11.33"
height="14.71"
viewBox="0 0 13.275 14.944"
>
<g
id="user_icon"
data-name="user icon"
transform="translate(-1368.531 -147.15)"
>
<g
id="Ellipse_1"
data-name="Ellipse 1"
transform="translate(1370.609 147.15)"
fill="none"
stroke="#00A3FF"
stroke-width="2"
>
<ellipse
cx="4.576"
cy="4.435"
rx="4.576"
ry="4.435"
stroke="none"
/>
<ellipse
cx="4.576"
cy="4.435"
rx="3.576"
ry="3.435"
fill="none"
/>
</g>
<path
id="Path_41"
data-name="Path 41"
d="M1485.186,311.087a5.818,5.818,0,0,1,5.856-4.283,5.534,5.534,0,0,1,5.466,4.283"
transform="translate(-115.686 -149.241)"
fill="none"
stroke="#00A3FF"
stroke-width="2"
/>
</g>
</svg>
</div>
<?php $teacher = User::find($perday_routine['teacher_id']); ?>
<p class="info"><?php echo e(isset($teacher->name)?$teacher->name:''); ?></p>
</li>
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="18.641"
height="16.589"
viewBox="0 0 18.641 16.589"
>
<path
id="house_FILL0_wght400_GRAD0_opsz48"
d="M13.263,23.089H8.311a.72.72,0,0,1-.743-.743v-7.18H5.563a.35.35,0,0,1-.347-.235.329.329,0,0,1,.1-.409L14.006,6.7a.718.718,0,0,1,.99,0l4.457,3.937V8.481a.72.72,0,0,1,.743-.743h.5a.72.72,0,0,1,.743.743v3.986l2.253,2.055a.363.363,0,0,1-.248.644H21.434v7.18a.72.72,0,0,1-.743.743H15.739V17.146H13.263ZM9.054,21.6h2.724V16.4a.72.72,0,0,1,.743-.743h3.961a.72.72,0,0,1,.743.743v5.2h2.724V13.16L14.5,8.208,9.054,13.16ZM12.4,12.937h4.209a1.689,1.689,0,0,0-.631-1.349,2.3,2.3,0,0,0-2.946,0A1.689,1.689,0,0,0,12.4,12.937Zm.124,2.724h0Z"
transform="translate(-5.183 -6.5)"
fill="#00a3ff"
/>
</svg>
</div>
<?php $class_room = ClassRoom::find($perday_routine['room_id']); ?>
<p class="info"><?php echo e(isset($class_room->name)?$class_room->name:''); ?></p>
</li>
</ul>
</div>
<?php } ?>
</div>
</li>
<li class="classRoutines-item d-flex align-items-center">
<h4 class="title"><?php echo e(get_phrase('Tuesday')); ?></h4>
<div class="classTime-items d-flex">
<?php $perday_routines = Routine::where(['class_id' => $class_id, 'section_id' => $section_id, 'session_id' => $active_session,'school_id' => auth()->user()->school_id, 'day' => 'tuesday'])->get();
foreach($perday_routines as $perday_routine) { ?>
<div class="classTime-item">
<?php $subject = Subject::find($perday_routine['subject_id']); ?>
<div class="d-flex">
<h4 class="subjectName"><?php echo e(isset($subject->name)?$subject->name:''); ?></h4>
<div class="btn-group ms-auto">
<button type="button" class="btn" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-three-dots-vertical"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li>
<a class="text-16px ps-2" href="javascript:;" onclick="rightModal('<?php echo e(route('admin.routine_edit_modal', ['id' => $perday_routine['id']])); ?>', '<?php echo e(get_phrase('Edit class routine')); ?>')"><?php echo e(get_phrase('Edit')); ?>
</a>
</li>
<li>
<a class="text-16px ps-2" href="javascript:;" onclick="confirmModal('<?php echo e(route('admin.routine.delete', ['id' => $perday_routine['id']])); ?>', 'undefined');"><?php echo e(get_phrase('Delete')); ?></a>
</li>
</ul>
</div>
</div>
<ul class="classDetails">
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16.03"
height="16.03"
viewBox="0 0 11.777 11.777"
>
<path
id="schedule_FILL0_wght600_GRAD0_opsz24"
d="M8.679,9.634a.605.605,0,0,0,.464.2.674.674,0,0,0,.492-.211.679.679,0,0,0,0-.956L8.088,7.119V5.306A.641.641,0,0,0,7.9,4.834a.658.658,0,0,0-.485-.189.643.643,0,0,0-.485.2.662.662,0,0,0-.19.478V7.372a.787.787,0,0,0,.056.3.7.7,0,0,0,.155.239ZM7.414,13.3a5.724,5.724,0,0,1-2.3-.464,5.909,5.909,0,0,1-3.12-3.12,5.724,5.724,0,0,1-.464-2.3,5.724,5.724,0,0,1,.464-2.3,5.909,5.909,0,0,1,3.12-3.12,5.724,5.724,0,0,1,2.3-.464,5.724,5.724,0,0,1,2.3.464,5.9,5.9,0,0,1,3.12,3.12,5.724,5.724,0,0,1,.464,2.3,5.724,5.724,0,0,1-.464,2.3,5.9,5.9,0,0,1-3.12,3.12A5.724,5.724,0,0,1,7.414,13.3Zm0-5.889Zm0,4.4a4.253,4.253,0,0,0,3.113-1.279,4.234,4.234,0,0,0,1.286-3.12,4.234,4.234,0,0,0-1.286-3.12A4.253,4.253,0,0,0,7.414,3.015,4.251,4.251,0,0,0,4.3,4.294a4.233,4.233,0,0,0-1.286,3.12A4.233,4.233,0,0,0,4.3,10.534,4.251,4.251,0,0,0,7.414,11.813Z"
transform="translate(-1.525 -1.525)"
fill="#00A3FF"
/>
</svg>
</div>
<p class="info"><?php echo e($perday_routine['starting_hour'].':'.$perday_routine['starting_minute'].' - '.$perday_routine['ending_hour'].':'.$perday_routine['ending_minute']); ?></p>
</li>
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="11.33"
height="14.71"
viewBox="0 0 13.275 14.944"
>
<g
id="user_icon"
data-name="user icon"
transform="translate(-1368.531 -147.15)"
>
<g
id="Ellipse_1"
data-name="Ellipse 1"
transform="translate(1370.609 147.15)"
fill="none"
stroke="#00A3FF"
stroke-width="2"
>
<ellipse
cx="4.576"
cy="4.435"
rx="4.576"
ry="4.435"
stroke="none"
/>
<ellipse
cx="4.576"
cy="4.435"
rx="3.576"
ry="3.435"
fill="none"
/>
</g>
<path
id="Path_41"
data-name="Path 41"
d="M1485.186,311.087a5.818,5.818,0,0,1,5.856-4.283,5.534,5.534,0,0,1,5.466,4.283"
transform="translate(-115.686 -149.241)"
fill="none"
stroke="#00A3FF"
stroke-width="2"
/>
</g>
</svg>
</div>
<?php $teacher = User::find($perday_routine['teacher_id']); ?>
<p class="info"><?php echo e($teacher->name); ?></p>
</li>
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="18.641"
height="16.589"
viewBox="0 0 18.641 16.589"
>
<path
id="house_FILL0_wght400_GRAD0_opsz48"
d="M13.263,23.089H8.311a.72.72,0,0,1-.743-.743v-7.18H5.563a.35.35,0,0,1-.347-.235.329.329,0,0,1,.1-.409L14.006,6.7a.718.718,0,0,1,.99,0l4.457,3.937V8.481a.72.72,0,0,1,.743-.743h.5a.72.72,0,0,1,.743.743v3.986l2.253,2.055a.363.363,0,0,1-.248.644H21.434v7.18a.72.72,0,0,1-.743.743H15.739V17.146H13.263ZM9.054,21.6h2.724V16.4a.72.72,0,0,1,.743-.743h3.961a.72.72,0,0,1,.743.743v5.2h2.724V13.16L14.5,8.208,9.054,13.16ZM12.4,12.937h4.209a1.689,1.689,0,0,0-.631-1.349,2.3,2.3,0,0,0-2.946,0A1.689,1.689,0,0,0,12.4,12.937Zm.124,2.724h0Z"
transform="translate(-5.183 -6.5)"
fill="#00a3ff"
/>
</svg>
</div>
<?php $class_room = ClassRoom::find($perday_routine['room_id']); ?>
<p class="info"><?php echo e(isset($class_room->name)?$class_room->name:''); ?></p>
</li>
</ul>
</div>
<?php } ?>
</div>
</li>
<li class="classRoutines-item d-flex align-items-center">
<h4 class="title"><?php echo e(get_phrase('Wednesday')); ?></h4>
<div class="classTime-items d-flex">
<?php $perday_routines = Routine::where(['class_id' => $class_id, 'section_id' => $section_id, 'session_id' => $active_session,'school_id' => auth()->user()->school_id, 'day' => 'wednesday'])->get();
foreach($perday_routines as $perday_routine) { ?>
<div class="classTime-item">
<?php $subject = Subject::find($perday_routine['subject_id']); ?>
<div class="d-flex">
<h4 class="subjectName"><?php echo e(isset($subject->name )?$subject->name :''); ?></h4>
<div class="btn-group ms-auto">
<button type="button" class="btn" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-three-dots-vertical"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li>
<a class="text-16px ps-2" href="javascript:;" onclick="rightModal('<?php echo e(route('admin.routine_edit_modal', ['id' => $perday_routine['id']])); ?>', '<?php echo e(get_phrase('Edit class routine')); ?>')"><?php echo e(get_phrase('Edit')); ?>
</a>
</li>
<li>
<a class="text-16px ps-2" href="javascript:;" onclick="confirmModal('<?php echo e(route('admin.routine.delete', ['id' => $perday_routine['id']])); ?>', 'undefined');"><?php echo e(get_phrase('Delete')); ?></a>
</li>
</ul>
</div>
</div>
<ul class="classDetails">
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16.03"
height="16.03"
viewBox="0 0 11.777 11.777"
>
<path
id="schedule_FILL0_wght600_GRAD0_opsz24"
d="M8.679,9.634a.605.605,0,0,0,.464.2.674.674,0,0,0,.492-.211.679.679,0,0,0,0-.956L8.088,7.119V5.306A.641.641,0,0,0,7.9,4.834a.658.658,0,0,0-.485-.189.643.643,0,0,0-.485.2.662.662,0,0,0-.19.478V7.372a.787.787,0,0,0,.056.3.7.7,0,0,0,.155.239ZM7.414,13.3a5.724,5.724,0,0,1-2.3-.464,5.909,5.909,0,0,1-3.12-3.12,5.724,5.724,0,0,1-.464-2.3,5.724,5.724,0,0,1,.464-2.3,5.909,5.909,0,0,1,3.12-3.12,5.724,5.724,0,0,1,2.3-.464,5.724,5.724,0,0,1,2.3.464,5.9,5.9,0,0,1,3.12,3.12,5.724,5.724,0,0,1,.464,2.3,5.724,5.724,0,0,1-.464,2.3,5.9,5.9,0,0,1-3.12,3.12A5.724,5.724,0,0,1,7.414,13.3Zm0-5.889Zm0,4.4a4.253,4.253,0,0,0,3.113-1.279,4.234,4.234,0,0,0,1.286-3.12,4.234,4.234,0,0,0-1.286-3.12A4.253,4.253,0,0,0,7.414,3.015,4.251,4.251,0,0,0,4.3,4.294a4.233,4.233,0,0,0-1.286,3.12A4.233,4.233,0,0,0,4.3,10.534,4.251,4.251,0,0,0,7.414,11.813Z"
transform="translate(-1.525 -1.525)"
fill="#00A3FF"
/>
</svg>
</div>
<p class="info"><?php echo e($perday_routine['starting_hour'].':'.$perday_routine['starting_minute'].' - '.$perday_routine['ending_hour'].':'.$perday_routine['ending_minute']); ?></p>
</li>
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="11.33"
height="14.71"
viewBox="0 0 13.275 14.944"
>
<g
id="user_icon"
data-name="user icon"
transform="translate(-1368.531 -147.15)"
>
<g
id="Ellipse_1"
data-name="Ellipse 1"
transform="translate(1370.609 147.15)"
fill="none"
stroke="#00A3FF"
stroke-width="2"
>
<ellipse
cx="4.576"
cy="4.435"
rx="4.576"
ry="4.435"
stroke="none"
/>
<ellipse
cx="4.576"
cy="4.435"
rx="3.576"
ry="3.435"
fill="none"
/>
</g>
<path
id="Path_41"
data-name="Path 41"
d="M1485.186,311.087a5.818,5.818,0,0,1,5.856-4.283,5.534,5.534,0,0,1,5.466,4.283"
transform="translate(-115.686 -149.241)"
fill="none"
stroke="#00A3FF"
stroke-width="2"
/>
</g>
</svg>
</div>
<?php $teacher = User::find($perday_routine['teacher_id']); ?>
<p class="info"><?php echo e(isset($teacher->name)?$teacher->name:''); ?></p>
</li>
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="18.641"
height="16.589"
viewBox="0 0 18.641 16.589"
>
<path
id="house_FILL0_wght400_GRAD0_opsz48"
d="M13.263,23.089H8.311a.72.72,0,0,1-.743-.743v-7.18H5.563a.35.35,0,0,1-.347-.235.329.329,0,0,1,.1-.409L14.006,6.7a.718.718,0,0,1,.99,0l4.457,3.937V8.481a.72.72,0,0,1,.743-.743h.5a.72.72,0,0,1,.743.743v3.986l2.253,2.055a.363.363,0,0,1-.248.644H21.434v7.18a.72.72,0,0,1-.743.743H15.739V17.146H13.263ZM9.054,21.6h2.724V16.4a.72.72,0,0,1,.743-.743h3.961a.72.72,0,0,1,.743.743v5.2h2.724V13.16L14.5,8.208,9.054,13.16ZM12.4,12.937h4.209a1.689,1.689,0,0,0-.631-1.349,2.3,2.3,0,0,0-2.946,0A1.689,1.689,0,0,0,12.4,12.937Zm.124,2.724h0Z"
transform="translate(-5.183 -6.5)"
fill="#00a3ff"
/>
</svg>
</div>
<?php $class_room = ClassRoom::find($perday_routine['room_id']); ?>
<p class="info"><?php echo e($class_room->name); ?></p>
</li>
</ul>
</div>
<?php } ?>
</div>
</li>
<li class="classRoutines-item d-flex align-items-center">
<h4 class="title"><?php echo e(get_phrase('Thursday')); ?></h4>
<div class="classTime-items d-flex">
<?php $perday_routines = Routine::where(['class_id' => $class_id, 'section_id' => $section_id, 'session_id' => $active_session,'school_id' => auth()->user()->school_id, 'day' => 'thursday'])->get();
foreach($perday_routines as $perday_routine) { ?>
<div class="classTime-item">
<?php $subject = Subject::find($perday_routine['subject_id']); ?>
<div class="d-flex">
<h4 class="subjectName"><?php echo e(isset($subject->name)?$subject->name:''); ?></h4>
<div class="btn-group ms-auto">
<button type="button" class="btn" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-three-dots-vertical"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li>
<a class="text-16px ps-2" href="javascript:;" onclick="rightModal('<?php echo e(route('admin.routine_edit_modal', ['id' => $perday_routine['id']])); ?>', '<?php echo e(get_phrase('Edit class routine')); ?>')"><?php echo e(get_phrase('Edit')); ?>
</a>
</li>
<li>
<a class="text-16px ps-2" href="javascript:;" onclick="confirmModal('<?php echo e(route('admin.routine.delete', ['id' => $perday_routine['id']])); ?>', 'undefined');"><?php echo e(get_phrase('Delete')); ?></a>
</li>
</ul>
</div>
</div>
<ul class="classDetails">
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16.03"
height="16.03"
viewBox="0 0 11.777 11.777"
>
<path
id="schedule_FILL0_wght600_GRAD0_opsz24"
d="M8.679,9.634a.605.605,0,0,0,.464.2.674.674,0,0,0,.492-.211.679.679,0,0,0,0-.956L8.088,7.119V5.306A.641.641,0,0,0,7.9,4.834a.658.658,0,0,0-.485-.189.643.643,0,0,0-.485.2.662.662,0,0,0-.19.478V7.372a.787.787,0,0,0,.056.3.7.7,0,0,0,.155.239ZM7.414,13.3a5.724,5.724,0,0,1-2.3-.464,5.909,5.909,0,0,1-3.12-3.12,5.724,5.724,0,0,1-.464-2.3,5.724,5.724,0,0,1,.464-2.3,5.909,5.909,0,0,1,3.12-3.12,5.724,5.724,0,0,1,2.3-.464,5.724,5.724,0,0,1,2.3.464,5.9,5.9,0,0,1,3.12,3.12,5.724,5.724,0,0,1,.464,2.3,5.724,5.724,0,0,1-.464,2.3,5.9,5.9,0,0,1-3.12,3.12A5.724,5.724,0,0,1,7.414,13.3Zm0-5.889Zm0,4.4a4.253,4.253,0,0,0,3.113-1.279,4.234,4.234,0,0,0,1.286-3.12,4.234,4.234,0,0,0-1.286-3.12A4.253,4.253,0,0,0,7.414,3.015,4.251,4.251,0,0,0,4.3,4.294a4.233,4.233,0,0,0-1.286,3.12A4.233,4.233,0,0,0,4.3,10.534,4.251,4.251,0,0,0,7.414,11.813Z"
transform="translate(-1.525 -1.525)"
fill="#00A3FF"
/>
</svg>
</div>
<p class="info"><?php echo e($perday_routine['starting_hour'].':'.$perday_routine['starting_minute'].' - '.$perday_routine['ending_hour'].':'.$perday_routine['ending_minute']); ?></p>
</li>
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="11.33"
height="14.71"
viewBox="0 0 13.275 14.944"
>
<g
id="user_icon"
data-name="user icon"
transform="translate(-1368.531 -147.15)"
>
<g
id="Ellipse_1"
data-name="Ellipse 1"
transform="translate(1370.609 147.15)"
fill="none"
stroke="#00A3FF"
stroke-width="2"
>
<ellipse
cx="4.576"
cy="4.435"
rx="4.576"
ry="4.435"
stroke="none"
/>
<ellipse
cx="4.576"
cy="4.435"
rx="3.576"
ry="3.435"
fill="none"
/>
</g>
<path
id="Path_41"
data-name="Path 41"
d="M1485.186,311.087a5.818,5.818,0,0,1,5.856-4.283,5.534,5.534,0,0,1,5.466,4.283"
transform="translate(-115.686 -149.241)"
fill="none"
stroke="#00A3FF"
stroke-width="2"
/>
</g>
</svg>
</div>
<?php $teacher = User::find($perday_routine['teacher_id']); ?>
<p class="info"><?php echo e(isset($teacher->name)?$teacher->name:''); ?></p>
</li>
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="18.641"
height="16.589"
viewBox="0 0 18.641 16.589"
>
<path
id="house_FILL0_wght400_GRAD0_opsz48"
d="M13.263,23.089H8.311a.72.72,0,0,1-.743-.743v-7.18H5.563a.35.35,0,0,1-.347-.235.329.329,0,0,1,.1-.409L14.006,6.7a.718.718,0,0,1,.99,0l4.457,3.937V8.481a.72.72,0,0,1,.743-.743h.5a.72.72,0,0,1,.743.743v3.986l2.253,2.055a.363.363,0,0,1-.248.644H21.434v7.18a.72.72,0,0,1-.743.743H15.739V17.146H13.263ZM9.054,21.6h2.724V16.4a.72.72,0,0,1,.743-.743h3.961a.72.72,0,0,1,.743.743v5.2h2.724V13.16L14.5,8.208,9.054,13.16ZM12.4,12.937h4.209a1.689,1.689,0,0,0-.631-1.349,2.3,2.3,0,0,0-2.946,0A1.689,1.689,0,0,0,12.4,12.937Zm.124,2.724h0Z"
transform="translate(-5.183 -6.5)"
fill="#00a3ff"
/>
</svg>
</div>
<?php $class_room = ClassRoom::find($perday_routine['room_id']); ?>
<p class="info"><?php echo e(isset($class_room->name)?$class_room->name:''); ?></p>
</li>
</ul>
</div>
<?php } ?>
</div>
</li>
<li class="classRoutines-item d-flex align-items-center">
<h4 class="title"><?php echo e(get_phrase('Friday')); ?></h4>
<div class="classTime-items d-flex">
<?php $perday_routines = Routine::where(['class_id' => $class_id, 'section_id' => $section_id, 'session_id' => $active_session,'school_id' => auth()->user()->school_id, 'day' => 'friday'])->get();
foreach($perday_routines as $perday_routine) { ?>
<div class="classTime-item">
<?php $subject = Subject::find($perday_routine['subject_id']); ?>
<div class="d-flex">
<h4 class="subjectName"><?php echo e(isset($subject->name)?$subject->name:''); ?></h4>
<div class="btn-group ms-auto">
<button type="button" class="btn" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-three-dots-vertical"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li>
<a class="text-16px ps-2" href="javascript:;" onclick="rightModal('<?php echo e(route('admin.routine_edit_modal', ['id' => $perday_routine['id']])); ?>', '<?php echo e(get_phrase('Edit class routine')); ?>')"><?php echo e(get_phrase('Edit')); ?>
</a>
</li>
<li>
<a class="text-16px ps-2" href="javascript:;" onclick="confirmModal('<?php echo e(route('admin.routine.delete', ['id' => $perday_routine['id']])); ?>', 'undefined');"><?php echo e(get_phrase('Delete')); ?></a>
</li>
</ul>
</div>
</div>
<ul class="classDetails">
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="16.03"
height="16.03"
viewBox="0 0 11.777 11.777"
>
<path
id="schedule_FILL0_wght600_GRAD0_opsz24"
d="M8.679,9.634a.605.605,0,0,0,.464.2.674.674,0,0,0,.492-.211.679.679,0,0,0,0-.956L8.088,7.119V5.306A.641.641,0,0,0,7.9,4.834a.658.658,0,0,0-.485-.189.643.643,0,0,0-.485.2.662.662,0,0,0-.19.478V7.372a.787.787,0,0,0,.056.3.7.7,0,0,0,.155.239ZM7.414,13.3a5.724,5.724,0,0,1-2.3-.464,5.909,5.909,0,0,1-3.12-3.12,5.724,5.724,0,0,1-.464-2.3,5.724,5.724,0,0,1,.464-2.3,5.909,5.909,0,0,1,3.12-3.12,5.724,5.724,0,0,1,2.3-.464,5.724,5.724,0,0,1,2.3.464,5.9,5.9,0,0,1,3.12,3.12,5.724,5.724,0,0,1,.464,2.3,5.724,5.724,0,0,1-.464,2.3,5.9,5.9,0,0,1-3.12,3.12A5.724,5.724,0,0,1,7.414,13.3Zm0-5.889Zm0,4.4a4.253,4.253,0,0,0,3.113-1.279,4.234,4.234,0,0,0,1.286-3.12,4.234,4.234,0,0,0-1.286-3.12A4.253,4.253,0,0,0,7.414,3.015,4.251,4.251,0,0,0,4.3,4.294a4.233,4.233,0,0,0-1.286,3.12A4.233,4.233,0,0,0,4.3,10.534,4.251,4.251,0,0,0,7.414,11.813Z"
transform="translate(-1.525 -1.525)"
fill="#00A3FF"
/>
</svg>
</div>
<p class="info"><?php echo e($perday_routine['starting_hour'].':'.$perday_routine['starting_minute'].' - '.$perday_routine['ending_hour'].':'.$perday_routine['ending_minute']); ?></p>
</li>
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="11.33"
height="14.71"
viewBox="0 0 13.275 14.944"
>
<g
id="user_icon"
data-name="user icon"
transform="translate(-1368.531 -147.15)"
>
<g
id="Ellipse_1"
data-name="Ellipse 1"
transform="translate(1370.609 147.15)"
fill="none"
stroke="#00A3FF"
stroke-width="2"
>
<ellipse
cx="4.576"
cy="4.435"
rx="4.576"
ry="4.435"
stroke="none"
/>
<ellipse
cx="4.576"
cy="4.435"
rx="3.576"
ry="3.435"
fill="none"
/>
</g>
<path
id="Path_41"
data-name="Path 41"
d="M1485.186,311.087a5.818,5.818,0,0,1,5.856-4.283,5.534,5.534,0,0,1,5.466,4.283"
transform="translate(-115.686 -149.241)"
fill="none"
stroke="#00A3FF"
stroke-width="2"
/>
</g>
</svg>
</div>
<?php $teacher = User::find($perday_routine['teacher_id']); ?>
<p class="info"><?php echo e(isset($teacher->name)?$teacher->name:''); ?></p>
</li>
<li
class="classDetails-info d-flex align-items-center"
>
<div class="icon">
<svg
xmlns="http://www.w3.org/2000/svg"
width="18.641"
height="16.589"
viewBox="0 0 18.641 16.589"
>
<path
id="house_FILL0_wght400_GRAD0_opsz48"
d="M13.263,23.089H8.311a.72.72,0,0,1-.743-.743v-7.18H5.563a.35.35,0,0,1-.347-.235.329.329,0,0,1,.1-.409L14.006,6.7a.718.718,0,0,1,.99,0l4.457,3.937V8.481a.72.72,0,0,1,.743-.743h.5a.72.72,0,0,1,.743.743v3.986l2.253,2.055a.363.363,0,0,1-.248.644H21.434v7.18a.72.72,0,0,1-.743.743H15.739V17.146H13.263ZM9.054,21.6h2.724V16.4a.72.72,0,0,1,.743-.743h3.961a.72.72,0,0,1,.743.743v5.2h2.724V13.16L14.5,8.208,9.054,13.16ZM12.4,12.937h4.209a1.689,1.689,0,0,0-.631-1.349,2.3,2.3,0,0,0-2.946,0A1.689,1.689,0,0,0,12.4,12.937Zm.124,2.724h0Z"
transform="translate(-5.183 -6.5)"
fill="#00a3ff"
/>
</svg>
</div>
<?php $class_room = ClassRoom::find($perday_routine['room_id']); ?>
<p class="info"><?php echo e(isset($class_room->name)?$class_room->name:''); ?></p>
</li>
</ul>
</div>
<?php } ?>
</div>
</li>
</ul>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<script type="text/javascript">
"use strict";
function classWiseSection(classId) {
let url = "<?php echo e(route('admin.class_wise_sections', ['id' => ":classId"])); ?>";
url = url.replace(":classId", classId);
$.ajax({
url: url,
success: function(response){
$('#section_id').html(response);
}
});
}
function filter_class_routine(){
var class_id = $('#class_id').val();
var section_id = $('#section_id').val();
if(class_id != "" && section_id!= ""){
getFilteredClassRoutine();
}else{
toastr.error('<?php echo e(get_phrase("Please select a class and section")); ?>');
}
}
var getFilteredClassRoutine = function() {
var class_id = $('#class_id').val();
var section_id = $('#section_id').val();
if(class_id != "" && section_id!= ""){
let url = "<?php echo e(route('admin.routine.routine_list')); ?>";
$.ajax({
url: url,
headers: {
'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content')
},
data: {class_id : class_id, section_id : section_id},
success: function(response){
$('.class_routine_content').html(response);
}
});
}
}
function Export() {
html2canvas(document.getElementById('class_routines'), {
onrendered: function(canvas) {
var data = canvas.toDataURL();
var docDefinition = {
content: [{
image: data,
width: 500
}]
};
pdfMake.createPdf(docDefinition).download("routine.pdf");
}
});
}
function printableDiv(printableAreaDivId) {
var printContents = document.getElementById(printableAreaDivId).innerHTML;
var originalContents = document.body.innerHTML;
document.body.innerHTML = printContents;
window.print();
document.body.innerHTML = originalContents;
}
</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/routine/routine_list.blade.php ENDPATH**/ ?>
|