dbfdg @extends('layouts.admin') @section('page-title') {{__('Employee Set Salary')}} @endsection @section('breadcrumb') @endsection @section('content') @if(!empty($employee))
{{__('Employee Salary')}}
@can('create set salary') @endcan
{{__('Payslip Type') }}
@if(!empty($employee->salaryType)){{ $employee->salaryType->name }}@else -- @endif
{{__('Salary') }}
@if(!empty($employee->salary)){{ $employee->salary }}@else -- @endif
{{__('Account') }}
@if(!empty($employee->bankAccount)){{ $employee->bankAccount->bank_name }}@else -- @endif
{{__('Allowance')}}
@can('create allowance') @endcan
@if(!$allowances->isEmpty()) @if(\Auth::user()->type != 'Employee') @endif @foreach ($allowances as $allowance) {{-- --}} @if ( $allowance->type == 'fixed') @else @endif {{-- --}} @if(\Auth::user()->type != 'Employee') @endif @endforeach
{{__('Employee Name')}} {{__('Allownace Option')}} {{__('Title')}} {{__('Type') }} {{__('Amount')}}{{__('Action')}}
{{ !empty($allowance->employee())?$allowance->employee()->name:'' }}{{ $employee->name}} {{ !empty($allowance->allowanceOption)?$allowance->allowanceOption->name:'' }} {{ $allowance->title }} {{ucfirst ($allowance->type) }}{{ \Auth::user()->priceFormat($allowance->amount) }}{{($allowance->amount) }}% (${{$allowance->tota_allow}}){{ \Auth::user()->priceFormat($allowance->amount) }} @can('edit allowance')
@endcan @can('delete allowance')
{!! Form::open(['method' => 'DELETE', 'route' => ['allowance.destroy', $allowance->id],'id'=>'allowance-delete-form-'.$allowance->id]) !!} {!! Form::close() !!}
@endcan
@else
No Allowance Found!
@endif
{{__('Commission')}}
@can('create commission') @endcan
@if(!$commissions->isEmpty()) @if(\Auth::user()->type != 'Employee') @endif @foreach ($commissions as $commission) {{-- --}} {{-- --}} @if ($commission->type == 'fixed') @else @endif @if(\Auth::user()->type != 'Employee') @endif @endforeach
{{__('Employee Name')}} {{__('Title')}} {{__('Type')}} {{__('Amount')}}{{__('Action')}}
{{ !empty($commission->employee())?$commission->employee()->name:'' }}{{ $employee->name}} {{ $commission->title }}{{ \Auth::user()->priceFormat( $commission->amount) }}{{ucfirst ($commission ->type) }}{{ \Auth::user()->priceFormat( $commission->amount) }}{{ ( $commission->amount) }}% ({{ \Auth::user()->priceFormat($commission->tota_allow) }}) @can('edit commission')
@endcan @can('delete commission')
{!! Form::open(['method' => 'DELETE', 'route' => ['commission.destroy', $commission->id],'id'=>'commission-delete-form-'.$commission->id]) !!} {!! Form::close() !!}
@endcan
@else
No Commission Found!
@endif
{{__('Loan')}}
@can('create loan') @endcan
@if(!$loans->isEmpty()) {{-- --}} {{-- --}} @if(\Auth::user()->type != 'Employee') @endif @foreach ($loans as $loan) {{-- --}} @if ($loan->type == 'fixed') @else @endif {{-- --}} {{-- --}} {{-- --}} @if(\Auth::user()->type != 'Employee') @endif @endforeach
{{__('Employee')}} {{__('Loan Options')}} {{__('Title')}} {{__('Type')}} {{__('Loan Amount')}}{{__('Start Date')}}{{__('End Date')}}{{__('Action')}}
{{ !empty($loan->employee())?$loan->employee()->name:'' }}{{ $employee->name}} {{!empty( $loan->loanOption)? $loan->loanOption->name:'' }} {{ $loan->title }} {{ucfirst ($loan->type) }}{{ \Auth::user()->priceFormat($loan->amount) }}{{ ($loan->amount) }}% (${{$loan->tota_allow }}){{ \Auth::user()->priceFormat($loan->amount) }}{{ \Auth::user()->dateFormat($loan->start_date) }}{{ \Auth::user()->dateFormat( $loan->end_date) }} @can('edit loan')
@endcan @can('delete loan')
{!! Form::open(['method' => 'DELETE', 'route' => ['loan.destroy', $loan->id],'id'=>'loan-delete-form-'.$loan->id]) !!} {!! Form::close() !!}
@endcan
@else
No Loan Data Found!
@endif
{{__('Saturation Deduction')}}
@can('create saturation deduction') @endcan
@if(!$saturationdeductions->isEmpty()) @if(\Auth::user()->type != 'Employee') @endif @foreach ($saturationdeductions as $saturationdeduction) {{-- --}} @if ( $saturationdeduction->type == 'fixed') @else @endif {{-- --}} @if(\Auth::user()->type != 'Employee') @endif @endforeach
{{__('Employee Name')}} {{__('Deduction Option')}} {{__('Title')}} {{__('Type')}} {{__('Amount')}}{{__('Action')}}
{{ !empty($saturationdeduction->employee())?$saturationdeduction->employee()->name:'' }}{{ $employee->name}} {{ !empty($saturationdeduction->deductionOption)?$saturationdeduction->deductionOption->name:'' }} {{ $saturationdeduction->title }} {{ ucfirst ($saturationdeduction->type) }}{{ \Auth::user()->priceFormat( $saturationdeduction->amount) }}{{ ( $saturationdeduction->amount) }}% (${{ $saturationdeduction->tota_allow }}){{ \Auth::user()->priceFormat( $saturationdeduction->amount) }} @can('edit saturation deduction')
@endcan @can('delete saturation deduction')
{!! Form::open(['method' => 'DELETE', 'route' => ['saturationdeduction.destroy', $saturationdeduction->id],'id'=>'deduction-delete-form-'.$saturationdeduction->id]) !!} {!! Form::close() !!}
@endcan
@else
No Saturation Deduction Found!
@endif
{{__('Other Payment')}}
@can('create other payment') @endcan
@if(!$otherpayments->isEmpty()) @if(\Auth::user()->type != 'Employee') @endif @foreach ($otherpayments as $otherpayment) {{-- --}} @if ($otherpayment->type == 'fixed') @else @endif {{-- --}} @if(\Auth::user()->type != 'Employee') @endif @endforeach
{{__('Employee')}} {{__('Title')}} {{__('Type')}} {{__('Amount')}}{{__('Action')}}
{{ !empty($otherpayment->employee())?$otherpayment->employee()->name:'' }}{{ $employee->name}} {{ $otherpayment->title }} {{ ucfirst ($otherpayment->type) }}{{ \Auth::user()->priceFormat($otherpayment->amount) }}{{ ($otherpayment->amount) }}% (${{$otherpayment->tota_allow }}){{ \Auth::user()->priceFormat($otherpayment->amount) }} @can('edit other payment')
@endcan @can('delete other payment')
{!! Form::open(['method' => 'DELETE', 'route' => ['otherpayment.destroy', $otherpayment->id],'id'=>'payment-delete-form-'.$otherpayment->id]) !!} {!! Form::close() !!}
@endcan
@else
No Other Payment Data Found!
@endif
{{__('Overtime')}}
@can('create overtime') @endcan
@if(!$overtimes->isEmpty()) @if(\Auth::user()->type != 'Employee') @endif @foreach ($overtimes as $overtime) {{-- --}} @if(\Auth::user()->type != 'Employee') @endif @endforeach
{{__('Employee Name')}} {{__('Overtime Title')}} {{__('Number of days')}} {{__('Hours')}} {{__('Rate')}}{{__('Action')}}
{{ !empty($overtime->employee())?$overtime->employee()->name:'' }}{{ $employee->name}} {{ $overtime->title }} {{ $overtime->number_of_days }} {{ $overtime->hours }} {{ \Auth::user()->priceFormat($overtime->rate) }} @can('edit overtime')
@endcan @can('delete overtime')
{!! Form::open(['method' => 'DELETE', 'route' => ['overtime.destroy', $overtime->id],'id'=>'overtime-delete-form-'.$overtime->id]) !!} {!! Form::close() !!}
@endcan
@else
No Overtime Data Found!
@endif
@endif @endsection @push('script-page') @if(!empty($employee)) @endif @endpush