|
1 | 1 | <header class="c-header c-header-light c-header-fixed c-header-with-subheader"> |
2 | | - <button class="c-header-toggler c-class-toggler d-lg-none mfe-auto" type="button" data-target="#sidebar" |
3 | | - data-class="c-sidebar-show"> |
| 2 | + <button class="c-header-toggler c-class-toggler d-lg-none mfe-auto" type="button" data-target="#sidebar" |
| 3 | + data-class="c-sidebar-show"> |
4 | 4 | <span class="c-icon c-icon-lg"> |
5 | 5 | <i class="mdi mdi-menu"></i> |
6 | 6 | </span> |
7 | | - </button> |
8 | | - <a class="c-header-brand d-lg-none" href="#"> |
9 | | - <span>{{ config('app.name') }}</span> |
10 | | - </a> |
11 | | - <button class="c-header-toggler c-class-toggler mfs-3 d-md-down-none" type="button" data-target="#sidebar" |
12 | | - data-class="c-sidebar-lg-show" responsive="true"> |
| 7 | + </button> |
| 8 | + <a class="c-header-brand d-lg-none" href="#"> |
| 9 | + <span>{{ config('app.name') }}</span> |
| 10 | + </a> |
| 11 | + <button class="c-header-toggler c-class-toggler mfs-3 d-md-down-none" type="button" data-target="#sidebar" |
| 12 | + data-class="c-sidebar-lg-show" responsive="true"> |
13 | 13 | <span class="c-icon c-icon-lg"> |
14 | 14 | <i class="mdi mdi-menu"></i> |
15 | 15 | </span> |
16 | | - </button> |
17 | | - <a href="{{ route('index') }}" target="_blank" class="d-flex align-items-center justify-content-center c-header-toggler d-md-down-none"> |
| 16 | + </button> |
| 17 | + <a href="{{ route('index') }}" target="_blank" class="d-flex align-items-center justify-content-center c-header-toggler d-md-down-none"> |
18 | 18 | <span class="c-icon c-icon-lg" style="margin-top: -12px"> |
19 | 19 | <i class="mdi mdi-home-outline"></i> |
20 | 20 | </span> |
21 | | - </a> |
22 | | - <ul class="c-header-nav ml-auto mr-4"> |
23 | | - <li class="c-header-nav-item dropdown"> |
24 | | - <a class="c-header-nav-link" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"> |
25 | | - <div class="c-avatar"> |
26 | | - <img class="c-avatar-img" src="{{ asset(auth()->user()->avatar ) }}" alt="user@email.com"> |
27 | | - </div> |
28 | | - </a> |
29 | | - <div class="dropdown-menu dropdown-menu-right pt-0"> |
30 | | - <div class="dropdown-header bg-light py-2"><strong>Account</strong></div> |
31 | | - <a class="dropdown-item" href="#"> |
32 | | - <x-cicon name="bell" class="c-icon mr-2" /> |
33 | | - Profile <span class="badge badge-info ml-auto">42</span> |
34 | | - </a> |
35 | | - <div class="dropdown-divider"></div> |
36 | | - <x-link class="dropdown-item" href="{{ route('auth.logout') }}" as="form" method="POST"> |
37 | | - <x-cicon name="account-logout" class="c-icon mr-2" /> |
38 | | - {{ __('Logout') }} |
39 | | - </x-link> |
40 | | - </div> |
41 | | - </li> |
42 | | - </ul> |
| 21 | + </a> |
| 22 | + <ul class="c-header-nav ml-auto mr-4"> |
| 23 | + @can('manage_resources') |
| 24 | + @if(Adminr::isInDev()) |
| 25 | + <li class="c-header-nav-item"> |
| 26 | + <a class="c-header-nav-link" href="{{ route(config('adminr.route_prefix').'.builder') }}" data-toggle="tooltip" title="{{ __('Resource Builder') }}"> |
| 27 | + <svg style="width: 20px; height: 20px"> |
| 28 | + <use xlink:href="{{ coreUiIcon('cil-diamond') }}"></use> |
| 29 | + </svg> |
| 30 | + <span class="ml-2">{{ __('Builder') }}</span> |
| 31 | + </a> |
| 32 | + </li> |
| 33 | + <li class="c-header-nav-item"> |
| 34 | + <a class="c-header-nav-link" href="{{ route(config('adminr.route_prefix').'.resources.index') }}" data-toggle="tooltip" title="{{ __('Generated Resources') }}"> |
| 35 | + <svg style="width: 20px; height: 20px"> |
| 36 | + <use xlink:href="{{ coreUiIcon('cil-apps') }}"></use> |
| 37 | + </svg> |
| 38 | + <span class="ml-2">{{ __('Generated Resources') }}</span> |
| 39 | + </a> |
| 40 | + </li> |
| 41 | + @endif |
| 42 | + |
| 43 | + @endcan |
| 44 | + |
| 45 | + @can('manage_settings') |
| 46 | + <li class="c-header-nav-item dropdown"> |
| 47 | + <a class="c-header-nav-link" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"> |
| 48 | + <i class="mdi mdi-cog-outline font-xl"></i> |
| 49 | + </a> |
| 50 | + <div class="dropdown-menu dropdown-menu-right pt-0"> |
| 51 | + <div class="dropdown-header bg-light py-2"><strong>Configurations</strong></div> |
| 52 | + @can('manage_mail_templates') |
| 53 | + <x-link class="dropdown-item" href="{{ route(config('adminr.route_prefix').'.templates.index') }}"> |
| 54 | + {{ __('Email Templates') }} |
| 55 | + </x-link> |
| 56 | + @endcan |
| 57 | + <x-link class="dropdown-item" href="{{ route(config('adminr.route_prefix').'.settings.general') }}"> |
| 58 | + {{ __('General') }} |
| 59 | + </x-link> |
| 60 | + <x-link class="dropdown-item" href="{{ route(config('adminr.route_prefix').'.settings.email') }}"> |
| 61 | + {{ __('Email') }} |
| 62 | + </x-link> |
| 63 | + <x-link class="dropdown-item" href="{{ route(config('adminr.route_prefix').'.settings.features') }}"> |
| 64 | + {{ __('Features') }} |
| 65 | + </x-link> |
| 66 | + </div> |
| 67 | + </li> |
| 68 | + @endcan |
| 69 | + <li class="c-header-nav-item dropdown"> |
| 70 | + <a class="c-header-nav-link" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false"> |
| 71 | + <div class="c-avatar"> |
| 72 | + <img class="c-avatar-img" src="{{ asset(auth()->user()->avatar ) }}" alt="user@email.com"> |
| 73 | + </div> |
| 74 | + </a> |
| 75 | + <div class="dropdown-menu dropdown-menu-right pt-0"> |
| 76 | + <div class="dropdown-header bg-light py-2"><strong>Account</strong></div> |
| 77 | + <a class="dropdown-item" href="#"> |
| 78 | + <x-cicon name="bell" class="c-icon mr-2"/> |
| 79 | + Profile <span class="badge badge-info ml-auto">42</span> |
| 80 | + </a> |
| 81 | + <div class="dropdown-divider"></div> |
| 82 | + <x-link class="dropdown-item" href="{{ route('auth.logout') }}" as="form" method="POST"> |
| 83 | + <x-cicon name="account-logout" class="c-icon mr-2"/> |
| 84 | + {{ __('Logout') }} |
| 85 | + </x-link> |
| 86 | + </div> |
| 87 | + </li> |
| 88 | + </ul> |
43 | 89 |
|
44 | 90 | </header> |
0 commit comments