inital commit
This commit is contained in:
27
resources/views/partials/supportsubmenu.blade.php
Normal file
27
resources/views/partials/supportsubmenu.blade.php
Normal file
@@ -0,0 +1,27 @@
|
||||
@php
|
||||
$supports = getSession('new_ticket');
|
||||
$support_count = is_array($supports) ? count($supports) : 0 ;
|
||||
|
||||
@endphp
|
||||
@if(isAdmin() || isClient())
|
||||
<li class="nav-item notifications-menu admin-ticket">
|
||||
|
||||
<a href="{{ $support_count>0 ? 'javascript:;' : route('list.client.support')}}" class="user-profile dropdown-toggle" data-toggle="{{ $support_count>0 ? 'dropdown' : ''}}" aria-expanded="false">
|
||||
<i class="fa fa-bell-o"></i>
|
||||
<span class="label label-warning"></span>
|
||||
@if($support_count > 0)
|
||||
<span class="badge badge-light"> @php echo $support_count @endphp </span>
|
||||
@endif
|
||||
</a>
|
||||
|
||||
@if($support_count > 0)
|
||||
<ul class="dropdown-menu dropdown-usermenu pull-right">
|
||||
@foreach($supports as $key => $obj)
|
||||
|
||||
<li><a href=" {{ route('view.client.support',$obj->id) }}"> {{$obj->title}}</a></li>
|
||||
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</li>
|
||||
@endif
|
||||
Reference in New Issue
Block a user