| 
<div x-data="{}">@if($confirmingLogout)
 <div  class="z-10 fixed bottom-0 inset-x-0 px-4 pb-4 sm:inset-0 sm:flex sm:items-center sm:justify-center">
 <div class="fixed inset-0">
 <div class="absolute inset-0 bg-gray-500 opacity-75"></div>
 </div>
 <div @click.away="@this.set('confirmingLogout', false)" class="bg-white rounded-lg overflow-hidden shadow-xl transform sm:max-w-lg sm:w-full">
 <div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
 <div class="sm:flex sm:items-start">
 <div class="mt-3 text-center sm:mt-0 sm:text-left">
 <h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-headline">
 {{ __('Log Out Other Browser Sessions') }}
 </h3>
 <div class="mt-3">
 <p class="text-sm text-gray-600">
 {{ __('Please enter your password to confirm you would like to log out of your other browser sessions across all of your devices.') }}
 </p>
 
 <input wire:model="password" type="password" class="mt-2 rounded-md shadow-sm border-gray-300 focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50 w-full" placeholder="{{ __('Password') }}">
 
 @error('password')
 <p class="text-sm mt-4 text-red-500">
 {{ $message }}
 </p>
 @enderror
 </div>
 </div>
 </div>
 </div>
 <div class="bg-white px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse flex flex-col">
 <span class="flex w-full rounded-md shadow-sm sm:ml-3 sm:w-auto">
 <button wire:click="logoutOtherBrowserSessions" type="button" class="px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 shadow-sm hover:bg-indigo-500 focus:outline-none focus:shadow-outline-blue focus:bg-indigo-500 active:bg-indigo-600 transition duration-150 ease-in-out">
 {{ __('Log Out Other Browser Sessions') }}
 </button>
 </span>
 <span class="mt-3 flex w-full rounded-md shadow-sm sm:mt-0 sm:w-auto">
 <button wire:click="$set('confirmingLogout', false)" class="w-full items-center py-2 px-4 border border-gray-300 text-sm font-medium rounded-md bg-white focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:text-gray-800 active:bg-gray-50 transition ease-in-out duration-150">
 {{ __('Close') }}
 </button>
 </span>
 </div>
 </div>
 </div>
 @endif
 
 <div class="shadow overflow-hidden sm:rounded-md">
 <div class="px-4 py-5 bg-white sm:p-6">
 <p class="text-sm text-gray-600">
 {{ __('If necessary, you may log out of all of your other browser sessions across all of your devices. Some of your recent sessions are listed below; however, this list may not be exhaustive. If you feel your account has been compromised, you should also update your password.') }}
 </p>
 @if (count($this->sessions) > 0)
 <div class="mt-5 space-y-6">
 <!-- Other Browser Sessions -->
 @foreach ($this->sessions as $session)
 <div class="flex items-center">
 <div>
 @if ($session->agent->isDesktop())
 <svg fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" stroke="currentColor" class="w-8 h-8 text-gray-500">
 <path d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path>
 </svg>
 @else
 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" class="w-8 h-8 text-gray-500">
 <path d="M0 0h24v24H0z" stroke="none"></path><rect x="7" y="4" width="10" height="16" rx="1"></rect><path d="M11 5h2M12 17v.01"></path>
 </svg>
 @endif
 </div>
 
 <div class="ml-3">
 <div class="text-sm text-gray-600">
 {{ $session->agent->platform() }} - {{ $session->agent->browser() }}
 </div>
 
 <div>
 <div class="text-xs text-gray-500">
 {{ $session->ip_address }},
 
 @if ($session->is_current_device)
 <span class="text-green-500 font-semibold">{{ __('This device') }}</span>
 @else
 {{ __('Last active') }} {{ $session->last_active }}
 @endif
 </div>
 </div>
 </div>
 </div>
 @endforeach
 </div>
 @endif
 
 <div class="flex items-center mt-5">
 <button wire:click="confirmLogout" class="px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 shadow-sm hover:bg-indigo-500 focus:outline-none focus:shadow-outline-blue focus:bg-indigo-500 active:bg-indigo-600 transition duration-150 ease-in-out">
 {{ __('Log Out Other Browser Sessions') }}
 </button>
 </div>
 </div>
 </div>
 </div>
 
 |