@include('partials._events_submenu')

{{substr($settings->where('key', 'EVENT_START_DATE')->first()->value,0,4)}} {{$settings->where('key', 'EVENT_SHORTNAME')->first()->value}} Security Schedule

{{-- --}}
{{-- Mobile --}} @php $btn0color = 'green'; $btn1color = 'blue'; $btn2color = 'blue'; $btn3color = 'blue'; $btn4color = 'blue'; if(isset($_GET['affiliation'])) { if($_GET['affiliation'] == 1) { $btn0color = 'blue'; $btn1color = 'green'; $btn2color = 'blue'; $btn3color = 'blue'; $btn4color = 'blue'; } if($_GET['affiliation'] == 2) { $btn0color = 'blue'; $btn1color = 'blue'; $btn2color = 'green'; $btn3color = 'blue'; $btn4color = 'blue'; } if($_GET['affiliation'] == 3) { $btn0color = 'blue'; $btn1color = 'blue'; $btn2color = 'blue'; $btn3color = 'green'; $btn4color = 'blue'; } if($_GET['affiliation'] == 4) { $btn0color = 'blue'; $btn1color = 'blue'; $btn2color = 'blue'; $btn2color = 'blue'; $btn4color = 'green'; } } @endphp {{--
Available filters
All Events AA Events Al-Anon Events @if($settings->where('key', 'HAS_ACA_AFFILIATION')->first()->value == 1) ACA Events @endif @if($settings->where('key', 'HAS_ALATEEN_AFFILIATION')->first()->value == 1) Alateen Events @endif --}} @foreach(\App\Models\Event::where('published', 1) ->where('is_timeline', 1) ->where('affiliation_type_id', 1) ->whereIn('event_type_id', [22]) ->groupBy(\DB::raw('DATE(start_at)')) ->get() as $m) @php $affiliation1 = 1; $affiliation2 = 2; $affiliation3 = 3; $affiliation4 = 4; if(isset($_GET['affiliation'])) { $affiliation1 = $_GET['affiliation']; $affiliation2 = $_GET['affiliation']; $affiliation3 = $_GET['affiliation']; $affiliation4 = $_GET['affiliation']; } @endphp @foreach(\App\Models\Event::where('published', 1) ->where('is_timeline', 1) ->whereIn('event_type_id', [22]) ->whereDate('start_at', date('Y-m-d', strtotime($m->start_at))) ->whereIn('affiliation_type_id',[$affiliation1,$affiliation2,$affiliation3,$affiliation4]) ->orderBy('start_at', 'asc') ->get() as $event) @endforeach @endforeach
{{date('l, F j', strtotime($m->start_at))}}
{{date('h:i a',strtotime($event->start_at))}} @if(\Auth::user()) {{$event->name}} @if($event->virtual_is_active == 1) @if (Carbon\Carbon::now()->between(date('Y-m-d H:i:s',strtotime($event->start_at) - $event->virtual_lead_time * 60 ), date('Y-m-d H:i:s',strtotime($event->start_at)+$event->duration * 60 * 60))) {{$event->virtual_is_hybrid == 0 ? "(".$event->virtual_type->name." Only) " : "(Hybrid) "}}
Join {{$event->virtual_type->name}} Meeting Code: {{$event->virtual_code}} @endif @if(date('Y-m-d H:i:s', time()) < date('Y-m-d H:i:s',strtotime($event->start_at) - $event->virtual_lead_time * 60 )) {{$event->virtual_is_hybrid == 0 ? "(".$event->virtual_type->name." Only) " : "(Hybrid) "}}
Meeting ID will be posted here {{$event->virtual_lead_time}} minutes before the meeting starts @endif @if(date('Y-m-d H:i:s', time()) > date('Y-m-d H:i:s',strtotime($event->start_at)+$event->duration * 60 * 60)) (This {{$event->virtual_type->name}} meeting has ended) @endif @endif {{-- @if(\Auth::user()->my_schedule()->where('event_id', $event->id)->first()) @else @endif --}} @else {{$event->name}} @if($event->virtual_is_active == 1) @if (Carbon\Carbon::now()->between(date('Y-m-d H:i:s',strtotime($event->start_at) - $event->virtual_lead_time * 60 ), date('Y-m-d H:i:s',strtotime($event->start_at)+$event->duration * 60 * 60))) {{$event->virtual_is_hybrid == 0 ? "(".$event->virtual_type->name." Only) " : "(Hybrid) "}}
Join {{$event->virtual_type->name}} Meeting Code: {{$event->virtual_code}} @endif @if(date('Y-m-d H:i:s', time()) < date('Y-m-d H:i:s',strtotime($event->start_at) - $event->virtual_lead_time * 60 )) {{$event->virtual_is_hybrid == 0 ? "(".$event->virtual_type->name." Only) " : "(Hybrid) "}}
Meeting ID will be posted here {{$event->virtual_lead_time}} minutes before the meeting starts @endif @if(date('Y-m-d H:i:s', time()) > date('Y-m-d H:i:s',strtotime($event->start_at)+$event->duration * 60 * 60)) (This {{$event->virtual_type->name}} meeting has ended) @endif @endif @endif
@livewire('footer-links')