@extends('core::layouts.master') @section('title') {{ trans_choice('payroll::general.employee',2) }} @endsection @section('styles') @stop @section('content') {{ trans_choice('payroll::general.employee',2) }} {{ trans_choice('dashboard::general.dashboard',1) }} {{ trans_choice('payroll::general.employee',2) }} {!! Form::model($employee, ['method' => 'PATCH','route' => ['employee.update', $employee->id],'class'=>'form-horizontal','enctype'=>'multipart/form-data']) !!} @lang('message.addemployee') @lang('message.last_name_en') * {!! Form::text('first_name_en', null, array('placeholder' => 'Ex: Sok','class' => 'form-control')) !!} @if($errors->first('first_name_en')) {{$errors->first('first_name_en')}} @endif @lang('message.first_name_en') * {!! Form::text('last_name_en', null, array('placeholder' => 'Ex: Mao','class' => 'form-control')) !!} @if($errors->first('last_name_en')) {{$errors->first('last_name_en')}} @endif @lang('message.last_name_kh') * {!! Form::text('first_name_kh', null, array('placeholder' => 'Ex: សុខ','class' => 'form-control')) !!} @if($errors->first('first_name_kh')) {{$errors->first('first_name_kh')}} @endif @lang('message.first_name_kh') * {!! Form::text('last_name_kh', null, array('placeholder' => 'Ex: ម៉ៅ','class' => 'form-control')) !!} @if($errors->first('last_name_kh')) {{$errors->first('last_name_kh')}} @endif @lang('message.marital_status') * @lang('message.select') @foreach($marital_status as $k => $v) marital_status_id == $v->id) selected @endif value="{{ $v->id }}">{{ $v->full_name }} @endforeach @if($errors->first('marital_status')) {{$errors->first('marital_status')}} @endif @lang('message.gender') * @lang('message.select') @foreach($gender as $k => $v) gender_id == $v->id) selected @endif value="{{ $v->id }}">{{ $v->full_name }} @endforeach @if($errors->first('gender')) {{$errors->first('gender')}} @endif @lang('message.national_id_card') {!! Form::text('id_card', null, array('placeholder' => '','class' => 'form-control')) !!} @lang('message.date_of_birth') * @if($errors->first('dob')) {{$errors->first('dob')}} @endif @lang('message.bankname') @lang('message.select') @foreach($bank_name as $k => $v) bank_id == $v->id) selected @endif value="{{ $v->id }}">{{ $v->full_name }} @endforeach @if($errors->first('bank_name')) {{$errors->first('bank_name')}} @endif @lang('message.bank_account_number') {!! Form::text('account_number', null, array('placeholder' => 'Ex: 000 000 000','class' => 'form-control')) !!} @if($errors->first('account_number')) {{$errors->first('account_number')}} @endif @lang('message.bank_account_name') {!! Form::text('account_name', null, array('placeholder' => 'Ex: Sok Mao','class' => 'form-control')) !!} @if($errors->first('account_name')) {{$errors->first('account_name')}} @endif @lang('message.driver_licence') {!! Form::text('driver_license', null, array('placeholder' => '','class' => 'form-control')) !!} @lang('message.branch') * @lang('message.select') @foreach($branch as $k => $v) branch_id == $v->id) selected @endif value="{{ $v->id }}">{{ $v->name }} @endforeach @if($errors->first('branch')) {{$errors->first('branch')}} @endif @lang('message.phone_number') * {!! Form::text('phone_number', null, array('placeholder' => 'Ex: 093322910','class' => 'form-control')) !!} @if($errors->first('phone_number')) {{$errors->first('phone_number')}} @endif @lang('message.email') {!! Form::text('email', null, array('placeholder' => '','class' => 'form-control')) !!} @lang('message.height') {!! Form::text('height', null, array('placeholder' => 'Ex: 1.60','class' => 'form-control')) !!} @lang('message.place_Of_birth') * {!! Form::textarea('pob', null, array('placeholder' => '','class' => 'form-control','rows' => 3)) !!} @if($errors->first('pob')) {{$errors->first('pob')}} @endif @lang('message.crrent_address') @lang('message.Province_town_city') * @lang('message.select') @foreach($province as $k => $v) province_id == $v->province_id) selected @endif value="{{ $v->province_id }}">{{ $v->name }} @endforeach @if($errors->first('province')) {{$errors->first('province')}} @endif @lang('message.district') * @lang('message.select') @foreach($district as $k => $v) district_id == $v->district_id) selected @endif value="{{ $v->district_id }}">{{ $v->name }} @endforeach @if($errors->first('district')) {{$errors->first('district')}} @endif @lang('message.commune') @lang('message.select') @foreach($commune as $k => $v) commune_id == $v->commune_id) selected @endif value="{{ $v->commune_id }}">{{ $v->name }} @endforeach @if($errors->first('commune')) {{$errors->first('commune')}} @endif @lang('message.village') @lang('message.select') @foreach($village as $k => $v) village_id == $v->village_id) selected @endif value="{{ $v->village_id }}">{{ $v->name }} @endforeach @if($errors->first('village')) {{$errors->first('village')}} @endif @lang('message.address_detail') {!! Form::text('location', null, array('placeholder' => '','class' => 'form-control')) !!} @lang('message.emergency_contact') {!! Form::text('emergency_contact', null, array('placeholder' => '','class' => 'form-control')) !!} @lang('message.note') {!! Form::textarea('noted', null, array('placeholder' => '','class' => 'form-control','rows' => 2)) !!} @lang('message.attachment_file') * @if($errors->first('profile')) {{$errors->first('profile')}} @endif {!! Form::close() !!} @endsection @section('scripts') @endsection