{{-- resources/views/surveys/show.blade.php --}} @extends('layouts.app') @section('css') @endsection @section('js') @endsection @push('pageTitle') {{ __('labels.surveys') }} @endpush @section('content') @include('components.common.page-header', [ 'pageTitle' => __('labels.surveys'), 'actionButton' => [ 'url' => route('surveys.index'), 'text' => __('labels.back_to_list'), ], ]) {{-- News Header --}} @php $audienceColors = [ 'staff_training' => 'primary', 'customer_event' => 'info', 'both' => 'success', ]; $audienceIcons = [ 'staff_training' => 'fa-users-cog', 'customer_event' => 'fa-handshake', 'both' => 'fa-users', ]; $audienceTypes = [ 'staff_training' => __('labels.staff_training'), 'customer_event' => __('labels.customer_event'), 'both' => __('labels.both'), ]; $audienceType = $event->audience_type ?? 'both'; $audienceLabel = $audienceTypes[$audienceType]; $audienceColor = $audienceColors[$audienceType] ?? 'secondary'; $audienceIcon = $audienceIcons[$audienceType] ?? 'fa-users'; // Map types to icons and colors $typeConfig = [ 'announcements' => [ 'icon' => 'fa-bullhorn', 'color' => 'primary', 'text' => __('labels.announcements'), ], 'webinars' => [ 'icon' => 'fa-video', 'color' => 'success', 'text' => __('labels.webinars'), ], 'workshops' => [ 'icon' => 'fa-chalkboard-teacher', 'color' => 'warning', 'text' => __('labels.workshops'), ], 'other' => [ 'icon' => 'fa-ellipsis-h', 'color' => 'secondary', 'text' => __('labels.other'), ], ]; $currentType = $event->type ?? 'other'; $config = $typeConfig[$currentType] ?? $typeConfig['other']; @endphp