File manager - Edit - /var/www/payraty/hris/resources/views/payslip/edit.blade.php
Back
@extends('layouts.admin') @section('content') <div class="row"> <div class="main-content"> <section class="section"> <div class="section-header"> <h1>{{ __('Employee Salary Pay Slip') }}</h1> <div class="section-header-breadcrumb"> <div class="breadcrumb-item active"><a href="#">Home</a></div> <div class="breadcrumb-item">{{ __('Employee Salary Pay Slip') }}</div> </div> </div> @csrf <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <div class="d-flex justify-content-between w-100"> <h4>{{ __('Employee Salary Pay Slip') }}</h4> </div> </div> <div class="card-body"> <div class="setting-tab"> <ul class="nav nav-pills mb-3" id="myTab3" role="tablist"> <li class="nav-item"> <a class="nav-link active" id="home-tab3" data-toggle="tab" href="#salary" role="tab" aria-controls="" aria-selected="true">{{ __('Salary') }}</a> </li> <li class="nav-item"> <a class="nav-link" id="profile-tab3" data-toggle="tab" href="#allowance" role="tab" aria-controls="" aria-selected="false">{{ __('Allowance') }}</a> </li> <li class="nav-item"> <a class="nav-link" id="contact-tab3" data-toggle="tab" href="#commission" role="tab" aria-controls="" aria-selected="false">{{ __('Commission') }}</a> </li> <li class="nav-item"> <a class="nav-link" id="contact-tab4" data-toggle="tab" href="#loan" role="tab" aria-controls="" aria-selected="false">{{ __('Loan') }}</a> </li> <li class="nav-item"> <a class="nav-link" id="contact-tab4" data-toggle="tab" href="#saturation-deduction" role="tab" aria-controls="" aria-selected="false">{{ __('Saturation Deduction') }}</a> </li> <li class="nav-item"> <a class="nav-link" id="contact-tab4" data-toggle="tab" href="#other-payment" role="tab" aria-controls="" aria-selected="false">{{ __('Other Payment') }}</a> </li> <li class="nav-item"> <a class="nav-link" id="contact-tab4" data-toggle="tab" href="#overtime" role="tab" aria-controls="" aria-selected="false">{{ __('Overtime') }}</a> </li> </ul> <div class="tab-content" id="myTabContent2"> <div class="tab-pane fade show active" id="salary" role="tabpanel" aria-labelledby="salary-tab3"> <div class="company-setting-wrap"> {{ Form::model($employee, ['route' => ['employee.update', $employee->id],'method' => 'PUT','enctype' => 'multipart/form-data']) }} <div class="row"> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('salary_type', __('Payslip Type*')) }} {{ Form::select('salary_type', $payslip_type, null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('salary', __('Salary')) }} {{ Form::number('salary', null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> </div> <div class="row"> <div class="col-12 text-right mt-1"> {{ Form::button('<i class="fas fa-plus"></i> ' . __('Save Change'), ['type' => 'submit','class' => 'btn btn-primary']) }} </div> </div> {{ Form::close() }} </div> </div> <div class="tab-pane fade" id="allowance" role="tabpanel" aria-labelledby="allowance-tab3"> <div class="company-setting-wrap"> {{ Form::open(['url' => 'allowance', 'method' => 'post']) }} @csrf {{ Form::hidden('employee_id', $employee->id, []) }} <div class="row"> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('allowance_option', __('Allowance Options*')) }} {{ Form::select('allowance_option', $allowance_options, null, ['class' => 'form-control ','required' => 'required']) }} </div> </div> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('title', __('Title')) }} {{ Form::text('title', null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> </div> <div class="row"> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('amount', __('Amount')) }} {{ Form::number('amount', null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> </div> <div class="row"> <div class="col-12 text-right mt-1"> {{ Form::button('<i class="fas fa-plus"></i> ' . __('Save Change'), ['type' => 'submit','class' => 'btn btn-primary']) }} </div> </div> {{ Form::close() }} <hr> <div class="table-responsive"> <table class="table table-striped mb-0" id="allowance-dataTable"> <thead> <tr> <th>{{ __('Employee Name') }}</th> <th>{{ __('Allownace Option') }}</th> <th>{{ __('Title') }}</th> <th>{{ __('Amount') }}</th> <th class="text-right" width="200px">{{ __('Action') }} </th> </tr> </thead> <tbody> @foreach ($allowances as $allowance) <tr> <td>{{ $allowance->employee()->name }}</td> <td>{{ $allowance->allowance_option()->name }}</td> <td>{{ $allowance->title }}</td> <td>{{ $allowance->amount }}</td> <td class="d-flex"> @can('Edit Allowance') <a href="#" data-url="{{ URL::to('allowance/' . $allowance->id . '/edit') }}" data-size="lg" data-ajax-popup="true" data-title="{{ __('Edit Allowance') }}" class="btn btn-outline-primary btn-sm mr-1" data-toggle="tooltip" data-original-title="{{ __('Edit') }}"><i class="ti ti-pencil"></i> <span>{{ __('Edit') }}</span></a> @endcan @can('Delete Allowance') {!! Form::open(['method' => 'DELETE', 'route' => ['allowance.destroy', $allowance->id], 'id' => 'delete-form-' . $allowance->id]) !!} <a href="#!" class="action-btn btn-danger me-1 btn btn-sm d-inline-flex align-items-center show_confirm" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{ __('Delete') }}"> <i class="ti ti-trash"></i></a> {!! Form::close() !!} @endcan </td> </tr> @endforeach </tbody> </table> </div> </div> </div> <div class="tab-pane fade" id="commission" role="tabpanel" aria-labelledby="commission-tab3"> <div class="email-setting-wrap"> {{ Form::open(['url' => 'commission', 'method' => 'post']) }} @csrf {{ Form::hidden('employee_id', $employee->id, []) }} <div class="row"> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('title', __('Title')) }} {{ Form::text('title', null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('amount', __('Amount')) }} {{ Form::number('amount', null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> </div> <div class="row"> <div class="col-12 text-right mt-1"> {{ Form::button('<i class="fas fa-plus"></i> ' . __('Save Change'), ['type' => 'submit','class' => 'btn btn-primary']) }} </div> </div> {{ Form::close() }} <hr> <div class="table-responsive"> <table class="table table-striped mb-0" id="commission-dataTable"> <thead> <tr> <th>{{ __('Employee Name') }}</th> <th>{{ __('Title') }}</th> <th>{{ __('Amount') }}</th> <th class="text-right" width="200px">{{ __('Action') }} </th> </tr> </thead> <tbody> @foreach ($commissions as $commission) <tr> <td>{{ $commission->employee()->name }}</td> <td>{{ $commission->title }}</td> <td>{{ $commission->amount }}</td> <td class="d-flex"> @can('Edit Allowance') <a href="#" data-url="{{ URL::to('commission/' . $commission->id . '/edit') }}" data-size="lg" data-ajax-popup="true" data-title="{{ __('Edit Allowance') }}" class="btn btn-outline-primary btn-sm mr-1" data-toggle="tooltip" data-original-title="{{ __('Edit') }}"><i class="ti ti-pencil"></i> <span>{{ __('Edit') }}</span></a> @endcan @can('Delete Allowance') {!! Form::open(['method' => 'DELETE', 'route' => ['commission.destroy', $commission->id], 'id' => 'delete-form-' . $commission->id]) !!} <a href="#!" class="action-btn btn-danger me-1 btn btn-sm d-inline-flex align-items-center show_confirm" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{ __('Delete') }}"> <i class="ti ti-trash"></i></a> {!! Form::close() !!} @endcan </td> </tr> @endforeach </tbody> </table> </div> </div> </div> <div class="tab-pane fade" id="loan" role="tabpanel" aria-labelledby="loan-tab4"> <div class="email-setting-wrap"> {{ Form::open(['url' => 'loan', 'method' => 'post']) }} @csrf {{ Form::hidden('employee_id', $employee->id, []) }} <div class="row"> <div class="col-12 col-md-4"> <div class="form-group"> {{ Form::label('loan_option', __('Loan Options*')) }} {{ Form::select('loan_option', $loan_options, null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> <div class="col-12 col-md-4"> <div class="form-group"> {{ Form::label('title', __('Title')) }} {{ Form::text('title', null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> <div class="col-12 col-md-4"> <div class="form-group"> {{ Form::label('amount', __('Loan Amount')) }} {{ Form::number('amount', null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> </div> <div class="row"> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('start_date', __('Start Date')) }} {{ Form::text('start_date', null, ['class' => 'form-control ','id' => 'data_picker4','required' => 'required']) }} </div> </div> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('end_date', __('End Date')) }} {{ Form::text('end_date', null, ['class' => 'form-control ', 'id' => 'data_picker3', 'required' => 'required']) }} </div> </div> </div> <div class="row"> <div class="col-12 col-md-12"> <div class="form-group"> {{ Form::label('reason', __('Reason')) }} {{ Form::textarea('reason', null, ['class' => 'form-control ', 'required' => 'required', 'rows' => '3']) }} </div> </div> </div> <div class="row"> <div class="col-12 text-right mt-1"> {{ Form::button('<i class="fas fa-plus"></i> ' . __('Save Change'), ['type' => 'submit','class' => 'btn btn-primary']) }} </div> </div> {{ Form::close() }} <hr> <div class="table-responsive"> <table class="table table-striped mb-0" id="loan-dataTable"> <thead> <tr> <th>{{ __('employee') }}</th> <th>{{ __('Loan Options') }}</th> <th>{{ __('Title') }}</th> <th>{{ __('Loan Amount') }}</th> <th>{{ __('Start Date') }}</th> <th>{{ __('End Date') }}</th> <th class="text-right" width="200px">{{ __('Action') }} </th> </tr> </thead> <tbody> @foreach ($loans as $loan) <tr> <td>{{ $loan->employee()->name }}</td> <td>{{ $loan->loan_option()->name }}</td> <td>{{ $loan->title }}</td> <td>{{ $loan->amount }}</td> <td>{{ $loan->start_date }}</td> <td>{{ $loan->end_date }}</td> <td class="d-flex"> @can('Edit Loan') <a href="#" data-url="{{ URL::to('loan/' . $loan->id . '/edit') }}" data-size="lg" data-ajax-popup="true" data-title="{{ __('Edit Allowance') }}" class="btn btn-outline-primary btn-sm mr-1" data-toggle="tooltip" data-original-title="{{ __('Edit') }}"><i class="ti ti-pencil"></i> <span>{{ __('Edit') }}</span></a> @endcan @can('Delete Loan') {!! Form::open(['method' => 'DELETE', 'route' => ['loan.destroy', $loan->id], 'id' => 'delete-form-' . $loan->id]) !!} <a href="#!" class="action-btn btn-danger me-1 btn btn-sm d-inline-flex align-items-center show_confirm" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{ __('Delete') }}"> <i class="ti ti-trash"></i></a> {!! Form::close() !!} @endcan </td> </tr> @endforeach </tbody> </table> </div> </div> </div> <div class="tab-pane fade" id="saturation-deduction" role="tabpanel" aria-labelledby="saturation-deduction-tab3"> <div class="email-setting-wrap"> {{ Form::open(['url' => 'saturationdeduction', 'method' => 'post']) }} @csrf {{ Form::hidden('employee_id', $employee->id, []) }} <div class="row"> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('deduction_option', __('Deduction Options*')) }} {{ Form::select('deduction_option', $deduction_options, null, ['class' => 'form-control ','required' => 'required']) }} </div> </div> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('title', __('Title')) }} {{ Form::text('title', null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> </div> <div class="row"> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('amount', __('Amount')) }} {{ Form::number('amount', null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> </div> <div class="row"> <div class="col-12 text-right mt-1"> {{ Form::button('<i class="fas fa-plus"></i> ' . __('Save Change'), ['type' => 'submit','class' => 'btn btn-primary']) }} </div> </div> {{ Form::close() }} <hr> <div class="table-responsive"> <table class="table table-striped mb-0" id="saturation-deduction-dataTable"> <thead> <tr> <th>{{ __('Employee Name') }}</th> <th>{{ __('Deduction Option') }}</th> <th>{{ __('Title') }}</th> <th>{{ __('Amount') }}</th> <th class="text-right" width="200px">{{ __('Action') }} </th> </tr> </thead> <tbody> @foreach ($saturationdeductions as $saturationdeduction) <tr> <td>{{ $saturationdeduction->employee()->name }}</td> <td>{{ $saturationdeduction->deduction_option()->name }} </td> <td>{{ $saturationdeduction->title }}</td> <td>{{ $saturationdeduction->amount }}</td> <td class="d-flex"> @can('Edit Saturation Deduction') <a href="#" data-url="{{ URL::to('saturationdeduction/' . $saturationdeduction->id . '/edit') }}" data-size="lg" data-ajax-popup="true" data-title="{{ __('Edit Allowance') }}" class="btn btn-outline-primary btn-sm mr-1" data-toggle="tooltip" data-original-title="{{ __('Edit') }}"><i class="ti ti-pencil"></i> <span>{{ __('Edit') }}</span></a> @endcan @can('Delete Saturation Deduction') {!! Form::open(['method' => 'DELETE', 'route' => ['saturationdeduction.destroy', $saturationdeduction->id], 'id' => 'delete-form-' . $saturationdeduction->id]) !!} <a href="#!" class="action-btn btn-danger me-1 btn btn-sm d-inline-flex align-items-center show_confirm" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{ __('Delete') }}"> <i class="ti ti-trash"></i></a> {!! Form::close() !!} @endcan </td> </tr> @endforeach </tbody> </table> </div> </div> </div> <div class="tab-pane fade" id="other-payment" role="tabpanel" aria-labelledby="other-payment-tab4"> <div class="email-setting-wrap"> {{ Form::open(['url' => 'otherpayment', 'method' => 'post']) }} @csrf {{ Form::hidden('employee_id', $employee->id, []) }} <div class="row"> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('title', __('Title')) }} {{ Form::text('title', null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('amount', __('Amount')) }} {{ Form::number('amount', null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> </div> <div class="row"> <div class="col-12 text-right mt-1"> {{ Form::button('<i class="fas fa-plus"></i> ' . __('Save Change'), ['type' => 'submit','class' => 'btn btn-primary']) }} </div> </div> {{ Form::close() }} <hr> <div class="table-responsive"> <table class="table table-striped mb-0" id="other-payment-dataTable"> <thead> <tr> <th>{{ __('employee') }}</th> <th>{{ __('Title') }}</th> <th>{{ __('Amount') }}</th> <th class="text-right" width="200px">{{ __('Action') }} </th> </tr> </thead> <tbody> @foreach ($otherpayments as $otherpayment) <tr> <td>{{ $otherpayment->employee()->name }}</td> <td>{{ $otherpayment->title }}</td> <td>{{ $otherpayment->amount }}</td> <td class="d-flex"> @can('Edit Other Payment') <a href="#" data-url="{{ URL::to('otherpayment/' . $otherpayment->id . '/edit') }}" data-size="lg" data-ajax-popup="true" data-title="{{ __('Edit Allowance') }}" class="btn btn-outline-primary btn-sm mr-1" data-toggle="tooltip" data-original-title="{{ __('Edit') }}"><i class="ti ti-pencil"></i> <span>{{ __('Edit') }}</span></a> @endcan @can('Delete Other Payment') {!! Form::open(['method' => 'DELETE', 'route' => ['otherpayment.destroy', $otherpayment->id], 'id' => 'delete-form-' . $otherpayment->id]) !!} <a href="#!" class="action-btn btn-danger me-1 btn btn-sm d-inline-flex align-items-center show_confirm" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{ __('Delete') }}"> <i class="ti ti-trash"></i></a> {!! Form::close() !!} @endcan </td> </tr> @endforeach </tbody> </table> </div> </div> </div> <div class="tab-pane fade" id="overtime" role="tabpanel" aria-labelledby="overtime-tab4"> <div class="email-setting-wrap"> {{ Form::open(['url' => 'overtime', 'method' => 'post']) }} @csrf {{ Form::hidden('employee_id', $employee->id, []) }} <div class="row"> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('title', __('Overtime Title*')) }} {{ Form::text('title', null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('number_of_days', __('Number of days')) }} {{ Form::number('number_of_days', null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> </div> <div class="row"> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('hours', __('Hours')) }} {{ Form::number('hours', null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> <div class="col-12 col-md-6"> <div class="form-group"> {{ Form::label('rate', __('Rate')) }} {{ Form::number('rate', null, ['class' => 'form-control ', 'required' => 'required']) }} </div> </div> </div> <div class="row"> <div class="col-12 text-right mt-1"> {{ Form::button('<i class="fas fa-plus"></i> ' . __('Save Change'), ['type' => 'submit','class' => 'btn btn-primary']) }} </div> </div> {{ Form::close() }} <hr> <div class="table-responsive"> <table class="table table-striped mb-0" id="overtime-dataTable"> <thead> <tr> <th>{{ __('Employee Name') }}</th> <th>{{ __('Overtime Title') }}</th> <th>{{ __('Number of days') }}</th> <th>{{ __('Hours') }}</th> <th>{{ __('Rate') }}</th> <th class="text-right" width="200px">{{ __('Action') }} </th> </tr> </thead> <tbody> @foreach ($overtimes as $overtime) <tr> <td>{{ $overtime->employee()->name }}</td> <td>{{ $overtime->title }}</td> <td>{{ $overtime->number_of_days }}</td> <td>{{ $overtime->hours }}</td> <td>{{ $overtime->rate }}</td> <td class="d-flex"> @can('Edit Allowance') <a href="#" data-url="{{ URL::to('overtime/' . $overtime->id . '/edit') }}" data-size="lg" data-ajax-popup="true" data-title="{{ __('Edit Allowance') }}" class="btn btn-outline-primary btn-sm mr-1" data-toggle="tooltip" data-original-title="{{ __('Edit') }}"><i class="ti ti-pencil"></i> <span>{{ __('Edit') }}</span></a> @endcan @can('Delete Allowance') {!! Form::open(['method' => 'DELETE', 'route' => ['overtime.destroy', $overtime->id], 'id' => 'delete-form-' . $overtime->id]) !!} <a href="#!" class="action-btn btn-danger me-1 btn btn-sm d-inline-flex align-items-center show_confirm" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{ __('Delete') }}"> <i class="ti ti-trash"></i></a> {!! Form::close() !!} @endcan </td> </tr> @endforeach </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> </div> </section> </div> </div> @endsection @push('script-page') <script type="text/javascript"> $(document).ready(function() { var d_id = $('#department_id').val(); var designation_id = '{{ $employee->designation_id }}'; getDesignation(d_id); $("#allowance-dataTable").dataTable({ "columnDefs": [{ "sortable": false, "targets": [1] }] }); $("#commission-dataTable").dataTable({ "columnDefs": [{ "sortable": false, "targets": [1] }] }); $("#loan-dataTable").dataTable({ "columnDefs": [{ "sortable": false, "targets": [1] }] }); $("#saturation-deduction-dataTable").dataTable({ "columnDefs": [{ "sortable": false, "targets": [1] }] }); $("#other-payment-dataTable").dataTable({ "columnDefs": [{ "sortable": false, "targets": [1] }] }); $("#overtime-dataTable").dataTable({ "columnDefs": [{ "sortable": false, "targets": [1] }] }); }); $(document).on('change', 'select[name=department_id]', function() { var department_id = $(this).val(); getDesignation(department_id); }); function getDesignation(did) { $.ajax({ url: '{{ route('employee.json') }}', type: 'POST', data: { "department_id": did, "_token": "{{ csrf_token() }}", }, success: function(data) { $('#designation_id').empty(); $('#designation_id').append('<option value="">{{ __('Select Designation') }}</option>'); $.each(data, function(key, value) { var select = ''; if (key == '{{ $employee->designation_id }}') { select = 'selected'; } $('#designation_id').append('<option value="' + key + '" ' + select + '>' + value + '</option>'); }); } }); } </script> @endpush
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings