@extends('layouts.app') @push('pageTitle') {{ __('labels.events') }} @endpush @push('css') @endpush @section('content')
| # | {{ __('labels.title') }} | {{ __('labels.audience') }} | {{ __('labels.from') }} | {{ __('labels.to') }} | {{ __('labels.statistics') }} | {{ __('labels.you_response') }} | {{ __('labels.published_at') }} | {{ __('labels.action') }} |
|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} |
@if($item->logo_path)
{{ strtoupper(substr($item->title, 0, 2)) }}
@endif
{{ $item->title }}@if($item->creator) {{ $item->author_name ?? (auth()->check() ? auth()->user()->name : null) }} @endif |
@if(isset($item->audience_type) && array_key_exists($item->audience_type, $audienceTypes))
@php
$audienceType = $item->audience_type;
$audienceLabel = $audienceTypes[$audienceType];
$audienceColor = $audienceColors[$audienceType] ?? 'secondary';
$audienceIcon = $audienceIcons[$audienceType] ?? 'fa-users';
@endphp
{{ $audienceLabel }}
@else
{{ __('labels.not_specified') }}
@endif
|
{{ $item->started_at_iso?->format('d.m.Y') }}
{{ $item->started_at_iso?->format('H:i') }}
|
{{ $item->ended_at_iso?->format('d.m.Y') }}
{{ $item->ended_at_iso?->format('H:i') }}
|
{{ $accepted }}
{{ $rejected }}
{{ $maybe }}
{{ $total }}
|
@if($hasResponded && $userResponse->response)
@php
$response = $userResponse->response;
$responseClass = $responseColors[$response] ?? 'secondary';
@endphp
@else
{{ ucfirst($response) }}
@if($userResponse->priority)
@endif
@if($userResponse->reason)
{{ Str::limit($userResponse->reason, 20) }}
@endif
{{ __('labels.not_responded') }}
{{ __('labels.please_submit_response') }}
|
@if($item->published_at)
{{ $item->published_at ? date('d.m.Y', strtotime($item->published_at)) : '' }}
{{ $item->published_at ? date('H:i', strtotime($item->published_at)) : '' }}
{{ __('labels.published') }}
@else
{{ __('labels.draft') }}
@endif
|