update
parent
7507aa4026
commit
60dafd5622
|
|
@ -6,13 +6,14 @@ use Illuminate\Http\Request;
|
|||
use App\Models\Konten\Kegiatan;
|
||||
use App\Models\Kuesioner;
|
||||
use App\Models\ProfileSekolah;
|
||||
use App\Models\User;
|
||||
|
||||
class FrontController extends Controller
|
||||
{
|
||||
function index() {
|
||||
$data['side_kegiatan'] = Kegiatan::orderBy('KegiatanId','DESC')->limit(3)->get();
|
||||
$data['kegiatan'] = Kegiatan::orderBy('KegiatanId','DESC')->limit(8)->get();
|
||||
$data['sekolah'] = ProfileSekolah::count();
|
||||
$data['sekolah'] = User::where('ms_group_id',2)->groupBy('username')->count();
|
||||
$data['usulan'] = [
|
||||
// 'kota' => Kuesioner::where('level',0)->where('tahun',date('Y'))->count(),
|
||||
// 'provinsi' => Kuesioner::where('level',1)->where('tahun',date('Y'))->count(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue