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

@csrf

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

{{ Form::model($employee, array('route' => array('employee.update', $employee->id), 'method' => 'PUT' , 'enctype' => 'multipart/form-data')) }}
{{ Form::label('salary_type', __('Payslip Type*')) }} {{ Form::select('salary_type',$payslip_type,null, array('class' => 'form-control ','required'=>'required')) }}
{{ Form::label('salary', __('Salary')) }} {{ Form::number('salary',null, array('class' => 'form-control ','required'=>'required')) }}
{{ Form::button(' '.__('Save Change'), ['type' => 'submit','class' => 'btn btn-primary']) }}
{{Form::close()}}
{{Form::open(array('url'=>'allowance','method'=>'post'))}} @csrf {{ Form::hidden('employee_id',$employee->id, array()) }}
{{ Form::label('allowance_option', __('Allowance Options*')) }} {{ Form::select('allowance_option',$allowance_options,null, array('class' => 'form-control ','required'=>'required')) }}
{{ Form::label('title', __('Title')) }} {{ Form::text('title',null, array('class' => 'form-control ','required'=>'required')) }}
{{ Form::label('amount', __('Amount')) }} {{ Form::number('amount',null, array('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') {{__('Delete')}} {!! Form::open(['method' => 'DELETE', 'route' => ['allowance.destroy', $allowance->id],'id'=>'delete-form-'.$allowance->id]) !!} {!! Form::close() !!} @endcan