<div class="d-flex flex-column flex-sm-row align-items-center justify-content-center flex-wrap">
    @if(!empty($post->author))
        <span class="mt-10 mt-md-15 font-15 font-weight-500 text-white px-10">{{ trans('public.created_by') }}
            @if($post->author->isTeacher())
                <a href="{{ $post->author->getProfileUrl() }}" target="_blank" class="text-white text-decoration-underline">{{ $post->author->full_name }}</a>
            @elseif(!empty($post->author->full_name))
                <span class="text-white text-decoration-underline">{{ $post->author->full_name }}</span>
            @endif
        </span>
    @endif

    <span class="mt-10 mt-md-15 font-15 font-weight-500 text-white px-10">{{ trans('public.in') }}
        <a href="{{ $post->category->getUrl() }}" class="text-white text-decoration-underline">{{ $post->category->title }}</a>
    </span>
    <span class="mt-10 mt-md-15 font-15 font-weight-500 text-white px-10">{{ dateTimeFormat($post->created_at, 'j M Y') }}</span>
</div>
