41 lines
2.6 KiB
PHP
41 lines
2.6 KiB
PHP
<div class="topbar">
|
|
<div class="mr-5 mt-7" style="display: inline-block;text-align: right;">
|
|
<span class="zn-text-logo" style="display: block;font-size: 12px;text-transform: uppercase;">{{Auth::guard('admin')->user()->full_name}}</span>
|
|
@php
|
|
if (Auth::guard('admin')->user()->role == 2) {
|
|
$merchantGet = \DB::table('merchant')->where('mid',Auth::guard('admin')->user()->mid)->first();
|
|
$merchant = ' | '.$merchantGet->merchant_nm;
|
|
}else{
|
|
$merchant = '';
|
|
}
|
|
|
|
$role = collect(\DB::select("SELECT * FROM groups_admin where id = ?",[Auth::guard('admin')->user()->role]))->first();
|
|
|
|
@endphp
|
|
<span style="display: block;margin-left: 8px;color: #6ac1ef;font-size: 11px;font-weight: 400;">{{$role->description}} {{($merchant)}}</span>
|
|
</div>
|
|
<!--begin::User-->
|
|
<div class="topbar-item mr-4">
|
|
<div class="btn btn-icon btn-sm btn-clean " id="kt_quick_user_toggle">
|
|
<span class="svg-icon svg-icon-lg svg-icon-primary ">
|
|
<!--begin::Svg Icon | path:assets/media/svg/icons/General/User.svg-->
|
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24px" height="24px" viewBox="0 0 24 24" version="1.1">
|
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
<polygon points="0 0 24 0 24 24 0 24" />
|
|
<path d="M12,11 C9.790861,11 8,9.209139 8,7 C8,4.790861 9.790861,3 12,3 C14.209139,3 16,4.790861 16,7 C16,9.209139 14.209139,11 12,11 Z" fill="#000000" fill-rule="nonzero" opacity="0.3" />
|
|
<path d="M3.00065168,20.1992055 C3.38825852,15.4265159 7.26191235,13 11.9833413,13 C16.7712164,13 20.7048837,15.2931929 20.9979143,20.2 C21.0095879,20.3954741 20.9979143,21 20.2466999,21 C16.541124,21 11.0347247,21 3.72750223,21 C3.47671215,21 2.97953825,20.45918 3.00065168,20.1992055 Z" fill="#000000" fill-rule="nonzero" />
|
|
</g>
|
|
</svg>
|
|
<!--end::Svg Icon-->
|
|
</span>
|
|
</div>
|
|
{{-- <div onclick="read_notif();getNotifAdmin();" class="btn btn-icon btn-sm btn-danger font-weight-bolder p-0 ml-3 count_notif_admin" id="kt_quick_notifications_toggle">0</div> --}}
|
|
<span class="switch switch-sm switch-outline switch-icon switch-primary zn-switch">
|
|
<label>
|
|
<input id="setThemeDark" onchange="darkTheme();" type="checkbox" name="select">
|
|
<span></span>
|
|
</label>
|
|
</span>
|
|
</div>
|
|
<!--end::User-->
|
|
</div> |