@extends('layouts.header') @section('content')

Manage Payments

 / Payment / 

Manage Payments

@if ($message = Session::get('error'))
{{ $message }}
@endif {{--
@csrf
--}} {{-- {{ dd($holder) }} --}} @if($payments != NULL)
TOTAL BILLING TOTAL POSTED AMOUNT CURRENT TOTAL AMOUNT DUE

₱ {{ number_format($billing,2,".",",") }}

₱ {{ number_format($posted_payment,2,".",",") }}

₱ {{ number_format($billing-$posted_payment,2,".",",") }}

*NOTE: Payment should be posted to appear in the Statement of Account.
@forelse ($payments as $payment) @empty @endforelse
O.R. DATE O.R. NUMBER POLICY HOLDER AMOUNT PAID STATUS ACTION
{{ date('M j, Y',strtotime($payment->or_date)) }} {{ $payment->or_number }} {{ strtoupper($payment->policy_holder_name) }} ₱{{ number_format($payment->payment_amt + $payment->adjustment_amt,2,".",",") }} @if($payment->is_posted == 'Yes') POSTED @else UNPOSTED @endif View
No data available.

{{ $payments->links() }}
@forelse ($unposted_payment_lists as $unposted_payment) @empty @endforelse
O.R. DATE O.R. NUMBER POLICY HOLDER AMOUNT PAID STATUS ACTION
{{ date('M j, Y',strtotime($unposted_payment->or_date)) }} {{ $unposted_payment->or_number }} {{ strtoupper($unposted_payment->policy_holder_name) }} ₱{{ number_format($unposted_payment->payment_amt,2,".",",") }} @if($unposted_payment->is_posted == 'Yes') POSTED @else UNPOSTED @endif View
No data available.

{{ $unposted_payment_lists->links() }}
{{--
TOTAL POSTED AMOUNT: ₱{{ number_format($total_posted,2,".",",") }}
TOTAL UNPOSTED AMOUNT: ₱{{ number_format($total_unposted,2,".",",") }}
--}}
@endif
@endsection