feat: add new admin dashboard header component with navigation, tools, and notifications
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
@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($c->icon) }}" alt="" style="width: 20px; height: 20px; object-fit: contain;">
|
||||
<img src="{{ url('assets/icons/' . $c->icon . '.png') }}" alt=""
|
||||
style="width: 20px; height: 20px; object-fit: contain;">
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@@ -16,7 +17,7 @@
|
||||
<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(); ?>
|
||||
<?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
|
||||
@@ -47,16 +48,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>
|
||||
|
||||
Reference in New Issue
Block a user