@extends('fronted.layout.main') @section('adcontent') @php use Illuminate\Support\Facades\DB; use Carbon\Carbon; $currentMonth = Carbon::now()->format('m'); $currentYear = Carbon::now()->format('Y'); $currentMonthDate = Carbon::now(); @endphp
@if (!$isBillGenratedOrNotForThisData && $isAutoBillGenratePermissionActive) @endif
@if ($allBillDates->count() > 0)
@endif
@php $count = 1; $totalUnits = 0; $totalCandidatesAmount = 0; $discountedUnits = 0; $totalCurrentAmount = 0; @endphp @forelse($electricityRecords as $record) @php $totalUnits += $record->units; $discountedUnits += $record->discountUnits; @endphp @forelse($record->studentElectricityRecords as $index => $studentRecord) @php $totalCandidatesAmount += floatval( App\Models\StudentElecticityRecords::calculateTotalAmountForStudent( $studentRecord->userId, ), ); $totalCurrentAmount += $studentRecord->Amount; @endphp @if ($index == 0) @else @endif @empty @endforelse @empty @endforelse
S No Room No {{ $PrenseBillDate }}
Present Reading
{{ $PreviousBillDate }}
Previous Reading
Total Unit Waved Off Units Candidate Name Candidate/Unit Amount Status Total Amount Action
{{ $count++ }} {{ $record->roomno }} {{ $record->present_reading }} @if (!empty($record->meterChangeRecords)) @endif {{ $record->previous_reading }} {{ $record->units }} {{ $record->discountUnits }}{{ strtolower($studentRecord->student->candidatename) }} {{ $studentRecord->prUnitCharge }} {{ $studentRecord->Amount }} {{ $studentRecord->status < 2 ? 'UnPaid' : 'Paid' }} {{ $totalAmount = App\Models\StudentElecticityRecords::calculateTotalAmountForStudent($studentRecord->userId) - $studentRecord->total_pad_bill_amount }}
{{ strtolower($studentRecord->student->candidatename) }} {{ $studentRecord->prUnitCharge }} {{ $studentRecord->Amount }} {{ $studentRecord->status < 2 ? 'UnPaid' : 'Paid' }} {{ $totalAmount = App\Models\StudentElecticityRecords::calculateTotalAmountForStudent($studentRecord->userId) - $studentRecord->total_pad_bill_amount }}
No Record Found
Total {{ $totalUnits }} {{ $discountedUnits }} {{ $totalCurrentAmount }} {{ $totalCandidatesAmount }}
@if (session()->has('Electricity')) @if ($isAutoBillGenratePermissionActive) @else @endif @endif @endsection