{{ Form::open(['url' => 'saturationdeduction', 'method' => 'post']) }}
@csrf
{{ Form::hidden('employee_id', $employee->id, []) }}
{{ Form::label('deduction_option', __('Deduction Options*'), ['class' => 'col-form-label']) }}
{{ Form::select('deduction_option', $deduction_options, null, ['class' => 'form-control ', 'required' => 'required']) }}
{{ Form::label('title', __('Title'), ['class' => 'col-form-label']) }}
{{ Form::text('title', null, ['class' => 'form-control ', 'required' => 'required']) }}
{{ Form::label('amount', __('Amount'), ['class' => 'col-form-label']) }}
{{ Form::number('amount', null, ['class' => 'form-control ', 'required' => 'required', 'step' => '0.01']) }}
@can('Create Saturation Deduction')
@endcan
{{ Form::close() }}
| {{ __('Employee Name') }} |
{{ __('Deduction Option') }} |
{{ __('Title') }} |
{{ __('Amount') }} |
{{ __('Action') }} |
@foreach ($saturationdeductions as $saturationdeduction)
| {{ $saturationdeduction->employee()->name }} |
{{ $saturationdeduction->deduction_option()->name }} |
{{ $saturationdeduction->title }} |
{{ \Auth::user()->priceFormat($saturationdeduction->amount) }}
|
@can('Edit Saturation Deduction')
@endcan
@can('Delete Saturation Deduction')
{!! Form::open([
'method' => 'DELETE',
'route' => ['saturationdeduction.destroy', $saturationdeduction->id],
'id' => 'delete-form-' . $saturationdeduction->id,
]) !!}
{!! Form::close() !!}
@endcan
|
@endforeach