@if(env('APPLICATION_ID') == 300 || env('APPLICATION_ID') == 301 || env('APPLICATION_ID') == 304 || env('APPLICATION_ID') == 334)
@else
@endif {{-- @if(\Auth::user()->is_darkmode == 1) @php $logo = \App\Models\Setting::where('key', 'THEME_MENU_LOGO_DARK')->first()->value; @endphp @else --}} @php $logo = \App\Models\Setting::where('key', 'THEME_MENU_LOGO')->first()->value; @endphp {{-- @endif --}} @if(env('APPLICATION_ID') == 300 || env('APPLICATION_ID') == 301 || env('APPLICATION_ID') == 304 || env('APPLICATION_ID') == 334) Home @endif
@if(\Auth::user()) {{ __('Dashboard') }} @endif @if(\App\Models\Setting::where('key', 'USE_dB_NAV')->first()->value == 1) {{-- Navigation Links DB --}}
@if(\Auth::user()) {{ __('Dashboard') }} @endif {{-- DB NAV STARTS HERE --}} @php $items = \App\Models\Article::where('top_menu', 1)->whereNull('parent_id')->orderBy('sort')->get(); @endphp @foreach($items as $item) @if($item->is_parent == 1)
@php $subitems = \App\Models\Article::where('published', '1')->where('top_menu', 1)->where('parent_id', $item->id)->orderBy('sort')->get(); @endphp @foreach($subitems as $subitem) {{ __($subitem->menu_title) }} @endforeach
@else @if($item->menu_title == 'Register') {{ __($item->menu_title) }} @else {{ __($item->menu_title) }} @endif @endif @endforeach {{-- DB NAV ENDS HERE --}}
@else {{-- Navigation Links NonDB --}}
@if(\Auth::user()) {{ __('Dashboard') }} @else {{ __('Home2') }} @endif
{{ __('Convention Timeline') }} {{ __('Speaker Meetings') }} {{ __('Marathon Meetings') }} {{ __('Al-Anon Events') }} {{ __('Sporting Events') }} {{ __('My Schedule') }}
{{ __('Marathon Meetings') }} {{ __('Register') }}
{{ __('About') }} {{ __('Area Information') }} {{ __('Information') }} {{ __('Volunteer') }}
{{ __('Contact Us1') }}
@endif
@if(\Auth::user()) @if (Laravel\Jetstream\Jetstream::managesProfilePhotos()) @else @endif
{{ __('Manage Account') }}
@if(\Auth::user()->isImpersonating()) {{ __('Stop impersonation') }} @endif {{ __('Profile') }} @if(Auth::user()->role->name == 'su' || Auth::user()->role->name == 'marathon') {{ __('Admin') }} @endif @if (Laravel\Jetstream\Jetstream::hasApiFeatures()) {{ __('API Tokens') }} @endif
@csrf {{ __('Log Out') }}
@else
@if(\Auth::user()) {{ __('Dashboard') }} @else {{ __('Log In') }} @endif
@endif
{{ __('Convention Timeline') }} {{ __('Speaker Meetings') }} @if(env('APPLICATION_ID') == 300 || env('APPLICATION_ID') == 301) {{ __('AA Marathons') }} {{ __('Al-Anon Marathons') }} @else {{ __('Marathon Meetings') }} @endif {{ __('Register') }} {{ __('Information') }} {{ __('Contact Us') }} @if(\Auth::user()) {{ __('Dashboard') }} @else {{ __('Log In') }} @endif
{{ __('Home') }}
{{ __('Events') }}
{{ __('Marathon Meetings') }}
{{ __('Register') }}
{{ __('Information') }}
{{ __('Contact Us4') }}
@php $eventcountdowndays = 0; $eventstartdate = \App\Models\Setting::where('key', 'EVENT_START_DATE')->first()->value; $eventcountdowndays = today()->diffInDays($eventstartdate); // $eventcountdowndays = 0; if(isset(\App\Models\Setting::where('key', 'ANNOUNCEMENT_STRIP')->first()->value)) { $striptext = \App\Models\Setting::where('key', 'ANNOUNCEMENT_STRIP')->first()->value; } // if($eventcountdowndays != 0) { // $striptext = "Convention Countdown: ".$eventcountdowndays." days!"; // } else { // $striptext = "Online registration for 2022 opening soon!"; // } // dd(now()); $nextmeeting = \App\Models\Event::where('published',1)->whereIn('event_type_id',[3,4,5,6,7,9,10,11,12,14])->orderBy('start_at')->where('start_at','>=',now())->first(); @endphp @if(isset($eventcountdowndays) && $eventcountdowndays > 1)
{!! $striptext !!}
@elseif(isset($nextmeeting)) @php $meeting_type = $nextmeeting->event_type_id; $meeting_link = ""; $meeting_link_close = ""; if(\Auth::user()) { $meeting_link = ''; $meeting_link_close = ""; } if($nextmeeting->event_type_id == 3) { // $meeting_link = ''; // } elseif($nextmeeting->event_type_id == 4) { // $meeting_link = ''; // } elseif($nextmeeting->event_type_id == 11) { // $meeting_link = ''; // } else { // $meeting_link = ''; } @endphp
Next up: {{ date('g:i a',strtotime($nextmeeting->start_at)) }} - {!! $meeting_link !!}{!! $nextmeeting->name !!}{!! $meeting_link_close !!}
@endif