MIF_E31212371/resources/views/layouts/commonMaster.blade.php

92 lines
3.2 KiB
PHP

<!DOCTYPE html>
<html class="light-style layout-menu-fixed" data-theme="theme-default" data-assets-path="{{ asset('/assets') . '/' }}" data-base-url="{{url('/')}}" data-framework="laravel" data-template="vertical-menu-laravel-template-free">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<title>@yield('title') | LKP Seiza </title>
<meta name="description" content="{{ config('variables.templateDescription') ? config('variables.templateDescription') : '' }}" />
<meta name="keywords" content="{{ config('variables.templateKeyword') ? config('variables.templateKeyword') : '' }}">
<!-- laravel CRUD token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<!-- Canonical SEO -->
<link rel="canonical" href="{{ config('variables.productPage') ? config('variables.productPage') : '' }}">
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="{{ asset('assets/img/logo/seiza.png') }}" />
<!-- Include Styles -->
@include('layouts/sections/styles')
<!-- Include Scripts for customizer, helper, analytics, config -->
@include('layouts/sections/scriptsIncludes')
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js"></script>
</head>
<body>
<!-- Layout Content -->
@yield('layoutContent')
<!--/ Layout Content -->
<!-- {{-- remove while creating package --}}
<div class="buy-now">
<a href="{{config('variables.productPage')}}" target="_blank" class="btn btn-danger btn-buy-now">Upgrade To Pro</a>
</div>
{{-- remove while creating package end --}} -->
<!-- Include Scripts -->
@include('layouts/sections/scripts')
@if ($user && $user->role != "Admin")
@if (!isset($user->biodata->jenjang))
<script type="text/javascript">
if (window.location.pathname != "/student/edit-biodata" && window.location.pathname != "/") {
window.location = "{{url('/student/edit-biodata')}}";
}
</script>
@elseif (!$user->active)
<script type="text/javascript">
if (window.location.pathname != "/account/disable" && window.location.pathname != "/") {
window.location = "{{url('/account/disable')}}";
}
</script>
@endif
@endif
<script defer>
$(document).ready(function() {
$('.table').DataTable({
"pageLength": 10,
"lengthChange": false,
"searching": false
});
});
function search() {
// Declare variables
var input, filter, table, tr, td, i, txtValue;
input = document.getElementById("searchBox");
filter = input.value.toUpperCase();
table = document.getElementById("table");
tr = table.getElementsByTagName("tr");
// Loop through all table rows, and hide those who don't match the search query
for (i = 0; i < tr.length; i++) {
td = tr[i].getElementsByTagName("td")[0];
if (td) {
txtValue = td.textContent || td.innerText;
if (txtValue.toUpperCase().indexOf(filter) > -1) {
tr[i].style.display = "";
} else {
tr[i].style.display = "none";
}
}
}
}
</script>
</body>
</html>