{!! Form::hidden('currency_id', isset($user_salary) ? $user_salary->currency_id : 1) !!}
{!! Form::label('type',trans('messages.salary').' '.trans('messages.type'),['class' => ' control-label']) !!} {!! Form::select('type', [ 'monthly' => trans('messages.monthly').' '.trans('messages.salary').' ('.trans('messages.attendance').')', 'fixed' => trans('messages.fixed').' '.trans('messages.monthly').' '.trans('messages.salary'), 'daily' => trans('messages.daily').' '.trans('messages.salary') ], isset($user_salary) ? $user_salary->type : '', [ 'class'=>'form-control show-tick', 'placeholder'=>trans('messages.select_one'), 'disabled'=> (isset($user_salary)) ? true : false, 'id'=>'salary_type', 'onchange'=>'showSalaryHead()' ]) !!}
{{trans('messages.to')}}
{!! Form::label('payroll_type',trans('messages.payroll').' '.trans('messages.calculation'),[]) !!} {!! Form::select('payroll_type',['8'=>'8 Hrs Calculation','7.33'=>'7.33 Hrs Calculation'],isset($user_salary) ? $user_salary->payroll_type : '8',['id'=>'payroll_type','class'=>'form-control input-xlarge show-tick','title'=>trans('messages.select_one')]) !!}
{!! Form::label('payroll_workday',trans('messages.work').' '.trans('messages.day'),[]) !!} {!! Form::select('payroll_workday',['4'=>'4 Days','5'=>'5 Days','5.5'=>'5.5 Days','6'=>'6 Days'],isset($user_salary) ? $user_salary->payroll_workday : '6',['id'=>'payroll_workday','class'=>'form-control input-xlarge show-tick','title'=>trans('messages.select_one')]) !!}
{!! Form::label('payment_method',trans('messages.payment').' '.trans('messages.method'),[]) !!} {!! Form::select('payment_method',['bank'=>'Bank','cash'=>'Cash','cheque'=>'Cheque'],isset($user_salary) ? $user_salary->payment_method : 'bank',['id'=>'payment_method','class'=>'form-control input-xlarge show-tick','title'=>trans('messages.select_one')]) !!}
{!! Form::label('description',trans('messages.description'),[])!!} {!! Form::textarea('description',isset($user_salary) ? $user_salary->description : '',['size'=>'30x3', 'class'=>'form-control', 'placeholder'=>trans('messages.description'), "data-show-counter"=>1, "data-limit"=>config('config.textarea_limit'), 'data-autoresize'=>1])!!}
@if (isset($user_salary)) {{-- Edit user_salary --}} {{--
{!! Form::label('hourly_rate','Overwrite - Hourly Rate',[])!!} {!! Form::input('number','hourly_rate', null, ['class'=>'form-control','placeholder'=> trans('messages.amount'),'step'=>0.01,'id'=>'hourly_rate']) !!}
{!! Form::label('overtime_hourly_rate','Overwrite - OT Hourly Rate',[])!!} {!! Form::input('number','overtime_hourly_rate', null, ['class'=>'form-control','placeholder'=> trans('messages.amount'),'step'=>0.01,'id'=>'overtime_hourly_rate']) !!}
--}}
@foreach($earning_salary_heads as $earning_head) @if ($earning_head->category == $user_salary->type || $earning_head->category == null)
{!! Form::label('salary_head['.$earning_head->slug.']',$earning_head->name,[])!!} {!! Form::input('number','salary_head['.$earning_head->slug.']',(array_key_exists($earning_head->slug,$salary)) ? $salary[$earning_head->slug] : '0', ['class'=>'form-control','placeholder'=> trans('messages.amount'),'min'=>'0','step'=>0.01]) !!}
@endif @endforeach
{{-- Custom Earning Salary Heads --}} @if(config('config.enable_salary_detail_custom_head'))

Custom Earning Salary Head

@foreach($earning_custom_salary_heads as $earning_custom_salary_head) @endforeach
@endif
@foreach($deduction_salary_heads as $deduction_head) @if ($deduction_head->category == $user_salary->type || $deduction_head->category == null)
{!! Form::label('salary_head['.$deduction_head->slug.']',$deduction_head->name,[]) !!} {!! Form::input('number','salary_head['.$deduction_head->slug.']', (array_key_exists($deduction_head->slug,$salary)) ? $salary[$deduction_head->slug] : '0', ['class'=>'form-control','placeholder'=> trans('messages.amount'),'min'=>'0','step'=>0.01]) !!}
@endif @endforeach
@else {{-- Add user_salary --}}

@foreach($earning_salary_heads as $earning_head) @endforeach
{{-- Custom Earning Salary Heads --}} @if(config('config.enable_salary_detail_custom_head'))
@endif
@foreach($deduction_salary_heads as $deduction_head) @endforeach
@endif {!! Form::submit(isset($buttonText) ? $buttonText : trans('messages.save'),['class' => 'btn btn-primary pull-right', 'id' => 'ob-save-btn-salary']) !!}