{{ __('Employee Salary Pay Slip') }}

@csrf

{{ __('Employee Salary Pay Slip') }}

{{ Form::model($employee, ['route' => ['employee.update', $employee->id],'method' => 'PUT','enctype' => 'multipart/form-data']) }}
{{ Form::label('salary_type', __('Payslip Type*')) }} {{ Form::select('salary_type', $payslip_type, null, ['class' => 'form-control ', 'required' => 'required']) }}
{{ Form::label('salary', __('Salary')) }} {{ Form::number('salary', null, ['class' => 'form-control ', 'required' => 'required']) }}
{{ Form::button(' ' . __('Save Change'), ['type' => 'submit','class' => 'btn btn-primary']) }}
{{ Form::close() }}
{{ Form::open(['url' => 'allowance', 'method' => 'post']) }} @csrf {{ Form::hidden('employee_id', $employee->id, []) }}
{{ Form::label('allowance_option', __('Allowance Options*')) }} {{ Form::select('allowance_option', $allowance_options, null, ['class' => 'form-control ','required' => 'required']) }}
{{ Form::label('title', __('Title')) }} {{ Form::text('title', null, ['class' => 'form-control ', 'required' => 'required']) }}
{{ Form::label('amount', __('Amount')) }} {{ Form::number('amount', null, ['class' => 'form-control ', 'required' => 'required']) }}
{{ Form::button(' ' . __('Save Change'), ['type' => 'submit','class' => 'btn btn-primary']) }}
{{ Form::close() }}
@foreach ($allowances as $allowance) @endforeach
{{ __('Employee Name') }} {{ __('Allownace Option') }} {{ __('Title') }} {{ __('Amount') }} {{ __('Action') }}
{{ $allowance->employee()->name }} {{ $allowance->allowance_option()->name }} {{ $allowance->title }} {{ $allowance->amount }} @can('Edit Allowance') {{ __('Edit') }} @endcan @can('Delete Allowance') {!! Form::open(['method' => 'DELETE', 'route' => ['allowance.destroy', $allowance->id], 'id' => 'delete-form-' . $allowance->id]) !!} {!! Form::close() !!} @endcan