<a href="#" wire:click.prevent="markAsRead('{{ $notification->id }}', '{{ $url }}')"
   class="list-group-item list-group-item-action">

    <div class="media">
        <div class="avatar">
            <i class="icon-info text-green display-4"></i>
        </div>

        <div class="media-body">
            <div class="d-flex justify-content-between mb-1">
                <div>
                    <h3 class="h4">
                        @switch($notification->type)
                            @case(\App\Notifications\InformaciaPouzivatelNotification::class)
                                <strong>{{ $notification->data['titulok'] }}</strong>
                                @break
                            @default
                                ???
                        @endswitch
                    </h3>
                </div>

                <div>
                    <span class="badge badge-indicator @if($notification->read_at) badge-primary @else badge-success @endif"></span>
                </div>
            </div>

            <div>
                <p class="text-muted mb-0">
                    {{ $notification->data['uvod'] }}
                </p>
            </div>

            <div class="d-flex justify-content-between">
                <div class="text-small"></div>
                <div class="text-small">
                    <ul class="list-inline text-muted">
                        <li class="list-inline-item">
                            <span class="icon-calendar"></span>
                            Doručené: {{ $notification->created_at->longRelativeDiffForHumans() }}
                        </li>
                        @if($notification->read_at)
                            <li class="list-inline-item">
                                <span class="icon-calendar"></span>
                                Prečítaná: {{ $notification->read_at->longRelativeDiffForHumans() }}
                            </li>
                        @endif
                    </ul>
                </div>
            </div>
        </div>
    </div>

</a>
