@php $ownerDetails = is_array($property->ownerDetails)? $property->ownerDetails : json_decode($property->ownerDetails); $TotalAmount = 0; function usageType2($usageType, $floorUsageType) { $usageTypeId = (int) $usageType; $type = collect($floorUsageType)->firstWhere('id', $usageTypeId); return $type ? $type->type_name : '-'; } function usageFactors($usageFactor, $usagsFactors) { $usageFactorId = (int) $usageFactor; $factor = collect($usagsFactors)->firstWhere('id', $usageFactorId); return $factor ? $factor->name : '-'; } function yearOfConstructions($constructionType, $yearOfConstructions) { $constructionTypeId = (int) $constructionType; $type = collect($yearOfConstructions)->firstWhere('id', $constructionTypeId); return $type ? $type->name : '-'; } $floorData = json_decode($property->floorData); if (!is_array($floorData)) { $floorData = json_decode($floorData); } $plinth = []; $plinthSm = []; if($property->propertyUse!=5) { foreach ($floorData as $floor) { $type = $floor->floorType; $area = $floor->areaSqFt ?? 0; $areaSm = $floor->areaSqMt ?? 0; if (!isset($plinth[$type])) { $plinth[$type] = 0; $plinthSm[$type] = 0; } $plinth[$type] += $area; $plinthSm[$type] += $areaSm; } } // ✅ Total plinth area $totalPlinth = array_sum($plinth); $totalPlinthSm = array_sum($plinthSm); // ✅ Format to two decimal places // echo "Total Plinth (SqFt): " . number_format($totalPlinth, 2) . "
"; // echo "Total Plinth (SqMt): " . number_format($totalPlinthSm, 2); //print_r($plinth); //echo reset($plinth); //echo reset($plinthSm); @endphp
कार्यालय आदर्श नगर पंचायत, आनन्दनगर, जनपद-महाराजगंज, उत्तर प्रदेश
Office of Adarsh Nagar Panchayat, Anandnagar, District-Maharajganj, Uttar Pradesh
लेजर रिपोर्ट / Ledger Report
Property ID
संपत्ति पहचान
{{ $property->nagarpalikaId ?? '-' }} Parcel No
पुराना संपत्ति आईडी
{{ $property->parcelNo ?? '-' }}
Ward Name
पुराना संपत्ति आईडी
{{ $property->ward?->name ?? '-' }} Rate Zone
दर क्षेत्र
{{ $property->tax_rate_zone_display }}
Owner Name
मालिक का नाम
{{ $ownerDetails[0]->name ?? '-' }} Father / Husband
कनेक्शन दिनांक
{{ $ownerDetails[0]->fatherName ?? '-' }}
Mobile No. / मोबाइल नंबर 7974360875 Email / ईमेल
Address / पता {{ $property->houseNo ?? '' }} {{ $property->streetNoName ?? '' }} {{ $property->locality ?? '' }} {{ $property->colony ?? '' }} {{ $property->city ?? '' }} {{ $property->pincode ?? '' }}
@php $totalBaseAmount = 0; $TotalAmount = 0; @endphp @foreach ($floorData as $floor) @php $rate = calculateRatePHP( $floor->constructionType, $floor->usageType, $floor->usageFactor, $property->taxRateZone, $property->ward?->id, ); if ($property->propertyUse != 5) { $area = $floor->areaSqFt; } else { $area = $property->plotAreaSqFt; } $baseAmount = (($area * 80) / 100) * $rate * 12; $discount = ($baseAmount * 10) / 100; $finalAmount = $baseAmount - $discount; $TotalAmount += $discount; // Add base amount to total $totalBaseAmount += $baseAmount; @endphp @php if (!function_exists('floorType')) { function floorType($floorTypeId, $floors) { $type = collect($floors)->firstWhere( 'id', (int) $floorTypeId, ); return $type ? $type->name : '-'; } } @endphp @endforeach @php $waterTax = ($totalBaseAmount * 7) / 100; @endphp {{-- --}}
Dimensions Details / आयाम विवरण
Usage type
(उपयोग प्रकार)
Usage Factor
(उपयोग कारक)
Floor
(तल)
Construction
(निर्माण)
Area
(क्षेत्रफल)
Rate
(दर)
ALV
(वार्षिक मूल्यांकन)
TPV (10%)
(संपत्ति का 10% मूल्य)
{{ $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 }} SqFt {{ number_format($rate, 2) }} {{ number_format($baseAmount, 2) }} {{ number_format($discount, 2) }}
Total ₹{{ number_format($totalBaseAmount, 2) }}/- ₹{{ number_format($TotalAmount, 2) }}/-
1. संपत्ति कर कुल देय राशि 10% है।/Total due property tax is 10%. ₹{{ number_format($TotalAmount, 2) }}/-
2. जल कर 7% कार्य प्रगति पर है।/Water tax (7%) is under process. ₹00.0/-₹{{ number_format($waterTax, 2) }}/-
Ledger Summary / सारांश बही
Year / वर्ष Demand / माँग Collection / Payment / संग्रहण/भुगतान Cumulative Balance / संचयी शेष