@extends('Admin.layout') @section('title') BP Dashboard @endsection @section('content') @php $formatAmount = function ($amount) { return number_format((float) ($amount ?? 0), 2); }; $formatWeight = function ($weight) { return number_format((float) ($weight ?? 0), 2); }; @endphp {{-- PAGE HEADER --}}
Today: {{ $today ?? now()->format('d-m-Y') }}
{{-- MAIN SUMMARY --}}
{{-- BP SUMMARY --}}
Active BP
{{ $activeBP ?? 0 }}

{{-- COMPLETED --}}
Completed
{{ $completedBP ?? 0 }}
{{-- PENDING --}}
Pending
{{ $pendingBP ?? 0 }}
{{-- OUTSTANDING PRINCIPAL --}}
Outstanding Principal Amount
₹ {{ $formatAmount($outstandingPrincipal ?? 0) }}
{{-- PAID PRINCIPAL --}}
Paid Principal Amount
₹ {{ $formatAmount($paidPrincipal ?? 0) }}
{{-- PAID INTEREST --}}
Paid Interest Amount
₹ {{ $formatAmount($paidInterest ?? 0) }}
{{-- TOTAL GROSS WEIGHT --}}
Total Gross Weight
{{ $formatWeight($totalGrossWeight ?? 0) }} g
{{-- TOTAL NET WEIGHT --}}
Total Net Weight
{{ $formatWeight($totalNetWeight ?? 0) }} g
{{-- TODAY PAID --}}
Today Paid
₹ {{ $formatAmount($todayPaid ?? 0) }}
Other Expenses
₹ {{ number_format($otherExpenses ?? 0, 2) }}
{{-- SCHEME DUES --}}
{{-- YEARLY SCHEME --}}
@include('Admin.layout.toast') @endsection