@extends('layouts.site')

@section('content')
    <div class="container">
        <h1>Enter Email to Update Subscription</h1>
    {!! Form::open(['action' => 'SubscribersController@update_subscriber_email']) !!}
    @if (!$errors->isEmpty())
    <div class="alert alert-danger alert-dismissable">
        <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
        <p>{{ $errors->first() }}</p>
    </div>
    @endif
    <!-- Email Form Text -->
        <div class="form-group">
            {!! Form::text('email', NULL, ['class' => 'form-control']) !!}
        </div>
        <!-- Form Submit -->
        <div class="form-group">
            {!! Form::submit('Send Email', ['class' => 'btn btn-primary form-control']) !!}
        </div>
        {!! Form::close() !!}
    </div>
@endsection
