{!! Form::label('name',trans('messages.name'),[])!!} {!! Form::input('text','name',isset($salary_head) ? $salary_head->name : '',['class'=>'form-control','placeholder'=>trans('messages.name')])!!}
{!! Form::label('type',trans('messages.type'),[])!!} {!! Form::select('type', [ 'earning' => trans('messages.earning'), 'deduction' => trans('messages.deduction'), ],isset($salary_head) ? $salary_head->type : '',['class'=>'form-control show-tick','title'=>trans('messages.select_one')])!!}
{!! Form::label('wage_type',trans('messages.wage').' '.trans('messages.type'),[])!!} {!! Form::select('wage_type', [ 'ordinary' => 'Ordinary', 'additional' => 'Additional', ],isset($salary_head) ? $salary_head->wage_type : '',['class'=>'form-control show-tick','title'=>trans('messages.select_one')])!!}
{!! Form::label('category','Category',[])!!} {!! tooltip("Which category of salary type does this salary head belongs to?") !!} {!! Form::select('category', [ 'all' => 'All', 'monthly' => 'Monthly Attendance Salary', 'fixed' => 'Fixed Monthly Salary', 'daily' => (env('COMPANY_ID') != 123) ? 'Daily Salary' : 'Relief Salary' ],isset($salary_head) ? (isset($salary_head->category) ? $salary_head->category : 'all') : '',['class'=>'form-control show-tick','title'=>trans('messages.select_one')])!!}
{!! Form::label('salary_head_category',' IRAS Category',[])!!} {!! Form::select('salary_head_category', [ 'salary' => 'Salary', 'insurance' => 'Insurance', 'bonus' => 'Bonus', 'directors_fees' => 'Director\'s Fees', 'exempted_income' => 'Exempt Income/Income subject to Tax remission/Income from Overseas Employment', 'gratuity_notice_pym_ex_gratia' => 'Gratuity/Notice Pay/Ex-gratia payment/Others', 'compensation' => 'Compensation for loss of office', 'gross_commission' => 'Gross Commission', 'pension' => 'Pension', 'transport_allowance' => 'Transport Allowance', 'entertainment_allowance' => 'Entertainment Allowance', 'other_allowances' => 'Other Allowances', 'retirement_benefits_up_to_19921231' => 'Retirement benefits accrued up to 31 Dec 1992', 'retirement_benefits_from_1993' => 'Retirement benefits accured from 1993', 'provident_fund_outside_sg' => 'Pension/Provident Fund outside Singapore without tax concession' ],isset($salary_head) ? $salary_head->salary_head_category : '',['class'=>'form-control show-tick','title'=>trans('messages.select_one')])!!}
{!! Form::label('description',trans('messages.description'),[])!!} {!! Form::textarea('description',isset($salary_head) ? $salary_head->description : '',['size' => '30x3', 'class' => 'form-control', 'placeholder' => trans('messages.description'),"data-show-counter" => 1,"data-limit" => config('config.textarea_limit'),'data-autoresize' => 1])!!}
{!! Form::label('is_hidden','Hidden in Salary Detail',['class'=>'control-label']) !!} {!! tooltip("Hide in user salary detail.") !!}
{{-- is_hidden) ? 'checked' : '' }} data-off-value="0"> --}} is_hidden) ? 'checked' : '' }}>
{!! Form::label('cpf_payable','CPF Payable',['class'=>'control-label']) !!} {!! tooltip("Is the salary head CPF Payable?") !!}
{{-- cpf_payable) ? 'checked' : '' }} data-off-value="0"> --}} cpf_payable) ? 'checked' : '' }}>
{!! Form::label('exclude_from_ir8a','Exclude From IR8A',['class'=>'control-label']) !!} {!! tooltip("Ignore this salary head during IR8A creation.") !!}
{{-- exclude_from_ir8a) ? 'checked' : '' }} data-off-value="0"> --}} exclude_from_ir8a) ? 'checked' : '' }}>
{{--
{!! Form::label('has_quantity',trans('messages.quantity'),['class'=>'control-label']) !!} {!! tooltip("Enabling quantity(days) field during Payroll creation.") !!}
has_quantity) ? 'checked' : '' }} data-off-value="0">
{!! Form::label('is_allowance',trans('messages.allowance'),['class'=>'control-label']) !!} {!! tooltip("Is the salary head an allowance? (Amount calculated based on days worked. EXCLUSIVE FOR ALLOWANCE RELATED SALARY HEAD).") !!}
is_allowance) ? 'checked' : '' }} data-off-value="0">
--}} @if (!isPremium()) {!! Form::hidden('tenant_id',(Request::filled('tenant_id') ? Request::input('tenant_id') : Laratrust::user()->tenant_id)) !!} @endif {!! Form::submit(isset($buttonText) ? $buttonText : trans('messages.save'),['class' => 'btn btn-primary pull-right']) !!}