{{--
{!! Form::open(['url'=>'/search', 'method'=>'get', 'class'=>'pt-2 whitespace-nowrap dark:text-slate-300 border-none']) !!}
{{Form::text('search', $_GET['search'] ?? null, ['class'=>'whitespace-nowrap dark:bg-slate-900','placeholder' => 'Search', 'required', 'minlength' => 3])}}
{!! Form::close() !!}
--}}

  1. {{-- {{ __('Dashboard') }} --}}
  2. {{ __('Search Results') }}

Search Results

{!! Form::open(['url'=>'/search', 'method'=>'get', 'class'=>'pt-2 whitespace-nowrap dark:text-slate-300 border-none']) !!}
{{--
{{Form::text('body', null, ['class' => 'write_msg', 'placeholder' => 'Type a message'])}}
--}}
{{Form::text('search',$_GET['search'] ?? null, ['class'=>'whitespace-nowrap dark:bg-slate-900','placeholder' => 'Search', 'required', 'minlength' => 3])}}
{!! Form::close() !!}
@if($searchterm != "") @if(\Auth::user()->role->name == 'su')
Users
User search results visible only to admins
@php $count=0; @endphp @foreach($users as $user)
Phone: {{ localize_us_number($user->phone) }}
Role: {{ $user->role->name }}
@if($user->email_verified_at != null && $user->role->name != 'guest') Impersonate @endif
@php $count++; @endphp @endforeach
@endif
Events
@foreach($events as $event)
@if($event->type->name == 'AA Marathon') Type: {{ $event->type->name }} @elseif($event->type->name == 'Al-Anon Marathon') Type: {{ $event->type->name }} @else Type: {{ $event->type->name }} @endif
When: {{date('D',strtotime($event->start_at))}} {{date('g:i A',strtotime($event->start_at))}}
@if($event->location) Location: {{ $event->location->name }} @if($event->location->room) - {{ $event->location->room }} @endif @else {{ $event->location?->name }} @if($event->location?->room) - {{ $event->location->room }} @endif @endif
@endforeach {{$events->appends(\Arr::except(Request::query(), 'events'))->links()}}
Locations
@php $count=0; @endphp @foreach($locations as $location) @php $count++; @endphp @endforeach
@else Please enter a search term @endif
@livewire('footer-links')