@extends('master') @section('head') @endsection @section('body')
@include('partials.warn_session', ['redirectTo' => '/login']) {!! Former::open('login') ->rules(['email' => 'required|email', 'password' => 'required']) ->addClass('form-signin') !!} {{ Former::populateField('remember', 'true') }}

{!! Former::text('email')->placeholder(trans('texts.email_address'))->raw() !!} {!! Former::password('password')->placeholder(trans('texts.password'))->raw() !!} {!! Former::hidden('remember')->raw() !!}

{!! Button::success(trans('texts.login')) ->withAttributes(['id' => 'loginButton']) ->large()->submit()->block() !!}

@if (Input::get('new_company') && Utils::allowNewAccounts()) {!! Former::hidden('link_accounts')->value('true') !!}

- {{ trans('texts.or') }} -

{!! Button::primary(trans('texts.new_company'))->asLinkTo(URL::to('/invoice_now?new_company=true&sign_up=true'))->large()->submit()->block() !!}


@elseif (Utils::isOAuthEnabled())

- {{ trans('texts.or') }} -

@foreach (App\Services\AuthService::$providers as $provider) @endforeach
@endif @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::close() !!}

     

     

    @endsection