@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
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 }} | @forelse($record->studentElectricityRecords as $index => $studentRecord) @php $totalCandidatesAmount += floatval( App\Models\StudentElecticityRecords::calculateTotalAmountForStudent( $studentRecord->userId, ), ); $totalCurrentAmount += $studentRecord->Amount; @endphp @if ($index == 0){{ 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 }} | @else |
{{ 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 }} | @endforelse @empty | No Record Found | @endforelse|||||
Total | {{ $totalUnits }} | {{ $discountedUnits }} | {{ $totalCurrentAmount }} | {{ $totalCandidatesAmount }} |