@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'=>trans('general.username'),'required'=>'required')) !!}
{!! Form::password('password', array('class' => 'form-control', 'placeholder'=>trans('general.password'),'required'=>'required')) !!}
{{ trans('general.forgot_password') }}
@if(\App\Models\Setting::where('setting_key','allow_self_registration')->first()->setting_value==1) {{ trans('general.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'=>trans_choice('general.email',1),'required'=>'required')) !!}
{!! Form::close() !!} {!! Form::open(array('url' => url('client_register'), 'method' => 'post', 'name' => 'form','class'=>'register-form ')) !!}
{!! Form::label('first_name',trans_choice('general.first_name',1),array('class'=>'')) !!} {!! Form::text('first_name',null, array('class' => 'form-control', 'placeholder'=>trans_choice('general.first_name',1),'required'=>'required')) !!}
{!! Form::label('last_name',trans_choice('general.last_name',1),array('class'=>'')) !!} {!! Form::text('last_name',null, array('class' => 'form-control', 'placeholder'=>trans_choice('general.last_name',1),'required'=>'required')) !!}
{!! Form::label('gender',trans_choice('general.gender',1),array('class'=>'')) !!} {!! Form::select('gender',array('Male'=>trans_choice('general.Male',1),'Female'=>trans_choice('general.Female',1)),'Male', array('class' => 'form-control','required'=>'required')) !!}
{!! Form::label('mobile',trans_choice('general.mobile',1),array('class'=>'')) !!} {!! Form::text('mobile',null, array('class' => 'form-control', 'placeholder'=>trans_choice('general.numbers_only',1))) !!}
{!! Form::label('email',trans_choice('general.email',1),array('class'=>'')) !!} {!! Form::email('email',null, array('class' => 'form-control', 'placeholder'=>trans_choice('general.email',1),'required'=>'required')) !!}
{!! Form::label('dob',trans_choice('general.dob',1),array('class'=>'')) !!} {!! Form::text('dob',null, array('class' => 'form-control date-picker', 'placeholder'=>"yyyy-mm-dd",'required'=>'required')) !!}
{!! Form::label('working_status',trans_choice('general.working_status',1),array('class'=>'')) !!} {!! Form::select('working_status',array('Employee'=>trans_choice('general.Employee',1),'Owner'=>trans_choice('general.Owner',1),'Student'=>trans_choice('general.Student',1),'Overseas Worker'=>trans_choice('general.Overseas Worker',1),'Pensioner'=>trans_choice('general.Pensioner',1),'Unemployed'=>trans_choice('general.Unemployed',1)),null, array('class' => 'form-control',)) !!}

{{trans_choice('general.login',1)}} {{trans_choice('general.detail',2)}}

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