{{ $offre->name ?? __('messages.services') }}
@extends('client.layouts.app') @section('title', __('messages.services')) @section('styles') @endsection @section('content') @php $locale = strtolower((string) app()->getLocale()); $serviceGroups = $contacts->groupBy(function ($contact) { $service = trim((string) ($contact->service ?? '')); return $service !== '' ? $service : __('messages.service'); }); $quickLinks = collect(json_decode((string) setting('fast_links', '[]'), true)) ->filter(function ($item) { return is_array($item) && trim((string) ($item['title'] ?? '')) !== '' && trim((string) ($item['url'] ?? '')) !== '' && ($item['client_visible'] ?? 'yes') === 'yes'; }) ->values()->take(6); $categoryLabel = function ($category) use ($locale) { if (in_array($locale, ['ar', 'arabic'], true) && !empty($category->name_ar)) return $category->name_ar; if (in_array($locale, ['en', 'english'], true) && !empty($category->name_en)) return $category->name_en; return $category->name ?? '-'; }; $iconClass = function (string $s) { $n = strtolower($s); return match (true) { str_contains($n, 'finance') || str_contains($n, 'payment') => 'fas fa-university', str_contains($n, 'commercial') || str_contains($n, 'sales') => 'fas fa-store', str_contains($n, 'visa') => 'fas fa-globe', str_contains($n, 'hotel') || str_contains($n, 'reservation') => 'fas fa-hotel', str_contains($n, 'billet') || str_contains($n, 'ticket') => 'fas fa-ticket-alt', str_contains($n, 'support') => 'fas fa-headset', default => 'fas fa-briefcase', }; }; @endphp
{{ setting('site_description', __('messages.client_new_ticket_subtitle')) }}
{{ $offre->name ?? __('messages.services') }}
{{ $serviceName }}
{{ $group->count() }} {{ $group->count() > 1 ? __('messages.contact_lists') : __('messages.contact_list') }}
{{ __('messages.client_no_contacts') }}