@extends('client_login')
@section('form')
@include('partials.warn_session', ['redirectTo' => '/client/session_expired'])
{!! Former::open()
->rules(['password' => 'required'])
->addClass('form-signin') !!}
@if (count($errors->all()))
@foreach ($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@if (Session::has('warning'))
{{ Session::get('warning') }}
@endif
@if (Session::has('message'))
{{ Session::get('message') }}
@endif
@if (Session::has('error'))
{{ Session::get('error') }}
@endif
{{ Former::populateField('remember', 'true') }}
@if (! session('contact_key'))
{!! Former::text('email')->placeholder(trans('texts.email'))->raw() !!}
@endif
{!! Former::password('password')->placeholder(trans('texts.password'))->raw() !!}
{!! Former::hidden('remember')->raw() !!}
{!! Button::success(trans('texts.login'))
->withAttributes(['id' => 'loginButton', 'class' => 'green'])
->large()->submit()->block() !!}
{!! Former::close() !!}
@endsection