@if(!(isset ($errors) && count($errors) > 0) && !Session::get('success', false) && Auth::check()) @php $path = str_replace('backend/', '', Request::path()); $path = str_replace('backend', '', $path); $path = preg_replace('/[0-9]+/', '*', $path); $infos = []; $allInfos = \VanguardLTE\Info::where('link', $path)->get(); if( count($allInfos) ){ foreach($allInfos AS $infoItem){ if($infoItem->user){ if($infoItem->user->hasRole('admin')){ $infos[] = $infoItem; } if($infoItem->user->hasRole('agent')){ if( in_array(auth()->user()->id, $infoItem->user->availableUsers()) ){ $infos[] = $infoItem; } } } } } if( count($infos) > 1 ){ $infos = [$infos[rand(1, count($infos))-1]]; } @endphp @if($infos) @foreach($infos as $info) @if($info->roles == '' || auth()->user()->hasRole(strtolower($info->roles)))
{!! $info->text !!}
JPG = ' .$infoGames->percent. '%
'; $text .= ''.$infoShop->name.' = ' .$infoShop->percent. '%
'; $text .= '' . __('app.total_percentage', ['name' => $infoShop->name, 'percent' => $infoGames->percent+$infoShop->percent]).'
'; $messages[] = $text; } } @endphp @if (session('blockError')){!! $messages[array_rand($messages)]; !!}
{{ $error }}
@endforeach@lang('app.site_is_turned_off')