@php $is_mobile = isMobile(); $common_settings = session()->get('business.common_settings'); $is_admin = auth() ->user() ->hasRole('Admin#' . session('business.id')) ? true : false; $enabled_modules = !empty(session('business.enabled_modules')) ? session('business.enabled_modules') : []; $pos_settings = !empty(session('business.pos_settings')) ? json_decode(session('business.pos_settings'), true) : []; @endphp @if ($is_mobile) @endif
@if($is_admin || auth()->user()->hasAnyPermission(['sell.view', 'sell.create', 'direct_sell.access', 'view_own_sell_only', 'access_sell_return'])) @if (auth()->user()->can('access_sell_return') || auth()->user()->can('access_own_sell_return')) @lang('lang_v1.list_sell_return') @endif @endif