{{-- --}}
-
@if(Auth::user()->user_type == 'admin' || in_array('20', json_decode(Auth::user()->staff->role->permissions)))
-
@endif
@if (\App\Addon::where('unique_identifier', 'pos_system')->first() != null && \App\Addon::where('unique_identifier', 'pos_system')->first()->activated)
-
@endif
@if(Auth::user()->user_type == 'admin' || in_array('1', json_decode(Auth::user()->staff->role->permissions)))
-
@endif
@if(Auth::user()->user_type == 'admin' || in_array('2', json_decode(Auth::user()->staff->role->permissions)))
-
@if(Auth::user()->user_type == 'admin' || in_array('1.2', json_decode(Auth::user()->staff->role->permissions)))
-
@endif
@endif
@if(Auth::user()->user_type == 'admin' || in_array('3', json_decode(Auth::user()->staff->role->permissions)))
@php
$orders = DB::table('orders')
->orderBy('code', 'desc')
->join('order_details', 'orders.id', '=', 'order_details.order_id')
->where('order_details.seller_id', \App\User::where('user_type', 'admin')->first()->id)
->where('orders.viewed', 0)
->select('orders.id')
->distinct()
->count();
@endphp
-
@endif
@if(Auth::user()->user_type == 'admin' || in_array('14', json_decode(Auth::user()->staff->role->permissions)))
{{-- -
--}}
@endif
@if(Auth::user()->user_type == 'admin')
@if(Auth::user()->id != "320")
-
@endif
@endif
@if(Auth::user()->user_type == 'admin' || in_array('22', json_decode(Auth::user()->staff->role->permissions)))
-
@endif
@if(Auth::user()->user_type == 'admin' || in_array('21', json_decode(Auth::user()->staff->role->permissions)))
@if (\App\Addon::where('unique_identifier', 'refund_request')->first() != null)
-
@endif
@endif
@if((Auth::user()->user_type == 'admin' || in_array('5', json_decode(Auth::user()->staff->role->permissions))) && \App\BusinessSetting::where('type', 'vendor_system_activation')->first()->value == 1)
-
@endif
@if(Auth::user()->user_type == 'admin' || in_array('6', json_decode(Auth::user()->staff->role->permissions)))
-
@endif
@php
$conversation = \App\Conversation::where('receiver_id', Auth::user()->id)->where('receiver_viewed', '1')->get();
@endphp
@if(Auth::user()->user_type == 'admin' || in_array('16', json_decode(Auth::user()->staff->role->permissions)))
-
@if (count($conversation) > 0)
{{ count($conversation) }}
@endif
@endif
@if(Auth::user()->user_type == 'admin' || in_array('17', json_decode(Auth::user()->staff->role->permissions)))
@if(Auth::user()->id != "320")
-
@endif
@endif
@if(Auth::user()->user_type == 'admin' || in_array('7', json_decode(Auth::user()->staff->role->permissions)))
-
@endif
@if(Auth::user()->user_type == 'admin' || in_array('8', json_decode(Auth::user()->staff->role->permissions)))
-
@endif
@if(Auth::user()->user_type == 'admin' || in_array('9', json_decode(Auth::user()->staff->role->permissions)))
-
@endif
@if(Auth::user()->user_type == 'admin' || in_array('12', json_decode(Auth::user()->staff->role->permissions)))
-
@endif
@if (\App\Addon::where('unique_identifier', 'affiliate_system')->first() != null)
-
@endif
@if (\App\Addon::where('unique_identifier', 'offline_payment')->first() != null)
-
@endif
@if (\App\Addon::where('unique_identifier', 'paytm')->first() != null)
-
@endif
@if (\App\Addon::where('unique_identifier', 'club_point')->first() != null)
-
@endif
@if (\App\Addon::where('unique_identifier', 'otp_system')->first() != null)
@if(Auth::user()->user_type == 'admin')
-
@endif
@endif
@if(Auth::user()->user_type == 'admin' || in_array('13', json_decode(Auth::user()->staff->role->permissions)))
@php
$support_ticket = DB::table('tickets')
->where('viewed', 0)
->select('id')
->count();
@endphp
-
@endif
@if(Auth::user()->user_type == 'admin' || in_array('11', json_decode(Auth::user()->staff->role->permissions)))
-
@endif
@if(Auth::user()->user_type == 'admin' || in_array('10', json_decode(Auth::user()->staff->role->permissions)))
-
@endif
@if(Auth::user()->user_type == 'admin' || in_array('15', json_decode(Auth::user()->staff->role->permissions)))
@if(Auth::user()->user_type == 'admin')
-
@endif
@endif
@if(Auth::user()->user_type == 'admin')
-
-
-
{{-- -
--}}
-
-
-
-
-
@endif