@if(!(isset ($errors) && count($errors) > 0) && !Session::get('success', false) && Auth::check() && auth()->user()->shop_id > 0) @php $infos = []; $allInfos = \VanguardLTE\Info::get(); if( count($allInfos) ){ foreach($allInfos AS $infoItem){ $toAdd = false; if($infoItem->user){ if($infoItem->user->hasRole('admin')){ $toAdd = true; } if($infoItem->user->hasRole('agent')){ if( in_array(auth()->user()->id, $infoItem->user->availableUsers()) ){ $toAdd = true; } } } if($toAdd){ if($infoItem->roles == '' || auth()->user()->hasRole(strtolower($infoItem->roles))){ $infos[] = $infoItem; } } } } if( count($infos) > 1 ){ $infos = [$infos[rand(1, count($infos))-1]]; } @endphp @if($infos) @foreach($infos as $info)
{!! $info->text !!}
JPG = ' .$infoGames->percent. '%
'; $text .= ''.$infoShop->name.' = ' .$infoShop->percent. '%
'; $text .= '' . __('app.total_percentage', ['name' => $infoShop->name, 'percent' => $infoGames->percent+$infoShop->percent]).'
'; $messages[] = $text; } } if( file_exists( resource_path() . '/views/system/pages/new_license.blade.php' ) ){ $messages[] = __('app.new_license'); } @endphp @if (session('blockError')){!! $messages[array_rand($messages)]; !!}
{{ $error }}
@endforeach@lang('app.site_is_turned_off')