@php $floorData = json_decode($receipt->property->floorData); if (!is_array($floorData)) { $floorData = json_decode($floorData); } $watermarkText = match ($receipt->status) { 'paid' => 'PAID', 'failed' => 'FAILED', default => 'UNPAID', }; $watermarkClass = match ($receipt->status) { 'paid' => 'watermark-paid', 'partial' => 'watermark-partial', default => 'watermark-unpaid', }; @endphp
Owner / Party :
Property ID : {{ $receipt->property->nagarpalikaId}}
@php $ownerDetails = is_array($receipt->property->ownerDetails) ? $receipt->property->ownerDetails : json_decode($receipt->property->ownerDetails); @endphp
Property Owner Name : {{ $ownerDetails[0]->name ?? '-' }}, S/O {{ $ownerDetails[0]->fatherName ?? '-' }}
Address : {{ $receipt->property->houseNo ?? '' }} {{ $receipt->property->streetNoName ?? '' }} {{ $receipt->property->locality ?? '' }} {{ $receipt->property->colony ?? '' }} {{ $receipt->property->city ?? '' }} {{ $receipt->property->pincode ?? '' }}
Ward :{{ $receipt->property->ward?->name ?? '-' }}
Rate Category/Rate Zone : {{ $receipt->property->tax_rate_zone?->name ?? '-' }}
Adarsh Nagar Panchayat – Anandnagar
(District – Maharajganj, Uttar Pradesh)
Property Tax
Customer Copy
Property Receipt No. : {{ $receipt->receipt}}
Date : {{ $receipt->paid_at}}
Financial Year : {{ $receipt->financial_year}}
@php $parcelNo = $receipt->property->parcelNo ?? null; $propertyNo = $receipt->property->propertyNo ?? null; $mobile = $ownerDetails[0]->mobile ?? null; @endphp
Parcel No : {{ $parcelNo !== null ? str_pad($parcelNo, 6, '0', STR_PAD_LEFT) : '-' }}
Property No. : {{ $propertyNo !== null ? str_pad($propertyNo, 3, '0', STR_PAD_LEFT) : '-' }}
Mobile Number : {{ $mobile ? str_repeat('*', max(0, strlen($mobile) - 4)) . substr($mobile, -4) : '-' }}
Property Area : {{ $receipt->property->totalBuiltUpAreaSqFt ?? '' }} SqFt
Property tax and other taxes have been calculated based on the details given below.
@php $TotalAmount = 0; @endphp @foreach($floorData as $floor) @php $rate = calculateRatePHP( $floor->constructionType, $floor->usageType, $floor->usageFactor, $receipt->property->taxRateZone,$receipt->property->ward?->id); if ($receipt->property->propertyUse != 5) $area = $floor->areaSqFt; else $area = $receipt->property->plotAreaSqFt; $baseAmount = ($receipt->property->propertyUse!=5) ? ((($area * 80) / 100) * $rate * 12 ): ($area * $rate * 12 ); $discount = ($baseAmount * 10) / 100; $finalAmount = $baseAmount - $discount; $TotalAmount += $discount; @endphp @endforeach
Usage Type Usage Factor Floor Construction Area Rate ALV (Annual Letting Value) TPV (10% of Property Value)
{{ $floor->usageType == 'Other' ? $floor->usageTypeOther . ' (' . $floor->usageType . ')' : usageType2($floor->usageType, $floorUsageType) }} {{ $floor->usageFactor == 'Other' ? $floor->usageFactorOther . ' (' . $floor->usageFactor . ')' : usageFactors($floor->usageFactor, $usagsFactors) }} {{ $floor->floorType == 'Other' ? $floor->floorTypeOther . ' (' . $floor->floorType . ')' : floorType($floor->floorType, $floors) }} {{ $floor->constructionType == 'Other' ? $floor->constructionTypeOther . ' (' . $floor->constructionType . ')' : yearOfConstructions($floor->constructionType, $natureOfConstructionLists) }} {{ $area }} Sq.Ft. {{ number_format($rate, 2) }} {{ number_format($baseAmount, 2) }} {{ number_format($discount, 2) }}
@php use Carbon\Carbon; $now = now(); $fyStart = $now->month >= 4 ? $now->year : $now->year - 1; $currentFY = $fyStart . '-' . substr($fyStart + 1, -2); $grandTotal = 0; $grandWaterTax = 0; $grandDrainageTax = 0; $grandPaid = 0; $grandPenalty = 0; $grandRemaining = 0; $runningRemaining = 0; $ledgerData = $receipt?->tax_payment_data ?? []; //dd($receipt->tax_payment_data); @endphp @php $ledgerData = $receipt?->tax_payment_data ?? []; $sortedLedger = collect($ledgerData)->filter()->sortBy(function ($row) { return intval(explode('-', $row->financial_year ?? '0')[0]); })->values(); @endphp {{-- 1️⃣ SHOW DB LEDGER ROWS --}} @if($sortedLedger->count() > 0) @foreach($sortedLedger as $ladger) @php $runningRemaining = $ladger->remaining_amount ?? 0; $grandTotal += $ladger->total_demand ?? 0; $grandWaterTax += $ladger->water_tax ?? 0; $grandDrainageTax += $ladger->drainage_tax ?? 0; $grandPaid += $ladger->paid_amount ?? 0; $grandPenalty += $ladger->penalty ?? 0; $grandRemaining = $runningRemaining; $displayStatus = $ladger->status ?? 'unpaid'; @endphp @endforeach @else @endif
Financial Year Water Tax Drainage Tax Total Dimand(₹) Penalty(₹) Paid Amount(₹) Remaining Amount(₹) Payment Status
{{ $ladger->financial_year ?? '-' }} ₹{{ number_format($ladger->water_tax ?? 0, 2) }} ₹{{ number_format($ladger->drainage_tax ?? 0, 2) }} ₹{{ number_format($ladger->total_demand ?? 0, 2) }} ₹{{ number_format($ladger->penalty ?? 0, 2) }} ₹{{ number_format($ladger->paid_amount ?? 0, 2) }} ₹{{ number_format($runningRemaining, 2) }} {{ ucfirst($displayStatus) }}
No ledger data available
Total ₹{{ number_format($grandTotal, 2) }} ₹{{ number_format($grandWaterTax, 2) }} ₹{{ number_format($grandDrainageTax, 2) }} ₹{{ number_format($grandPenalty, 2) }} ₹{{ number_format($grandPaid, 2) }} ₹{{ number_format($grandRemaining, 2) }} -
Total Tax Payable : {{ $receipt->base_amount}}
Total Discount : {{ $receipt->discount}}
Final Tax Payable : {{ $receipt->final_amount}}
Net Paid Amount : {{ $receipt->amount}}
Outstanding Amount : {{ $receipt->outstanding_amount}}
Amount Payable (in words) :
Two Thousand Three Hundred Eighty-Nine Only
{{ $watermarkText }}