@extends('layouts.admin') @section('content')

{{ $title }}

@if(!empty($error))

{{ $error }}

@endif
@csrf @if(!empty($user['id'])) @endif
@if(!empty($user['id']))

Leave blank to keep the current password

@endif
@if(!empty($user->rolechangedate ?? '')) @php $expiryDate = \Carbon\Carbon::parse($user->rolechangedate); $isExpired = $expiryDate->isPast(); $daysUntilExpiry = $expiryDate->diffInDays(now()); @endphp @if($isExpired) Expired @elseif($daysUntilExpiry <= 7) Expiring Soon @else Active @endif @else No Expiry @endif
@if(!empty($user->rolechangedate ?? ''))

@if($isExpired) Role expired {{ $expiryDate->diffForHumans() }} @else Role expires {{ $expiryDate->diffForHumans() }} @endif

{{ $expiryDate->format('F j, Y') }} {{ $expiryDate->format('g:i A') }}

@if($daysUntilExpiry <= 7 && !$isExpired)

{{ $daysUntilExpiry }} day{{ $daysUntilExpiry != 1 ? 's' : '' }} and {{ $expiryDate->diffInHours(now()) % 24 }} hour{{ ($expiryDate->diffInHours(now()) % 24) != 1 ? 's' : '' }} remaining

@endif
@else

Leave empty for permanent role assignment, or use quick actions above to set an expiry date and time.

@endif
@if(!empty($user['id']))
@endif
@if(!empty($user['id']))
movieview ?? 0)) ? 'checked' : '' }} class="h-4 w-4 text-blue-600 dark:text-blue-400 focus:ring-blue-500 border-gray-300 dark:border-gray-600 rounded">
musicview ?? 0)) ? 'checked' : '' }} class="h-4 w-4 text-blue-600 dark:text-blue-400 focus:ring-blue-500 border-gray-300 dark:border-gray-600 rounded">
gameview ?? 0)) ? 'checked' : '' }} class="h-4 w-4 text-blue-600 dark:text-blue-400 focus:ring-blue-500 border-gray-300 dark:border-gray-600 rounded">
consoleview ?? 0)) ? 'checked' : '' }} class="h-4 w-4 text-blue-600 dark:text-blue-400 focus:ring-blue-500 border-gray-300 dark:border-gray-600 rounded">
bookview ?? 0)) ? 'checked' : '' }} class="h-4 w-4 text-blue-600 dark:text-blue-400 focus:ring-blue-500 border-gray-300 dark:border-gray-600 rounded">
xxxview ?? 0)) ? 'checked' : '' }} class="h-4 w-4 text-blue-600 dark:text-blue-400 focus:ring-blue-500 border-gray-300 dark:border-gray-600 rounded">
@endif
Cancel
@endsection