129 lines
3.8 KiB
PHP
129 lines
3.8 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="id">
|
|
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>{{ $title }} | {{ config('app.name') }}</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="shortcut icon" href="{{ asset('assets/images/logo-untan.png') }}">
|
|
<link href="{{ asset('assets/css/icons.min.css') }}" rel="stylesheet" type="text/css" />
|
|
<link href="{{ asset('assets/css/app.min.css') }}" rel="stylesheet" type="text/css" />
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/simple-notify/dist/simple-notify.css" />
|
|
@yield('css')
|
|
<style>
|
|
body {
|
|
font-family: "Inter", sans-serif;
|
|
background-color: #f4f6f9;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.action-wrapper {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.action-header {
|
|
background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #1d4ed8 100%);
|
|
padding: 16px 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.action-header img {
|
|
height: 40px;
|
|
width: auto;
|
|
}
|
|
|
|
.action-header .app-name {
|
|
color: #fff;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
}
|
|
|
|
.action-content {
|
|
flex: 1;
|
|
padding: 24px 16px;
|
|
max-width: 720px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.action-footer {
|
|
text-align: center;
|
|
padding: 16px;
|
|
font-size: 0.8rem;
|
|
color: #8a9ab0;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="action-wrapper">
|
|
<div class="action-header">
|
|
<img src="{{ asset('assets/images/logo-untan.png') }}" alt="Logo">
|
|
<p class="app-name">{{ config('app.name') }}</p>
|
|
</div>
|
|
|
|
<div class="action-content">
|
|
@yield('content')
|
|
</div>
|
|
|
|
<div class="action-footer">
|
|
© {{ date('Y') }} Universitas Tanjungpura. All rights reserved.
|
|
</div>
|
|
</div>
|
|
|
|
<script src="{{ asset('assets/js/vendor.min.js') }}"></script>
|
|
<script src="{{ asset('assets/js/app.min.js') }}"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/simple-notify/dist/simple-notify.min.js"></script>
|
|
<script>
|
|
function showNotification(options = {}) {
|
|
const defaultOptions = {
|
|
status: 'info',
|
|
title: 'Notification',
|
|
text: 'Default notification message',
|
|
effect: 'fade',
|
|
speed: 300,
|
|
customClass: null,
|
|
customIcon: null,
|
|
showIcon: true,
|
|
showCloseButton: true,
|
|
autoclose: true,
|
|
autotimeout: 3000,
|
|
gap: 20,
|
|
distance: 20,
|
|
type: 'outline',
|
|
position: 'right top'
|
|
};
|
|
|
|
const config = {
|
|
...defaultOptions,
|
|
...options
|
|
};
|
|
new Notify(config);
|
|
}
|
|
|
|
function showSuccess(title = 'Success', text = 'Operation completed successfully') {
|
|
showNotification({ status: 'success', title, text });
|
|
}
|
|
|
|
function showError(title = 'Error', text = 'An error occurred') {
|
|
showNotification({ status: 'error', title, text, autotimeout: 5000 });
|
|
}
|
|
|
|
function showWarning(title = 'Warning', text = 'Please check your input') {
|
|
showNotification({ status: 'warning', title, text, autotimeout: 5000 });
|
|
}
|
|
|
|
function showInfo(title = 'Information', text = 'Here is some information') {
|
|
showNotification({ status: 'info', title, text });
|
|
}
|
|
</script>
|
|
@yield('js')
|
|
</body>
|
|
|
|
</html>
|