@php
    $Obj = '';

    if (!empty($blog)) {
        $Obj = $blog;
    }
    if (!empty($page)) {
        $Obj = $page;
    }

@endphp

@if (!empty($Obj) && !empty($status) && $Obj->visibility == 'PP' && $status == 'locked')
    
    @if (!empty($page))
    <div class="container-sm">
    @endif
        <form method="POST" class="bg-card max-w-700 mx-auto p-50 mb-50">
            @csrf
            <h4 class="text-white mb-30">{{ __('This content is password protected. To view it please enter your password below:') }}</h4>
    
            <div class="mb-30">
                <label for="password" class="block text-white font-light mb-10">{{ __('Password') }}</label>
                <input id="password" type="password" class="py-11 text-lg border-b-2 border-[#383B3F] text-white placeholder:text-white font-light h-50 w-full" required name="password">
            </div>
            <div class="form-submit w-full">
                <button type="submit" class="style-1 cursor-pointer btn btn-outline light border-white hover:border-primary text-white hover:text-dark ms-auto p-2 sm:h-60 group button--stroke flairBtn magneticBtn" data-block="button">
                    <span class="button-flair"></span>
                    <span class="button__label font-light xl:ps-35 px-20 inline-flex items-center gap-14">{{ __('Login') }}</span>
                    <span class="inline-flex justify-center items-center sm:size-50 size-32 rounded-full bg-white text-secondary duration-100 group-hover:bg-secondary z-0">
                        <svg width="27" height="26" viewBox="0 0 27 26" fill="none" xmlns="http://www.w3.org/2000/svg">
                            <path class="group-hover:stroke-white duration-100" d="M5.78711 13.1025H20.7871" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
                            <path class="group-hover:stroke-white duration-100" d="M13.2871 5.60254L20.7871 13.1025L13.2871 20.6025" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
                        </svg>
                    </span>
                </button>
            </div>
            @error('password')
            <p class="text-danger mt-2">
                {{ $message }}
            </p>
            @enderror
        </form>
    @if (!empty($page))
    </div>
    @endif
    

@endif
