@extends(getTemplate().'.layouts.app')

@section('content')
    @php
        $get404ErrorPageSettings = get404ErrorPageSettings();
        $errTitle = trim($get404ErrorPageSettings['error_title'] ?? '');
        $errDesc = trim($get404ErrorPageSettings['error_description'] ?? '');
        if ($errTitle === '' || stripos($errTitle, 'title for error') !== false) {
            $errTitle = trans('public.error_404_page_title');
        }
        if ($errDesc === '' || stripos($errDesc, '404 error description') !== false || stripos($errDesc, 'error description') !== false) {
            $errDesc = trans('public.error_404_page_description');
        }
    @endphp

    <section class="my-50 container text-center">
        <div class="row justify-content-md-center">
            <div class="col col-md-6">
                <img src="{{ $get404ErrorPageSettings['error_image'] ?? '' }}" class="img-cover " alt="">
            </div>
        </div>

        <h2 class="mt-25 font-36">{{ $errTitle }}</h2>
        <p class="mt-25 font-16">{{ $errDesc }}</p>
    </section>
@endsection
