dbfdg @php $logo=\App\Models\Utility::get_file('uploads/logo'); $company_logo = \App\Models\Utility::GetLogo(); @endphp

{{__('Name')}} : {{$employee->name}}
{{__('Position')}} : {{__('Employee')}}
{{__('Salary Date')}} : {{\Auth::user()->dateFormat( $payslip->created_at)}}
{{\Utility::getValByName('company_name')}}
{{\Utility::getValByName('company_address')}} , {{\Utility::getValByName('company_city')}},
{{\Utility::getValByName('company_state')}}-{{\Utility::getValByName('company_zipcode')}}
{{__('Salary Slip')}} : {{ $payslip->salary_month}}
@foreach ($payslipDetail['earning']['allowance'] as $allowance) @php $employess = \App\Models\Employee::find($allowance->employee_id); $allowance = json_decode($allowance->allowance); @endphp @foreach ($allowance as $all) @if ($all->type != 'percentage') @else @endif @endforeach @endforeach @foreach ($payslipDetail['earning']['commission'] as $commission) @php $employess = \App\Models\Employee::find($commission->employee_id); $commissions = json_decode($commission->commission); @endphp @foreach ($commissions as $empcom) @if ($empcom->type != 'percentage') @else @endif @endforeach @endforeach @foreach ($payslipDetail['earning']['otherPayment'] as $otherPayment) @php $employess = \App\Models\Employee::find($otherPayment->employee_id); $otherpay = json_decode($otherPayment->other_payment); @endphp @foreach ($otherpay as $op) @if ($op->type != 'percentage') @else @endif @endforeach @endforeach @foreach ($payslipDetail['earning']['overTime'] as $overTime) @php $arrayJson = json_decode($overTime->overtime); foreach ($arrayJson as $key => $overtime) { foreach ($arrayJson as $key => $overtimes) { $overtitle = $overtimes->title; $OverTime = $overtimes->number_of_days * $overtimes->hours * $overtimes->rate; } } @endphp @foreach ($arrayJson as $overtime) @endforeach @endforeach
{{__('Earning')}} {{__('Title')}} {{__('Type')}} {{__('Amount')}}
{{__('Basic Salary')}} - - {{ \Auth::user()->priceFormat( $payslip->basic_salary)}}
{{ __('Allowance') }} {{ $all->title }} {{ ucfirst($all->type) }} {{ \Auth::user()->priceFormat($all->amount) }}{{ $all->amount }}% ({{ \Auth::user()->priceFormat(($all->amount * $payslip->basic_salary) / 100) }})
{{ __('Commission') }} {{ $empcom->title }} {{ ucfirst($empcom->type) }} {{ \Auth::user()->priceFormat($empcom->amount) }}{{ $empcom->amount }}% ({{ \Auth::user()->priceFormat(($empcom->amount * $payslip->basic_salary) / 100) }})
{{ __('Other Payment') }} {{ $op->title }} {{ ucfirst($op->type) }} {{ \Auth::user()->priceFormat($op->amount) }}{{ $op->amount }}% ({{ \Auth::user()->priceFormat(($op->amount * $payslip->basic_salary) / 100) }})
{{ __('OverTime') }} {{ $overtime->title }} - {{ \Auth::user()->priceFormat($overtime->number_of_days * $overtime->hours * $overtime->rate) }}
@foreach ($payslipDetail['deduction']['loan'] as $loan) @php $employess = \App\Models\Employee::find($loan->employee_id); $loans = json_decode($loan->loan); @endphp @foreach ($loans as $emploanss) @if ($emploanss->type != 'percentage') @else @endif @endforeach @endforeach @foreach ($payslipDetail['deduction']['deduction'] as $deduction) @php $employess = \App\Models\Employee::find($deduction->employee_id); $deductions = json_decode($deduction->saturation_deduction); @endphp @foreach ($deductions as $saturationdeduc) @if ($saturationdeduc->type != 'percentage') @else @endif @endforeach @endforeach
{{__('Deduction')}} {{__('Title')}} {{__('type')}} {{__('Amount')}}
{{ __('Loan') }} {{ $emploanss->title }} {{ ucfirst($emploanss->type) }} {{ \Auth::user()->priceFormat($emploanss->amount) }}{{ $emploanss->amount }}% ({{ \Auth::user()->priceFormat(($emploanss->amount * $payslip->basic_salary) / 100) }})
{{ __('Saturation Deduction') }} {{ $saturationdeduc->title }} {{ ucfirst($saturationdeduc->type) }} {{ \Auth::user()->priceFormat($saturationdeduc->amount) }} {{ $saturationdeduc->amount }}% ({{ \Auth::user()->priceFormat(($saturationdeduc->amount * $payslip->basic_salary) / 100) }})
{{__('Total Earning')}}
{{ \Auth::user()->priceFormat($payslipDetail['totalEarning'])}}
{{__('Total Deduction')}}
{{ \Auth::user()->priceFormat($payslipDetail['totalDeduction'])}}

{{__('Net Salary')}}
{{ \Auth::user()->priceFormat($payslip->net_payble)}}

{{__('Employee Signature')}}

{{__('Paid By')}}