@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->title }}

{!! $info->text !!}

@endforeach @endif @endif @php $messages = []; if( Auth::check() ){ $infoShop = \VanguardLTE\Shop::find(auth()->user()->shop_id); $infoGames = \VanguardLTE\JPG::select(\DB::raw('SUM(percent) AS percent'))->where(['shop_id' => auth()->user()->shop_id])->first(); if( $infoShop && ($infoGames->percent+$infoShop->percent) >= 100 ){ $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'))
Errors in block {{ strtoupper(session('blockError')) }}
@endif @if(!isset($hide_block)) @if(isset ($messages) && count($messages) > 0)

@lang('app.error')

{!! $messages[array_rand($messages)]; !!}

@endif @endif @if(isset ($errors) && count($errors) > 0)

@lang('app.error')

@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif @if(settings('siteisclosed'))

@lang('app.turned_off')

@lang('app.site_is_turned_off')

@endif @if(Session::get('success', false))