@extends('boilerplate::auth.layout', [
    'title' => __('boilerplate::auth.firstlogin.title'),
    'bodyClass' => 'hold-transition login-page'
])

@section('content')
    @component('boilerplate::auth.loginbox')
        {{ Form::open(['route' => 'boilerplate.users.firstlogin', 'autocomplete' => 'off']) }}
        <input type="hidden" name="token" value="{{ $token }}">
        <div class="alert alert-info">
            <p>{{ __('boilerplate::auth.firstlogin.intro') }}</p>
        </div>
        <div class="form-group {{ $errors->has('password') ? 'has-error' : '' }}">
            {{ Form::label('password', __('boilerplate::auth.fields.password')) }}
            {{ Form::input('password', 'password', Request::old('password'), ['class' => 'form-control', 'autofocus']) }}
            {!! $errors->first('password','<p class="text-danger">:message</p>') !!}
        </div>
        <div class="form-group {{ $errors->has('password_confirmation') ? 'has-error' : '' }}">
            {{ Form::label('password_confirmation', __('boilerplate::auth.fields.password_confirm')) }}
            {{ Form::input('password', 'password_confirmation', Request::old('password_confirmation'), ['class' => 'form-control']) }}
            {!! $errors->first('password_confirmation','<p class="text-danger">:message</p>') !!}
        </div>
        <div class="form-group text-center">
            <button type="submit" class="btn btn-primary">
                {{ __('boilerplate::auth.firstlogin.button') }}
            </button>
        </div>
        </form>
    @endcomponent
@endsection
