{{__('Employee')}}
{{ !empty($payslip->employees)? \Auth::user()->employeeIdFormat( $payslip->employees->employee_id):''}}
{{__('Basic Salary')}}
{{ \Auth::user()->priceFormat( $payslip->basic_salary)}}
{{__('Payroll Month')}}
{{ \Auth::user()->dateFormat( $payslip->salary_month)}}
{{Form::open(array('route'=>array('payslip.updateemployee',$payslip->employee_id),'method'=>'post'))}} {!! Form::hidden('payslip_id', $payslip->id, ['class' => 'form-control']) !!}
{{-- @dd($payslip->allowance) --}}
@php $allowances = json_decode($payslip->allowance); @endphp @foreach($allowances as $allownace)
{!! Form::label('title', $allownace->title,['class'=>'col-form-label']) !!} {!! Form::text('allowance[]', $allownace->amount, ['class' => 'form-control']) !!} {!! Form::hidden('allowance_id[]', $allownace->id, ['class' => 'form-control']) !!}
@endforeach
@php $commissions = json_decode($payslip->commission); @endphp @foreach($commissions as $commission)
{!! Form::label('title', $commission->title,['class'=>'col-form-label']) !!} {!! Form::text('commission[]', $commission->amount, ['class' => 'form-control']) !!} {!! Form::hidden('commission_id[]', $commission->id, ['class' => 'form-control']) !!}
@endforeach
@php $loans = json_decode($payslip->loan); @endphp @foreach($loans as $loan)
{!! Form::label('title', $loan->title,['class'=>'col-form-label']) !!} {!! Form::text('loan[]', $loan->amount, ['class' => 'form-control']) !!} {!! Form::hidden('loan_id[]', $loan->id, ['class' => 'form-control']) !!}
@endforeach
@php $saturation_deductions = json_decode($payslip->saturation_deduction); @endphp @foreach($saturation_deductions as $deduction)
{!! Form::label('title', $deduction->title,['class'=>'col-form-label']) !!} {!! Form::text('saturation_deductions[]', $deduction->amount, ['class' => 'form-control']) !!} {!! Form::hidden('saturation_deductions_id[]', $deduction->id, ['class' => 'form-control']) !!}
@endforeach
@php $other_payments = json_decode($payslip->other_payment); @endphp @foreach($other_payments as $payment)
{!! Form::label('title', $payment->title,['class'=>'col-form-label']) !!} {!! Form::text('other_payment[]', $payment->amount, ['class' => 'form-control']) !!} {!! Form::hidden('other_payment_id[]', $payment->id, ['class' => 'form-control']) !!}
@endforeach
@php $overtimes = json_decode($payslip->overtime); @endphp @foreach($overtimes as $overtime)
{!! Form::label('rate', $overtime->title.' '.__('Rate'),['class'=>'col-form-label']) !!} {!! Form::text('rate[]', $overtime->rate, ['class' => 'form-control']) !!} {!! Form::hidden('rate_id[]', $overtime->id, ['class' => 'form-control']) !!}
{!! Form::label('hours',$overtime->title.' '.__('Hours'),['class'=>'col-form-label']) !!} {!! Form::text('hours[]', $overtime->rate, ['class' => 'form-control']) !!}
@endforeach
{{Form::close()}}