2020-07-29 12:59:35 +00:00
@ extends ( " app.layout.base " )
@ section ( " title " )
Aktiviteter
@ endsection
@ section ( " content " )
< main >
2020-08-06 18:33:46 +00:00
< h1 class = " text-center sde-blue mb-0 " > {{ __ ( 'msg.tilmeldteaktiviteter' )}} </ h1 >
2020-07-29 12:59:35 +00:00
{ !! session () -> get ( 'eventunsubscribed' ) !! }
@ if ( ! $userevents -> isEmpty ())
@ foreach ( $userevents as $userevent )
< form method = " post " action = " { { route( " userevents . destroy " , $userevent ) }} " >
@ csrf
@ method ( " delete " )
< h3 class = " sde-blue bold text-center mb-0 " > {{ $userevent -> name }} </ h3 >
2020-08-03 12:47:06 +00:00
< p class = " text-center mt-0 " > {{ \Illuminate\Support\Facades\Date :: createFromTimeStamp ( strtotime ( $userevent -> date )) -> format ( 'd/m/Y \k\l\. H:i' ) }} </ p >
2020-08-06 12:50:07 +00:00
< p class = " text-center " > { !! $userevent -> description !! } </ p >
2020-08-07 08:51:10 +00:00
< button type = " submit " class = " btn text-center btn-sde-blue " onclick = " return confirm('Are you sure you want to remove this event?'); " > {{ __ ( 'msg.afmeld' )}} </ button >
2020-07-29 12:59:35 +00:00
</ form >
@ endforeach
@ else
2020-08-06 18:33:46 +00:00
< p class = " text-center " > {{ __ ( 'msg.duharikketilmeldtdignogenaktiviteter' )}} !</ p >
2020-07-29 12:59:35 +00:00
@ endif
2020-08-06 18:33:46 +00:00
< a href = " { { route( " events . index " ) }} " type = " submit " class = " mt-2 btn text-center btn-sde-blue " > {{ __ ( 'msg.tilbage' )}} </ a >
2020-07-29 12:59:35 +00:00
</ main >
@ endsection