@extends('fronted.layout.main') @section('adcontent')
@if ($message = Session::get('success')) @endif @if ($message = Session::get('danger')) @endif
@php $totalregis = DB::table('studentregisters')->get()->count('id'); @endphp

Total Reg :- {{$totalregis }}

@php $RunningReg = DB::table('studentregisters')->where('status',1)->get()->count('id'); @endphp

Running Reg :- {{$RunningReg}}

@php $OldReg = DB::table('olddataregisters')->where('status',0)->get()->count('id'); @endphp

Old Reg :- {{ $OldReg}}

@php $VacanttReg = DB::table('roomseats')->get()->sum('numberseats'); $totalVacant = $VacanttReg - $RunningReg; @endphp

Vacant reg :- {{$totalVacant}}

@php $data = DB::table('olddataregisters')->get(); @endphp @php $count=1; @endphp @foreach($data as $temp)
S.No Room NO Reg No Reg Date Leaving Date Candidate Mobile No Tenure Seat No Rent Fee Status Action Docs
{{$count++}} {{$temp->roomno}} {{$temp->formno}} 01-Jan-1970 01-Jan-1970 {{ucfirst(trans($temp->candidatename))}} {{$temp->phone}}