@extends('layouts.admin') @section('page-title') {{__('Employee Set Salary')}} @endsection @section('breadcrumb') @endsection @section('content')
{{__('Employee Salary')}}
@can('create set salary') @endcan
{{__('Payslip Type') }}
@if(!empty($employee->salary_type())){{ $employee->salary_type() }}@else -- @endif
{{__('Salary') }}
@if(!empty($employee->salary)){{ $employee->salary }}@else -- @endif
{{__('Allowance')}}
@can('create allowance') @endcan
@if(!$allowances->isEmpty()) @foreach ($allowances as $allowance) @if ( $allowance->type == 'fixed') @else @endif {{-- --}} @endforeach
{{__('Employee Name')}} {{__('Allownace Option')}} {{__('Title')}} {{__('Type') }} {{__('Amount')}} {{__('Action')}}
{{ !empty($allowance->employee())?$allowance->employee()->name:'' }} {{ !empty($allowance->allowance_option())?$allowance->allowance_option()->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()) @foreach ($commissions as $commission) {{-- --}} @if ($commission->type == 'fixed') @else @endif @endforeach
{{__('Employee Name')}} {{__('Title')}} {{__('Type')}} {{__('Amount')}} {{__('Action')}}
{{ !empty($commission->employee())?$commission->employee()->name:'' }} {{ $commission->title }}{{ \Auth::user()->priceFormat( $commission->amount) }}{{ucfirst ($commission ->type) }}{{ \Auth::user()->priceFormat( $commission->amount) }}{{ ( $commission->amount) }}% (${{ $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()) @foreach ($loans as $loan) @if ($loan->type == 'fixed') @else @endif {{-- --}} @endforeach
{{__('Employee')}} {{__('Loan Options')}} {{__('Title')}} {{__('Type')}} {{__('Loan Amount')}} {{__('Start Date')}} {{__('End Date')}} {{__('Action')}}
{{ !empty($loan->employee())?$loan->employee()->name:'' }} {{!empty( $loan->loan_option())? $loan->loan_option()->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()) @foreach ($saturationdeductions as $saturationdeduction) @if ( $saturationdeduction->type == 'fixed') @else @endif {{-- --}} @endforeach
{{__('Employee Name')}} {{__('Deduction Option')}} {{__('Title')}} {{__('Type')}} {{__('Amount')}} {{__('Action')}}
{{ !empty($saturationdeduction->employee())?$saturationdeduction->employee()->name:'' }} {{ !empty($saturationdeduction->deduction_option())?$saturationdeduction->deduction_option()->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()) @foreach ($otherpayments as $otherpayment) @if ($otherpayment->type == 'fixed') @else @endif {{-- --}} @endforeach
{{__('Employee')}} {{__('Title')}} {{__('Type')}} {{__('Amount')}} {{__('Action')}}
{{ !empty($otherpayment->employee())?$otherpayment->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()) @foreach ($overtimes as $overtime) @endforeach
{{__('Employee Name')}} {{__('Overtime Title')}} {{__('Number of days')}} {{__('Hours')}} {{__('Rate')}} {{__('Action')}}
{{ !empty($overtime->employee())?$overtime->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
@endsection @push('script-page') @endpush