feat: implement admin dashboard header with user tools and notification system
This commit is contained in:
@@ -3,27 +3,12 @@
|
||||
<div class="content-header">
|
||||
<!-- Left Section -->
|
||||
<div class="content-header-section">
|
||||
@if (isset($c) && $c->icon)
|
||||
<div class="mr-15 d-flex align-items-center justify-content-center"
|
||||
style="width: 36px; height: 36px; background: #f8fafc; border-radius: 10px; border: 1px solid #f1f5f9;">
|
||||
<img src="{{ url('assets/icons/' . $c->icon . '.png') }}" alt=""
|
||||
style="width: 20px; height: 20px; object-fit: contain;">
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
<!-- Page Title & Breadcrumbs -->
|
||||
<div class="d-flex flex-column justify-content-center">
|
||||
<div class="font-size-md font-w700 text-dark mb-0" style="line-height: 1.2;">@yield('title')</div>
|
||||
<nav class="breadcrumb bg-transparent p-0 mb-0 font-size-xs" style="line-height: 1;">
|
||||
<a class="breadcrumb-item text-muted" href="{{url('admin')}}">Projects</a>
|
||||
@if (isset($c) && $c->parent)
|
||||
<?php $parent = DB::table('types')->where('id', $c->parent)->first(); ?>
|
||||
@if ($parent)
|
||||
<a class="breadcrumb-item text-muted" href="javascript:void(0)">{{ $parent->title }}</a>
|
||||
@endif
|
||||
@endif
|
||||
<span class="breadcrumb-item active text-muted">@yield('title')</span>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- END Left Section -->
|
||||
@@ -48,16 +33,16 @@
|
||||
<h5 class="h6 text-center py-10 mb-5 border-b text-uppercase">Admin Tools</h5>
|
||||
|
||||
<a class="dropdown-item" href="javascript:void(0)" onclick="
|
||||
Swal.fire('', 'Cronjob is Started', 'success');
|
||||
$.get('{{url("cron")}}', function(d){
|
||||
Swal.fire('', 'Cronjob is OK', 'success')
|
||||
});">
|
||||
Swal.fire('', 'Cronjob is Started', 'success');
|
||||
$.get('{{url("cron")}}', function(d){
|
||||
Swal.fire('', 'Cronjob is OK', 'success')
|
||||
});">
|
||||
<i class="fa fa-cog mr-5"></i> {{e2("Run CronJOB")}}
|
||||
</a>
|
||||
|
||||
<a class="dropdown-item" href="javascript:void(0)" onclick="$.get('{{url("clear-cache")}}',function(d) {
|
||||
Swal.fire('', 'Cache is Cleared!', 'success')
|
||||
});">
|
||||
Swal.fire('', 'Cache is Cleared!', 'success')
|
||||
});">
|
||||
<i class="fa fa-sync mr-5"></i> {{__('Clear cache')}}
|
||||
</a>
|
||||
</div>
|
||||
@@ -179,10 +164,6 @@ foreach ($dil as $d) { ?>
|
||||
</div>
|
||||
<!-- END Header Search -->
|
||||
|
||||
<div class="d-flex justify-content-center py-3 mini-header">
|
||||
@yield("title")
|
||||
</div>
|
||||
|
||||
<!-- Header Loader -->
|
||||
<div id="page-header-loader" class="overlay-header bg-primary">
|
||||
<div class="content-header content-header-fullrow text-center">
|
||||
@@ -194,63 +175,6 @@ foreach ($dil as $d) { ?>
|
||||
<!-- END Header Loader -->
|
||||
|
||||
<style>
|
||||
/* Mini Header Custom Styles */
|
||||
.mini-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 5px;
|
||||
/* Image ve title arası mesafe */
|
||||
transition: all 0.3s ease;
|
||||
|
||||
/* Hem mobilde hem desktopta akışı bozmaması için absolute */
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1000;
|
||||
/* En üstte */
|
||||
pointer-events: none;
|
||||
/* Arkadaki butonlara tıklanabilsin */
|
||||
|
||||
color: white !important;
|
||||
/* Her durumda beyaz */
|
||||
}
|
||||
|
||||
.mini-header img {
|
||||
height: 33px;
|
||||
width: auto;
|
||||
display: block;
|
||||
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
|
||||
}
|
||||
|
||||
/* Geniş Ekran (Desktop) Ayarları */
|
||||
@media (min-width: 992px) {
|
||||
.mini-header {
|
||||
font-size: 20px;
|
||||
top: 3px;
|
||||
/* Özel istek */
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.mini-header img {
|
||||
height: 33px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobil Ekran Ayarları */
|
||||
@media (max-width: 991.98px) {
|
||||
.mini-header {
|
||||
font-size: 16px;
|
||||
/* Mobilde tam ortada kalsın */
|
||||
}
|
||||
|
||||
.mini-header img {
|
||||
height: 28px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Print Styles */
|
||||
.yesprint {
|
||||
display: none;
|
||||
|
||||
Reference in New Issue
Block a user