{{-- --}}
-
@if(Auth::user()->user_type == 'admin' || in_array('20', json_decode(Auth::user()->staff->role->permissions)))
-
@endif
-
@if ($addons->where('unique_identifier', 'pos_system')->first() != null && $addons->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 ($addons->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))) && $business->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
@if(Auth::user()->user_type == 'admin' || in_array('16', json_decode(Auth::user()->staff->role->permissions)))
@php
$conversation = \App\Conversation::where('receiver_id', Auth::user()->id)->where('receiver_viewed', '1')->count();
@endphp
-
@if ($conversation > 0)
{{ $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))
|| in_array(auth()->user()->staff->role->name, ['Content and Design']))
-
@endif
@if(Auth::user()->user_type == 'admin' || in_array('12', json_decode(Auth::user()->staff->role->permissions)))
-
@endif
@if ($addons->where('unique_identifier', 'affiliate_system')->first() != null)
-
@endif
@if ($addons->where('unique_identifier', 'offline_payment')->first() != null)
-
@endif
@if ($addons->where('unique_identifier', 'paytm')->first() != null)
-
@endif
@if ($addons->where('unique_identifier', 'club_point')->first() != null)
-
@endif
@if ($addons->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' || in_array(auth()->user()->email, config('custom.order_status_users')) || in_array(auth()->user()->staff->role->name, ['Category Manager']) )
-
@endif
@if(auth()->user()->user_type == 'admin' || auth()->user()->email == config('custom.support') || in_array(auth()->user()->staff->role->name, ['Senior Category Manager']) )
-
@endif
@if(auth()->user()->user_type == 'admin' )
-
@endif
@if(auth()->user()->user_type == 'admin' || auth()->user()->email == config('custom.support') )
-
@endif
@if(auth()->user()->user_type == 'admin' || in_array(auth()->user()->staff->role->name, ['Content and Design']))
-
@endif
@if(auth()->user()->user_type == 'admin' || in_array(auth()->user()->email, config('custom.report_users')) || in_array(auth()->user()->staff->role->name, ['Category Manager','Content and Design']))
-
@endif
@if(auth()->user()->user_type == 'admin' || in_array(auth()->user()->staff->role->name, ['Senior Category Manager']) )
-
@endif
@if(auth()->user()->user_type == 'admin' || in_array(auth()->user()->staff->role->name, ['Senior Category Manager']))
-
@endif
@include('inc.new-links')