Commit b3ddd3fd by fezrul

adjust attendance detail

parent 9b758153
......@@ -179,6 +179,12 @@ class HomeController extends Controller
{
$attendance = new EventAttendance;
$attendance->fk_master_event = $eventid;
$attendance->fk_event_participant = $id;
$attendance->time = date('Y-m-d H:i:s');
$attendance->save();
$info = EventParticipant::where('id', $id)->where('fk_master_event',$eventid)->first();
$info->registration_status = 1;
$info->save();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment