TRF Certest first commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
use Vanguard\Support\Locale;
|
||||
?>
|
||||
<li class="nav-item dropdown d-flex align-items-center">
|
||||
<a class="nav-link dropdown-toggle text-uppercase"
|
||||
href="#"
|
||||
id="navbarDropdown"
|
||||
role="button"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false">
|
||||
<img src="{{ Locale::flagUrl(session()->get('locale') ?: config('app.locale')) }}" width="30" />
|
||||
<span class="ml-1">{{ session()->get('locale') }}</span>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right position-absolute p-0" aria-labelledby="navbarDropdown">
|
||||
@foreach(Locale::AVAILABLE_LOCALES as $locale)
|
||||
<a class="dropdown-item py-2 text-uppercase" href="?lang={{ $locale }}">
|
||||
<img src="{{ Locale::flagUrl($locale) }}" alt="{{ $locale }}" width="30">
|
||||
<span class="ml-1">{{ $locale }}</span>
|
||||
</a>
|
||||
@endforeach
|
||||
</div>
|
||||
</li>
|
||||
@@ -0,0 +1,27 @@
|
||||
|
||||
@if(isset ($errors) && count($errors) > 0)
|
||||
<div class="alert alert-danger alert-notification">
|
||||
<ul class="list-unstyled mb-0">
|
||||
@foreach($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(Session::get('success', false))
|
||||
<?php $data = Session::get('success'); ?>
|
||||
@if (is_array($data))
|
||||
@foreach ($data as $msg)
|
||||
<div class="alert alert-success alert-notification">
|
||||
<i class="fa fa-check"></i>
|
||||
{{ $msg }}
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
<div class="alert alert-success alert-notification">
|
||||
<i class="fa fa-check"></i>
|
||||
{{ $data }}
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
@@ -0,0 +1,103 @@
|
||||
<nav class="navbar fixed-top align-items-start navbar-expand-lg pl-0 pr-0 py-0" >
|
||||
|
||||
<div class="navbar-brand-wrapper d-flex align-items-center justify-content-center">
|
||||
<a class="navbar-brand mr-0" href="{{ url('/') }}">
|
||||
<x-logo class="logo-lg" height="35" />
|
||||
<x-logo variant="no-text" class="logo-sm" height="35" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@if (app('impersonate')->isImpersonating())
|
||||
<a href="{{ route('impersonate.leave') }}" class="navbar-toggler text-danger hidden-md">
|
||||
<i class="fas fa-user-secret"></i>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
<button class="navbar-toggler" type="button" id="sidebar-toggle">
|
||||
<i class="fas fa-align-right text-muted"></i>
|
||||
</button>
|
||||
|
||||
<button class="navbar-toggler mr-3"
|
||||
type="button"
|
||||
data-toggle="collapse"
|
||||
data-target="#top-navigation"
|
||||
aria-controls="top-navigation"
|
||||
aria-expanded="false"
|
||||
aria-label="Toggle navigation">
|
||||
<i class="fas fa-bars text-muted"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="collapse navbar-collapse" id="top-navigation">
|
||||
<div class="row ml-2">
|
||||
<div class="col-lg-12 d-flex align-items-left align-items-md-center flex-column flex-md-row py-3">
|
||||
<h4 class="page-header mb-0">
|
||||
@yield('page-heading')
|
||||
</h4>
|
||||
|
||||
<ol class="breadcrumb mb-0 font-weight-light">
|
||||
<li class="breadcrumb-item">
|
||||
<a href="{{ url('/') }}" class="text-muted">
|
||||
<i class="fa fa-home"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@yield('breadcrumbs')
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ul class="navbar-nav ml-auto pr-3 flex-row">
|
||||
@if (app('impersonate')->isImpersonating())
|
||||
<li class="nav-item d-flex align-items-center visible-lg">
|
||||
<a href="{{ route('impersonate.leave') }}" class="btn text-danger">
|
||||
<i class="fas fa-user-secret mr-2"></i>
|
||||
@lang('Stop Impersonating')
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@hook('navbar:items')
|
||||
|
||||
@include('partials.locale-dropdown')
|
||||
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle"
|
||||
href="#"
|
||||
id="navbarDropdown"
|
||||
role="button"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false">
|
||||
<img src="{{ auth()->user()->present()->avatar }}"
|
||||
width="50"
|
||||
height="50"
|
||||
class="rounded-circle img-thumbnail img-responsive">
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-right position-absolute p-0" aria-labelledby="navbarDropdown">
|
||||
<a class="dropdown-item py-2" href="{{ route('profile') }}">
|
||||
<i class="fas fa-user text-muted mr-2"></i>
|
||||
@lang('My Profile')
|
||||
</a>
|
||||
|
||||
@if (config('session.driver') == 'database')
|
||||
<a href="{{ route('profile.sessions') }}" class="dropdown-item py-2">
|
||||
<i class="fas fa-list text-muted mr-2"></i>
|
||||
@lang('Active Sessions')
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@hook('navbar:dropdown')
|
||||
|
||||
<div class="dropdown-divider m-0"></div>
|
||||
|
||||
<a class="dropdown-item py-2" href="{{ route('auth.logout') }}">
|
||||
<i class="fas fa-sign-out-alt text-muted mr-2"></i>
|
||||
@lang('Logout')
|
||||
</a>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -0,0 +1,26 @@
|
||||
@if ($item && $item->authorize(auth()->user()))
|
||||
<li class="nav-item">
|
||||
<a class="nav-link {{ Request::is($item->getActivePath()) ? 'active' : '' }}"
|
||||
href="{{ $item->getHref() }}"
|
||||
@if($item->isDropdown())
|
||||
data-toggle="collapse"
|
||||
aria-expanded="{{ Request::is($item->getExpandedPath()) ? 'true' : 'false' }}"
|
||||
@endif
|
||||
>
|
||||
@if ($item->getIcon())
|
||||
<i class="{{ $item->getIcon() }}"></i>
|
||||
@endif
|
||||
|
||||
<span>{{ $item->getTitle() }}</span>
|
||||
</a>
|
||||
|
||||
@if ($item->isDropdown())
|
||||
<ul class="{{ Request::is($item->getExpandedPath()) ? '' : 'collapse' }} list-unstyled sub-menu"
|
||||
id="{{ str_replace('#', '', $item->getHref()) }}">
|
||||
@foreach ($item->children() as $child)
|
||||
@include('partials.sidebar.items', ['item' => $child])
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</li>
|
||||
@endif
|
||||
@@ -0,0 +1,37 @@
|
||||
<nav class="col-md-2 sidebar">
|
||||
<div class="user-box text-center pt-5 pb-3">
|
||||
<div class="user-img">
|
||||
<img src="{{ auth()->user()->present()->avatar }}"
|
||||
width="90"
|
||||
height="90"
|
||||
alt="user-img"
|
||||
class="rounded-circle img-thumbnail img-responsive">
|
||||
</div>
|
||||
<h5 class="my-3">
|
||||
<a href="{{ route('profile') }}">{{ auth()->user()->present()->nameOrEmail }}</a>
|
||||
</h5>
|
||||
|
||||
<ul class="list-inline mb-2">
|
||||
<li class="list-inline-item">
|
||||
<a href="{{ route('profile') }}" title="@lang('My Profile')">
|
||||
<i class="fas fa-cog"></i>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="list-inline-item">
|
||||
<a href="{{ route('auth.logout') }}" class="text-custom" title="@lang('Logout')">
|
||||
<i class="fas fa-sign-out-alt"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="sidebar-sticky">
|
||||
<ul class="nav flex-column">
|
||||
@foreach (\Vanguard\Plugins\Vanguard::availablePlugins() as $plugin)
|
||||
@include('partials.sidebar.items', ['item' => $plugin->sidebar()])
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user