@extends('core::layouts.master') @section('title') Add Contract @endsection @section('styles') @stop @section('content') Add Contract {{ trans_choice('dashboard::general.dashboard',1) }} Add Contract {!! Form::model($contract, ['method' => 'PATCH','route' => ['contract.update', $contract->id],'class'=>'form-horizontal','enctype'=>'multipart/form-data']) !!} @lang('message.add_contract') @lang('message.employee') * @lang('message.select') @foreach($employee as $k => $v) employee_id == $v->id) selected @endif value="{{ $v->id }}">{{ $v->first_name }} {{ $v->last_name }} @endforeach @if($errors->first('employee')) {{$errors->first('employee')}} @endif @lang('message.contract_type') * @lang('message.select') @foreach($contract_type as $k => $v) contract_type_id == $v->id) selected @endif value="{{ $v->id }}">{{ $v->full_name }} @endforeach @if($errors->first('contract_type')) {{$errors->first('contract_type')}} @endif @lang('message.department') * @lang('message.select') @foreach($department as $k => $v) department_id == $v->id) selected @endif value="{{ $v->id }}">{{ $v->name }} @endforeach @if($errors->first('department')) {{$errors->first('department')}} @endif @lang('message.position') * @lang('message.select') @foreach($position as $k => $v) position_id == $v->id) selected @endif value="{{ $v->id }}">{{ $v->name }} @endforeach @if($errors->first('position')) {{$errors->first('position')}} @endif @lang('message.transfer_work_to') * @lang('message.select') @foreach($employee as $k => $v) transfer_work_to == $v->id) selected @endif value="{{ $v->id }}">{{ $v->first_name }} {{ $v->last_name }} @endforeach @if($errors->first('transfer_work_to')) {{$errors->first('transfer_work_to')}} @endif @lang('message.get_work_from') * @lang('message.select') @if($errors->first('get_work_from')) {{$errors->first('get_work_from')}} @endif @lang('message.salary') $ {!! Form::text('salary', null, array('placeholder' => 'Ex: 400','class' => 'form-control')) !!} .00 @if($errors->first('salary')) {{$errors->first('salary')}} @endif @lang('message.gasoline') $ {!! Form::text('gasoline', null, array('placeholder' => 'Ex: 30','class' => 'form-control')) !!} .00 @if($errors->first('gasoline')) {{$errors->first('gasoline')}} @endif @lang('message.card') $ {!! Form::text('card', null, array('placeholder' => 'Ex: 30','class' => 'form-control')) !!} .00 @if($errors->first('card')) {{$errors->first('card')}} @endif @lang('message.currency') @lang('message.select') @foreach($currency as $k => $v) currency_id == $v->id) selected @endif value="{{ $v->id }}">{{ $v->full_name }} @endforeach @if($errors->first('currency')) {{$errors->first('currency')}} @endif @lang('message.contract_start_date') * @if($errors->first('contract_start_date')) {{$errors->first('contract_start_date')}} @endif @lang('message.contract_end_date') @if($errors->first('contract_end_date')) {{$errors->first('contract_end_date')}} @endif @lang('message.probation_end_date') @if($errors->first('probation_end_date')) {{$errors->first('probation_end_date')}} @endif @lang('message.pay_tax_by_company') * tax == 1) checked @endif value="1"> Check @if($errors->first('tax')) {{$errors->first('tax')}} @endif @lang('message.education') {!! Form::textarea('education', null, array('placeholder' => '','class' => 'form-control','rows' => 2)) !!} @lang('message.experience') {!! Form::textarea('experience', null, array('placeholder' => '','class' => 'form-control','rows' => 2)) !!} @lang('message.skills') {!! Form::textarea('skills', null, array('placeholder' => '','class' => 'form-control','rows' => 2)) !!} @lang('message.attachment_file') File input @lang('message.reason') {!! Form::textarea('reason', null, array('placeholder' => '','class' => 'form-control','rows' => 2)) !!} {!! Form::close() !!} @endsection @section('scripts') @endsection