@extends('client.auth') @section('title') {{ trans('login.login') }} @endsection @section('content')
@if(!empty(\App\Models\Setting::where('setting_key','company_logo')->first()->setting_value)) @else

{{ \App\Models\Setting::where('setting_key','company_name')->first()->setting_value }}

@endif
@if(Session::has('flash_notification.message')) @endif @if (isset($msg))
{{ $msg }}
@endif @if (isset($error))
{{ $error }}
@endif @if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@if(\App\Models\Setting::where('setting_key', 'allow_client_login')->first()->setting_value == 1) {!! Form::open(array('url' => url('client'), 'method' => 'post', 'name' => 'form','class'=>'login-form')) !!}
{!! Form::text('username', null, array('class' => 'form-control', 'placeholder'=>translate('username'),'required'=>'required')) !!}
{!! Form::password('password', array('class' => 'form-control', 'placeholder'=>translate('password'),'required'=>'required')) !!}
{{ translate('forgot_password') }}
@if(\App\Models\Setting::where('setting_key','allow_self_registration')->first()->setting_value==1) {{ translate('register_account_msg') }}
@endif {!! Form::close() !!} {!! Form::open(array('url' => url('client_reset'), 'method' => 'post', 'name' => 'form','class'=>'forget-form ')) !!}
{!! Form::email('email', null, array('class' => 'form-control', 'placeholder'=>translate('email'),'required'=>'required')) !!}
{!! Form::close() !!} {!! Form::open(array('url' => url('client_register'), 'method' => 'post', 'name' => 'form','class'=>'register-form ')) !!}
{!! Form::label('first_name',translate('first_name'),array('class'=>'')) !!} {!! Form::text('first_name',null, array('class' => 'form-control', 'placeholder'=>translate('first_name'),'required'=>'required')) !!}
{!! Form::label('last_name',translate('last_name'),array('class'=>'')) !!} {!! Form::text('last_name',null, array('class' => 'form-control', 'placeholder'=>translate('last_name'),'required'=>'required')) !!}
{!! Form::label('gender',translate('gender'),array('class'=>'')) !!} {!! Form::select('gender',array('Male'=>translate('Male'),'Female'=>translate('Female')),'Male', array('class' => 'form-control','required'=>'required')) !!}
{!! Form::label('mobile',translate('mobile'),array('class'=>'')) !!} {!! Form::text('mobile',null, array('class' => 'form-control', 'placeholder'=>translate('numbers_only'))) !!}
{!! Form::label('email',translate('email'),array('class'=>'')) !!} {!! Form::email('email',null, array('class' => 'form-control', 'placeholder'=>translate('email'),'required'=>'required')) !!}
{!! Form::label('dob',translate('dob'),array('class'=>'')) !!} {!! Form::text('dob',null, array('class' => 'form-control date-picker', 'placeholder'=>"yyyy-mm-dd",'required'=>'required')) !!}
{!! Form::label('working_status',translate('working_status'),array('class'=>'')) !!} {!! Form::select('working_status',array('Employee'=>translate('Employee'),'Owner'=>translate('Owner'),'Student'=>translate('Student'),'Overseas Worker'=>translate('Overseas Worker'),'Pensioner'=>translate('Pensioner'),'Unemployed'=>translate('Unemployed')),null, array('class' => 'form-control',)) !!}

{{translate('login detail')}}

{!! Form::label('username',translate('username'),array('class'=>'')) !!} {!! Form::text('username',null, array('class' => 'form-control', 'placeholder'=>"",'required'=>'required')) !!}
{!! Form::label('password',translate('password'),array('class'=>'')) !!} {!! Form::password('password', array('class' => 'form-control', 'placeholder'=>"",'required'=>'required')) !!}
{!! Form::label('repeatpassword',translate('repeat_password'),array('class'=>'')) !!} {!! Form::password('repeatpassword', array('class' => 'form-control', 'placeholder'=>"",'required'=>'required')) !!}
{!! Form::close() !!} @endif
{{translate('accept_terms_and_conditions')}}
@endsection