2017-09-14 22:21:00 +03:00
|
|
|
<header class="main-header">
|
|
|
|
<!-- Logo -->
|
2018-05-26 16:17:48 +03:00
|
|
|
<a href="{{ url('customers') }}" class="logo">
|
2017-09-14 22:21:00 +03:00
|
|
|
<!-- mini logo for sidebar mini 50x50 pixels -->
|
2017-10-21 15:29:54 +03:00
|
|
|
<span class="logo-mini"><img src="{{ !empty($company->company_logo) ? Storage::url($company->company_logo) : asset('public/img/company.png') }}" class="logo-image-mini" width="25" alt="{{ $company->company_name }}"></span>
|
2017-09-14 22:21:00 +03:00
|
|
|
<!-- logo for regular state and mobile devices -->
|
2017-10-21 15:29:54 +03:00
|
|
|
<span class="logo-lg"><img src="{{ !empty($company->company_logo) ? Storage::url($company->company_logo) : asset('public/img/company.png') }}" width="25" alt="{{ $company->company_name }}"> <b>{{ str_limit($company->company_name, 15) }}</b></span>
|
2017-09-14 22:21:00 +03:00
|
|
|
</a>
|
|
|
|
<!-- Header Navbar: style can be found in header.less -->
|
|
|
|
<nav class="navbar navbar-static-top">
|
|
|
|
<!-- Sidebar toggle button-->
|
|
|
|
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div class="navbar-custom-menu">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<!-- Notifications: style can be found in dropdown.less -->
|
|
|
|
<li class="dropdown notifications-menu">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
|
<i class="fa fa-bell-o"></i>
|
|
|
|
@if ($notifications)
|
|
|
|
<span class="label label-warning">{{ $notifications }}</span>
|
|
|
|
@endif
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
2017-11-29 19:47:18 +03:00
|
|
|
<li class="header">{{ trans_choice('header.notifications.counter', $notifications, ['count' => $notifications]) }}</li>
|
2017-09-14 22:21:00 +03:00
|
|
|
<li>
|
|
|
|
<!-- inner menu: contains the actual data -->
|
|
|
|
<ul class="menu">
|
|
|
|
@if (count($invoices))
|
|
|
|
<li>
|
2017-12-16 16:02:31 +03:00
|
|
|
<a href="{{ url('customers/profile/read-invoices') }}">
|
|
|
|
<i class="fa fa-money text-red"></i> {{ trans_choice('header.notifications.overdue_invoices', count($invoices), ['count' => count($invoices)]) }}
|
2017-09-14 22:21:00 +03:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="footer"><a href="#">{{ trans('header.notifications.view_all') }}</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<!-- Tasks: style can be found in dropdown.less -->
|
|
|
|
<li class="dropdown tasks-menu">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
2017-10-21 15:29:54 +03:00
|
|
|
<i class="fa fa-flag-o"></i>
|
2017-09-14 22:21:00 +03:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li class="header">{{ trans('header.change_language') }}</li>
|
|
|
|
<li>
|
|
|
|
<!-- inner menu: contains the actual data -->
|
|
|
|
{!! language()->flags() !!}
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<!-- User Account: style can be found in dropdown.less -->
|
|
|
|
<li class="dropdown user user-menu">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
2017-10-21 15:29:54 +03:00
|
|
|
@if ($user->picture)
|
2018-01-03 14:02:27 +03:00
|
|
|
<img src="{{ Storage::url($user->picture->id) }}" class="user-image" alt="User Image">
|
2017-10-21 15:29:54 +03:00
|
|
|
@else
|
|
|
|
<i class="fa fa-user-o"></i>
|
|
|
|
@endif
|
|
|
|
@if (!empty($user->name))
|
|
|
|
<span class="hidden-xs">{{ $user->name }}</span>
|
|
|
|
@endif
|
2017-09-14 22:21:00 +03:00
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<!-- User image -->
|
|
|
|
<li class="user-header">
|
2017-10-21 15:29:54 +03:00
|
|
|
@if ($user->picture)
|
2018-01-03 14:02:27 +03:00
|
|
|
<img src="{{ Storage::url($user->picture->id) }}" class="img-circle" alt="User Image">
|
2017-10-21 15:29:54 +03:00
|
|
|
@else
|
|
|
|
<i class="fa fa-4 fa-user-o" style="color: #fff; font-size: 7em;"></i>
|
|
|
|
@endif
|
2017-09-14 22:21:00 +03:00
|
|
|
<p>
|
2017-10-21 15:29:54 +03:00
|
|
|
@if (!empty($user->name))
|
2017-09-14 22:21:00 +03:00
|
|
|
{{ $user->name }}
|
2017-10-21 15:29:54 +03:00
|
|
|
@endif
|
2017-09-14 22:21:00 +03:00
|
|
|
<small>{{ trans('header.last_login', ['time' => $user->last_logged_in_at]) }}</small>
|
|
|
|
</p>
|
|
|
|
</li>
|
|
|
|
<!-- Menu Footer-->
|
|
|
|
<li class="user-footer">
|
2017-12-16 16:02:31 +03:00
|
|
|
@permission('update-customers-profile')
|
2017-09-14 22:21:00 +03:00
|
|
|
<div class="pull-left">
|
2017-12-16 16:02:31 +03:00
|
|
|
<a href="{{ url('customers/profile/edit') }}" class="btn btn-default btn-flat">{{ trans('auth.profile') }}</a>
|
2017-09-14 22:21:00 +03:00
|
|
|
</div>
|
|
|
|
@endpermission
|
|
|
|
<div class="pull-right">
|
|
|
|
<a href="{{ url('customers/logout') }}" class="btn btn-default btn-flat">{{ trans('auth.logout') }}</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</header>
|