@extends('layouts.nova')

@section('content')
<div class="container-fluid legacy-page">
    <div class="page-heading">
        <h1 class="page-header">{{ $page_title }}</h1>
    </div>

    <br>

    <div class="mb-3">{!! $adHtml !!}</div>

    <div class="panel panel-skinbase effect2">
        <div class="panel-body">
            {!! $chatHtml !!}
        </div>
    </div>

    <ul class="smileyList">
        @foreach ($smileys as $smiley)
            @php
                $codeJs = json_encode($smiley->code);
                $imgSrc = '/gfx/smiles/' . rawurlencode($smiley->picture ?? '');
                $alt = e($smiley->emotion ?? '');
            @endphp
            <li>
                <img style="cursor:pointer;" onclick="put_smiley_chat({{ $codeJs }}, 'chat_txt');" alt="{{ $alt }}" src="{{ $imgSrc }}">
            </li>
        @endforeach
    </ul>

</div>
@endsection
