Commit b3ddd3fd by fezrul

adjust attendance detail

parent 9b758153
...@@ -178,7 +178,13 @@ class HomeController extends Controller ...@@ -178,7 +178,13 @@ class HomeController extends Controller
public function registration($id,$eventid) public function registration($id,$eventid)
{ {
$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 = EventParticipant::where('id', $id)->where('fk_master_event',$eventid)->first();
$info->registration_status = 1; $info->registration_status = 1;
$info->save(); $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