@extends('layouts.app') @section('title', 'Pendaftaran') @section('pendaftaran', 'm-menu__item--active') @section('css') @role('super_admin') @endrole @endsection @section('content') @role('super_admin')
@php $total = App\User::whereHas('roles', function($q) { $q->where('name', 'rakyat')->orWhere('name', 'organisasi'); })->get(); $sah = App\User::where('email_verified_at', '!=', NULL) ->whereHas('roles', function($q) { $q->where('name', 'rakyat')->orWhere('name', 'organisasi'); })->get(); $tidak_sah = App\User::where('email_verified_at', '=', NULL) ->whereHas('roles', function($q) { $q->where('name', 'rakyat')->orWhere('name', 'organisasi'); })->get(); @endphp

Jumlah Pendaftaran

{{ number_format(count($total)) }}

Pendaftaran Sah

{{ number_format(count($sah)) }}

Pendaftaran Tidak Sah

{{ number_format(count($tidak_sah)) }}

Senarai Pendaftaran

Id No. K/P Pemohon Email Tarikh Pendaftaran Status
@endrole @endsection @section('js') @role('super_admin') @endrole @endsection