@extends('layout')

@section('title', __('store.unsubscribe_title'))

@section('content')
<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card border-0 shadow-sm">
                <div class="card-body text-center p-4">
                    @if ($done ?? false)
                        <i class="fas fa-check-circle text-success fa-3x mb-3"></i>
                        <h2>{{ __('store.unsubscribe_done_title') }}</h2>
                        <p class="text-muted">{{ __('store.unsubscribe_done_subtitle') }}</p>
                        <p class="mt-3"><strong>{{ $channel->label() }}</strong></p>
                    @else
                        <h2>{{ __('store.unsubscribe_title') }}</h2>
                        <p class="text-muted">{{ __('store.unsubscribe_subtitle') }}</p>
                        <p class="my-3"><strong>{{ $channel->label() }}</strong></p>
                        <form method="POST" action="{{ url()->full() }}">
                            @csrf
                            <button type="submit" class="btn btn-danger">
                                {{ __('store.unsubscribe_confirm_button') }}
                            </button>
                        </form>
                    @endif
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
