<?php
namespace App\Controllers\Admin;
use App\Controllers\BaseController;
use App\Models\RsvpModel;
class Rsvp extends BaseController {
    public function index(){ $model=new RsvpModel(); $status=$this->request->getGet('status'); if(in_array($status,['hadir','tidak_hadir'],true))$model->where('status',$status); return view('admin/rsvp',$this->data+['title'=>'Data RSVP','items'=>$model->orderBy('id','DESC')->findAll(),'filter'=>$status]);}
}
