@if($currentViewName == 'single')
    @php
        
        $banner_class = 'z-1 relative ';

        if($banner_height == 'page_banner_big') 
        {
            $banner_class .= 'dz-bnr-inr text-center dz-bnr-inr-lg h-screen';
        }else if($banner_height == 'page_banner_medium')
        {
            $banner_class .= 'dz-bnr-inr text-center dz-bnr-inr-md sm:h-500 h-380';
        }else if($banner_height == 'page_banner_small')
        {
            $banner_class .= 'dz-bnr-inr text-center dz-bnr-inr-sm h-380';
        }else if($banner_height == 'page_banner_custom')
        {
            $banner_class .= 'dz-bnr-inr d-flex align-items-center text-center';
        }

        $bnr_style = "style=";

        if(!empty($banner_image)) {
            $bnr_style .= 'background-image:url('.$banner_image.');';
            $banner_class .= ' bg-center bg-cover bg-no-repeat before:size-full before:absolute before:inset-0 before:bg-black/70 before:-z-1';
        }
        if($banner_height == 'page_banner_custom'){
            $bnr_style .= 'height:'.$banner_custom_height.'px;';
        }

    @endphp
    
    @if ($show_banner)
        <!-- Banner  -->
        <div class="{{ $banner_class }}" {{$bnr_style}} >
            <div class="container h-full">
                <div class="h-full flex flex-col justify-center items-center gap-20">
                    <h1 class="lg:text-7xl sm:text-5xl text-3xl text-white">{{ $page_title.' '.$pageTitle }}</h1>
                    @if ($show_breadcrumb)
                    <!-- Breadcrumb Row -->
                    <nav aria-label="breadcrumb" class="breadcrumb-row bg-primary rounded-full">
                        <ul class="breadcrumb py-10 px-20 flex items-center gap-12">
                            <li class="breadcrumb-item"><a href="{{ url('/') }}">{{ __('Home') }}</a></li>
                            <li class="breadcrumb-item flex items-center gap-12 text-left" aria-current="page">
                                <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>
                                {{ $page_title.' '.$pageTitle }}</li>
                        </ul>
                    </nav>
                    <!-- Breadcrumb Row End -->
                    @endif
                </div>
            </div>
        </div>
        <!-- Banner End -->
    @endif
@else
    @php
        
        $template_name = 'page_general';
        if ($currentViewName == 'page') {
            $page_options = ThemeOption::GetPageOptionById($page->id);
        }

        $page_banner_setting    = !empty($page_options['page_banner_setting'])?$page_options['page_banner_setting']:'theme_default';
        
        if($currentViewName == 'author'){
            $template_name  = 'author_page';
        }
        else if($currentViewName == 'search'){
            $template_name  = 'search_page';
        }
        else if($currentViewName == 'category'){
            $template_name  = 'category_page';
        }
        else if($currentViewName == 'tag'){
            $template_name  = 'tag_page';
        }
        else if($currentViewName == 'archive'){
            $template_name  = 'archive_page';
        }
        
        $banner_class = 'z-1 relative ';

        if($banner_height == 'page_banner_big') 
        {
            $banner_class .= 'dz-bnr-inr text-center dz-bnr-inr-lg h-screen';
        }else if($banner_height == 'page_banner_medium')
        {
            $banner_class .= 'dz-bnr-inr text-center dz-bnr-inr-md sm:h-500 h-380';
        }else if($banner_height == 'page_banner_small')
        {
            $banner_class .= 'dz-bnr-inr text-center dz-bnr-inr-sm h-380';
        }else if($banner_height == 'page_banner_custom')
        {
            $banner_class .= 'dz-bnr-inr d-flex align-items-center text-center';
        }

        $bnr_style = "style=";

        if(!empty($banner_image)) {
            $bnr_style .= 'background-image:url('.$banner_image.');';
            $banner_class .= ' bg-center bg-cover bg-no-repeat before:size-full before:absolute before:inset-0 before:bg-black/70 before:-z-1';
        }
        if($banner_height == 'page_banner_custom'){
            $bnr_style .= 'height:'.$banner_custom_height.'px;';
        }

    @endphp

    @if ($show_banner != 0)

        <!-- Banner  -->
        <div class="{{ $banner_class }}" {{$bnr_style}} >
            <div class="container h-full">
                <div class="h-full flex flex-col justify-center items-center gap-20">
                    <h1 class="lg:text-7xl sm:text-5xl text-3xl text-white">{{ $page_title.' '.$pageTitle }}</h1>
                    @if ($show_breadcrumb)
                    <!-- Breadcrumb Row -->
                    <nav aria-label="breadcrumb" class="breadcrumb-row bg-primary rounded-full">
                        <ul class="breadcrumb py-10 px-20 flex items-center gap-12">
                            <li class="breadcrumb-item"><a href="{{ url('/') }}">{{ __('Home') }}</a></li>
                            <li class="breadcrumb-item flex items-center gap-12 text-left" aria-current="page">
                                <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><polyline points="9 18 15 12 9 6"></polyline></svg>
                                {{ $page_title.' '.$pageTitle }}</li>
                        </ul>
                    </nav>
                    <!-- Breadcrumb Row End -->
                    @endif
                </div>
            </div>
        </div>
        <!-- Banner End -->
    @endif
@endif
