@php $logo=asset(Storage::url('uploads/logo/')); $company_logo=Utility::getValByName('company_logo'); @endphp
{{--
{{__('Payslip')}}
--}}

{{__('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); $empdallow = $allowance->amount * $employess->salary / 100; @endphp @if ($allowance->type != 'percentage') @else @endif @endforeach @foreach($payslipDetail['earning']['commission'] as $commission) @php $employess= \App\Models\Employee::find($commission->employee_id); $empcomm = $commission->amount * $employess->salary / 100; @endphp @if ($commission->type != 'percentage') @else @endif @endforeach @foreach($payslipDetail['earning']['otherPayment'] as $otherPayment) @php $employess= \App\Models\Employee::find($otherPayment->employee_id); $emppayment = $otherPayment->amount * $employess->salary / 100; @endphp @if ($otherPayment->type != 'percentage') @else @endif @endforeach @foreach($payslipDetail['earning']['overTime'] as $overTime) @endforeach
{{__('Earning')}} {{__('Title')}} {{__('Type')}} {{__('Amount')}}
{{__('Basic Salary')}} - - {{ \Auth::user()->priceFormat( $payslip->basic_salary)}}
{{__('Allowance')}} {{$allowance->title}} {{ucfirst($allowance->type)}}{{ \Auth::user()->priceFormat( $allowance->amount)}}{{ ( $allowance->amount)}}% (${{ $empdallow }})
{{__('Commission')}} {{$commission->title}} {{ucfirst($commission->type)}}{{ \Auth::user()->priceFormat( $commission->amount)}}{{ ( $commission->amount)}}% (${{ $empcomm }})
{{__('Other Payment')}} {{$otherPayment->title}} {{ucfirst($otherPayment->type)}}{{ \Auth::user()->priceFormat( $otherPayment->amount)}}{{ ( $otherPayment->amount)}}% (${{ $emppayment }})
{{__('OverTime')}} {{$overTime->title}} - {{ \Auth::user()->priceFormat( $overTime->amount)}}
@foreach($payslipDetail['deduction']['loan'] as $loan) @php $employess= \App\Models\Employee::find($loan->employee_id); $emploan = $loan->amount * $employess->salary / 100; @endphp @if ($loan->type != 'percentage') @else @endif @endforeach @foreach($payslipDetail['deduction']['deduction'] as $deduction) @php $employess= \App\Models\Employee::find($deduction->employee_id); $empdeduction = $deduction->amount * $employess->salary / 100; @endphp @if ($deduction->type != 'percentage') @else @endif @endforeach
{{__('Deduction')}} {{__('Title')}} {{__('type')}} {{__('Amount')}}
{{__('Loan')}} {{$loan->title}} {{ucfirst($loan->type)}}{{ \Auth::user()->priceFormat( $loan->amount)}}{{ ( $loan->amount)}}% (${{ $emploan }})
{{__('Saturation Deduction')}} {{$deduction->title}} {{ucfirst($deduction->type)}}{{ \Auth::user()->priceFormat( $deduction->amount)}}{{ ( $deduction->amount)}}% (${{$empdeduction}})
{{__('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')}}