@if(\App::currentLocale() == 'iq' || \App::currentLocale() == 'ku') @endif

{{__('messages.issue_token.issue token')}}

@if(isset($locationName) && $locationName)
location_on {{ $locationName }}
@endif
@if(isset($user) && $user) @can('issue token')

{{ $user->name ?? 'User' }}

@if(isset($isSuperAdmin) && $isSuperAdmin) home {{__('messages.common.home')}}
@endif logout {{__('messages.common.logout')}}
@endcan @endif
@if(!$isLicenseValid)
error

{{__('messages.errors.license_not_activated')}}

{{__('messages.errors.license_not_activated_description')}}

@endif

{{__('messages.issue_token.click one service to issue token')}}

@php $serviceCount = $services->count(); // Determine grid columns based on service count if ($serviceCount == 1) { $gridCols = 'grid-cols-1 max-w-md mx-auto'; } elseif ($serviceCount == 2) { $gridCols = 'grid-cols-1 sm:grid-cols-2 max-w-4xl mx-auto'; } elseif ($serviceCount == 3) { $gridCols = 'grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 max-w-6xl mx-auto'; } else { // 4 or more services $gridCols = 'grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-4'; } @endphp
@foreach($services as $service) @php // Determine icon based on service name keywords $serviceName = strtolower($service->name); $icon = 'business'; // default $iconColor = 'from-blue-600 via-blue-500 to-blue-400'; // default // Check for payment-related keywords (Kurdish: پارەدان, Arabic: دفع, English: payment, pay) if (stripos($serviceName, 'payment') !== false || stripos($serviceName, 'پارەدان') !== false || stripos($serviceName, 'دفع') !== false || stripos($serviceName, 'pay') !== false || stripos($serviceName, 'پاره') !== false || stripos($serviceName, 'مال') !== false) { $icon = 'credit_card'; $iconColor = 'from-blue-600 via-blue-500 to-blue-400'; } // Check for form-related keywords (Kurdish: فورمە, Arabic: العرائض, English: form) elseif (stripos($serviceName, 'فورمە') !== false || stripos($serviceName, 'form') !== false || stripos($serviceName, 'عرائض') !== false || stripos($serviceName, 'form') !== false) { $icon = 'description'; $iconColor = 'from-purple-600 via-purple-500 to-purple-400'; } // Check for enrollment-related keywords (Kurdish: تومارکڕدنی, Arabic: ادخال, English: enrollment, registration) elseif (stripos($serviceName, 'تومار') !== false || stripos($serviceName, 'enrollment') !== false || stripos($serviceName, 'ادخال') !== false || stripos($serviceName, 'registration') !== false || stripos($serviceName, 'زانیاری') !== false || stripos($serviceName, 'بيانات') !== false) { $icon = 'person_add'; $iconColor = 'from-green-600 via-green-500 to-green-400'; } // Check for approval-related keywords (Kurdish: پەسەند, Arabic: تدقيق, English: approval, verify) elseif (stripos($serviceName, 'پەسەند') !== false || stripos($serviceName, 'approval') !== false || stripos($serviceName, 'تدقيق') !== false || stripos($serviceName, 'verify') !== false || stripos($serviceName, 'verify') !== false) { $icon = 'check_circle'; $iconColor = 'from-orange-600 via-orange-500 to-orange-400'; } @endphp @endforeach

{{__('messages.issue_token.search_token')}}