{{ __('Employee') }}
{{ !empty(Workdo\Hrm\Entities\Employee::GetEmployeeByEmp($payslip->employee_id)) ? Workdo\Hrm\Entities\Employee::employeeIdFormat($payslip->employee_id) : '' }}
{{ __('Basic Salary') }}
{{ currency_format($payslip->basic_salary) }}
{{ __('Payroll Month') }}
{{ company_date_formate($payslip->salary_month) }}
{{ Form::open(['route' => ['payslip.updateemployee', $payslip->employee_id], 'method' => 'post']) }} {!! Form::hidden('payslip_id', $payslip->id, ['class' => 'form-control']) !!}
@php $allowances = json_decode($payslip->allowance); @endphp @foreach ($allowances as $allownace)
@if ($allownace->type == 'fixed') {!! Form::label('title', $allownace->title, ['class' => 'form-label']) !!} @else {!! Form::label('title', $allownace->title . ' (%) ', ['class' => 'form-label']) !!} @endif {!! 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)
@if ($commission->type == 'fixed') {!! Form::label('title', $commission->title, ['class' => 'form-label']) !!} @else {!! Form::label('title', $commission->title . ' (%) ', ['class' => 'form-label']) !!} @endif {!! 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)
@if ($loan->type == 'fixed') {!! Form::label('title', $loan->title, ['class' => 'form-label']) !!} @else {!! Form::label('title', $loan->title . ' (%) ', ['class' => 'form-label']) !!} @endif {!! 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)
@if ($deduction->type == 'fixed') {!! Form::label('title', $deduction->title, ['class' => 'form-label']) !!} @else {!! Form::label('title', $deduction->title . ' (%) ', ['class' => 'form-label']) !!} @endif {!! 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)
@if ($payment->type == 'fixed') {!! Form::label('title', $payment->title, ['class' => 'form-label']) !!} @else {!! Form::label('title', $payment->title . ' (%) ', ['class' => 'form-label']) !!} @endif {!! 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' => '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' => 'form-label']) !!} {!! Form::text('hours[]', $overtime->hours, ['class' => 'form-control']) !!}
@endforeach
@php $company_contributions = json_decode($payslip->company_contribution); @endphp @foreach ($company_contributions as $company_contribution)
@if ($company_contribution->type == 'fixed') {!! Form::label('title', $company_contribution->title, ['class' => 'form-label']) !!} @else {!! Form::label('title', $company_contribution->title . ' (%) ', ['class' => 'form-label']) !!} @endif {!! Form::text('company_contribution[]', $company_contribution->amount, ['class' => 'form-control']) !!} {!! Form::hidden('company_contribution_id[]', $company_contribution->id, ['class' => 'form-control']) !!}
@endforeach
{{ Form::close() }}