@extends('layouts.app') @section('style') @endsection @section('content')
Payments
PERSONNEL

{{ $personnel->first_name . ' ' . $personnel->last_name }}

CASH BOND (After this payment)

₱{{ number_format($payment->cash_bond_amount, 2) }}

LOAN BALANCE (After this payment)

₱{{ number_format($payment->loan_amount, 2) }}

TOTAL PAYMENT

₱{{ number_format($payment->total, 2) }}

Summarry

Label Amount
DTR ₱{{ number_format($payment->dtr, 2) }}
Loans ₱{{ number_format($payment->loans, 2) }}
Deductions ₱{{ number_format($payment->deductions, 2) }}
Adjustment @if($payment->adjustment >= 0) ₱{{ number_format($payment->adjustment, 2) }} @else -₱{{ number_format(($payment->adjustment * -1), 2) }} @endif
Contracts ₱{{ number_format($payment->total_misc, 2) }}
Total Payment ₱{{ number_format($payment->total, 2) }}

DTR

@foreach ($posts as $post)
{{-- --}}
{{ $post->branch_name }}
Days Rate Amount OT Hours OT Rate OT Amount
WD {{ $post->wd }} {{ $post->rate_wd }} ₱{{ number_format($post->wd_amount, 2) }} {{ $post->ot_wd }} {{ $post->rate_wd_ot }} ₱{{ number_format($post->ot_wd_amount, 2) }}
RD {{ $post->rd }} {{ $post->rate_rd }} ₱{{ number_format($post->rd_amount, 2) }} {{ $post->ot_rd }} {{ $post->rate_rd_ot }} ₱{{ number_format($post->ot_rd_amount, 2) }}
SH {{ $post->sh }} {{ $post->rate_sh }} ₱{{ number_format($post->sh_amount, 2) }} {{ $post->ot_sh }} {{ $post->rate_sh_ot }} ₱{{ number_format($post->ot_sh_amount, 2) }}
RH {{ $post->rh }} {{ $post->rate_rh }} ₱{{ number_format($post->rh_amount, 2) }} {{ $post->ot_rh }} {{ $post->rate_rh_ot }} ₱{{ number_format($post->ot_rh_amount, 2) }}
DH {{ $post->dh }} {{ $post->rate_dh }} ₱{{ number_format($post->dh_amount, 2) }} {{ $post->ot_dh }} {{ $post->rate_dh_ot }} ₱{{ number_format($post->ot_dh_amount, 2) }}
SHRD {{ $post->shrd }} {{ $post->rate_shrd }} ₱{{ number_format($post->shrd_amount, 2) }} {{ $post->ot_shrd }} {{ $post->rate_shrd_ot }} ₱{{ number_format($post->ot_shrd_amount, 2) }}
RHRD {{ $post->rhrd }} {{ $post->rate_rhrd }} ₱{{ number_format($post->rhrd_amount, 2) }} {{ $post->ot_rhrd }} {{ $post->rate_rhrd_ot }} ₱{{ number_format($post->ot_rhrd_amount, 2) }}
DHRD {{ $post->dhrd }} {{ $post->rate_dhrd }} ₱{{ number_format($post->dhrd_amount, 2) }} {{ $post->ot_dhrd }} {{ $post->rate_dhrd_ot }} ₱{{ number_format($post->ot_dhrd_amount, 2) }}
@endforeach
@if (count($loans) > 0)

Loans

@foreach ($loans as $loan) @endforeach
Type Deduction Rate Remaining Balance
{{-- @if($loan->type == 1) SSS @elseIf($loan->type == 2) Pag-Ibig @elseIf($loan->type == 3) Cash Advance @else Office Loan @endif --}} {{ $loan->type }} {{ number_format($loan->deduction_rate, 2) }} {{ number_format($loan->remaining_balance, 2) }}
TOTAL ₱{{ number_format($payment->loans, 2) }}
@endif @if (count($deductions) > 0)

Deductions

{{-- --}} @foreach ($deductions as $deduction) @endforeach
Deduction Type Deduction Rate
Cash Bond Savings 50
{{ $deduction->name }} @if($deduction->type == 4) Temporary @elseif($deduction->type == 1) One-time @elseif($deduction->type == 2) Recurring @elseif($deduction->type == 0) Savings @else Contribution @endif {{ $deduction->deduction_rate }}
TOTAL ₱{{ number_format($payment->deductions, 2) }}
@endif @if (count($adjustments) > 0)

Adjustments

@foreach ($adjustments as $adjustment) @endforeach
Label Amount
{{ $adjustment->label }} @if($adjustment->amount >= 0) ₱{{ number_format($adjustment->amount, 2) }} @else -₱{{ number_format(($adjustment->amount * -1), 2) }} @endif
TOTAL @if($payment->adjustment >= 0) ₱{{ number_format($payment->adjustment, 2) }} @else -₱{{ number_format(($payment->adjustment * -1), 2) }} @endif
@endif @if($misc)

Contracts

Night Differential Pay {{ $misc->night_differential_pay }}
Incentive {{ $misc->incentive_pay }}
Uniform Allowance {{ $misc->uniform_allowance }}
Overtime Pay {{ $misc->overtime_pay }}
Thirteenth Month Pay {{ $misc->thirteenth_month_pay }}
Retirement Benefit {{ $misc->retirement_benefit }}
SSS Contribution @if($misc->sss_contribution > 0)-@endif{{ $misc->sss_contribution }}
Philhealth Contribution @if($misc->philhealth_contribution > 0)-@endif{{ $misc->philhealth_contribution }}
Pag Ibig Contribution @if($misc->pag_ibig_contribution > 0)-@endif{{ $misc->pag_ibig_contribution }}
TOTAL ₱{{ number_format($payment->total_misc, 2) }}
@endif

Bank

Location {{ $payment->location }}
Mode of Payment {{ $payment->mode_of_payment }}
Bank Name {{ $payment->bank_name }}
Account Name {{ $payment->account_name }}
Account Number {{ $payment->account_number }}
@section('script') @endsection @endsection @section('print')
BWPSSI SECURITY AGENCY
(BLACKWATER PHILIPPINES SECURITY SOLUTION) INC.
Gomez-Burgos Sts., Brgy. 7 Cagayan de Oro City

Tel. No. (088) 882 - 0178: CELL NO: 0917-772-8472

PAYSLIP

Payslip #: {{ $payment->id + 1000 }}

Payroll Date: {{ $payrol_date }}

Name: {{ $personnel->last_name . ', ' . $personnel->first_name}}

Inclusive Dates: {{ date('m/d/Y', strtotime($payment_period->start_date)) }} - {{ date('m/d/Y', strtotime($payment_period->end_date)) }}

AREA POSTED
DAY/S
RATE
TOTAL
@foreach ($posts as $post)
{{ $post->branch_name }}
{{ $post->wd }}
{{ number_format($post->rate_wd, 2) }}
{{ number_format($post->wd_amount, 2) }}
@endforeach
(Inculdes Baisc Pay and all Benefits pursuant to TCGP)
Gross Pay
{{ number_format($wdTotalAmount, 2) }}
ADDITIONAL AMOUNT
@foreach ($positiveAdjustment as $adjustment)

{{ $adjustment->label }}

{{ $adjustment->amount }}

@endforeach @if($misc) @if($misc->night_differential_pay > 0)

Night Differential Pay

{{ $misc->night_differential_pay }}

@endif @if($misc->incentive_pay > 0)

Incentive

{{ $misc->incentive_pay }}

@endif @if($misc->uniform_allowance > 0)

Uniform Allowance

{{ $misc->uniform_allowance }}

@endif @if($misc->overtime_pay > 0)

Overtime Pay

{{ $misc->overtime_pay }}

@endif {{-- @if($misc->thirteenth_month_pay > 0)

Thirteenth Month Pay

{{ $misc->thirteenth_month_pay }}

@endif @if($misc->retirement_benefit > 0)

Retirement Benefit

{{ $misc->retirement_benefit }}

@endif --}} @endif
@if($misc) {{ number_format(($totalPositiveAdjustment + $misc->night_differential_pay + $misc->incentive_pay + $misc->uniform_allowance + $misc->overtime_pay ), 2) }} @else {{ number_format(($totalPositiveAdjustment), 2) }} @endif
DEDUCTIONS AMOUNT
@foreach ($deductions as $deduction)

{{ $deduction->name }}

{{ $deduction->deduction_rate }}

@endforeach @foreach ($loans as $loan)

{{ $loan->type }}

{{ $loan->deduction_rate }}

@endforeach @foreach ($negativeAdjustment as $na)

{{ $na->label }}

{{ number_format(abs($na->amount), 2) }}

@endforeach @if($misc) @if($misc->sss_contribution > 0)

SSS Contribution

{{ $misc->sss_contribution }}

@endif @if($misc->philhealth_contribution > 0)

Philhealth Contribution

{{ $misc->philhealth_contribution }}

@endif @if($misc->pag_ibig_contribution > 0)

Pag-ibig Contribution

{{ $misc->pag_ibig_contribution }}

@endif @endif
@if($misc) {{ number_format(($payment->loans + $payment->deductions + abs($totalNegativeAdjustment) + $misc->sss_contribution + $misc->philhealth_contribution + $misc->pag_ibig_contribution), 2) }} @else {{ number_format(($payment->loans + $payment->deductions + abs($totalNegativeAdjustment)), 2) }} @endif

OT: {{ number_format($otTotalAmount, 2) }}

Add: {{ number_format($totalPositiveAdjustment, 2) }}

Total: {{ number_format(($totalPositiveAdjustment + $misc->night_differential_pay + $misc->incentive_pay + $misc->uniform_allowance + $misc->overtime_pay ), 2) }}

Less: {{ number_format(($payment->loans + $payment->deductions + abs($totalNegativeAdjustment) + $misc->sss_contribution + $misc->philhealth_contribution + $misc->pag_ibig_contribution), 2) }}

 

NET PAY

{{ $payment->total }}

Recieved By:

Prepared By:

{{-- Banias, Ando --}}
{{-- SHYNA MAE P. MAGNO --}}
{{ date('m/d/Y h:i:sa') }}
@endsection