@extends('theme::layout')

@section('content')
    <div class="panel article-body">
        <h1 class="page-title">{{ $article->title }}</h1>
        <p class="meta">{{ __('frontend.common.password_protected') }}</p>
        @if(!empty($error))
            <p class="flash">{{ $error }}</p>
        @endif
        <form class="stack" method="post" action="{{ url('/show-'.$article->id.'.shtml') }}">
            @csrf
            <label for="article-password">{{ __('frontend.common.password') }}</label>
            <input id="article-password" type="password" name="password" required>
            <button type="submit">{{ __('frontend.common.unlock') }}</button>
        </form>
    </div>
@endsection
