2020-06-26 10:51:05 +00:00
@ extends ( " app.layout.base " )
@ section ( " title " )
2020-07-30 08:11:52 +00:00
Reservationer
2020-06-26 10:51:05 +00:00
@ endsection
@ section ( " content " )
2020-07-30 08:11:52 +00:00
< main style = " min-height: calc(100% - 61.34px); " >
2020-08-06 18:33:46 +00:00
< h2 class = " text-center sde-blue mb-0 " > {{ __ ( 'msg.dinereservationer' )}} </ h2 >
2020-07-30 08:11:52 +00:00
@ foreach ( $reservations as $reservation )
2020-08-04 15:06:46 +00:00
< div class = " reservation " style = " margin: 0 32px 1.75rem 32px; " >
2020-07-30 08:11:52 +00:00
< h3 > {{ \App\WashingMachine :: query () -> find ( $reservation -> machine_id ) -> name }} </ h3 >
< div class = " row align-items-center " >
2020-08-06 18:33:46 +00:00
< span style = " font-size: 4vw " >< b > {{ __ ( 'msg.tid' )}} :</ b > {{ \Illuminate\Support\Facades\Date :: createFromTimeStamp ( strtotime ( $reservation -> time )) -> format ( 'd/m/Y \k\l\. H:i' ) }} </ span >
2020-07-30 08:11:52 +00:00
< form class = " ml-auto " method = " post " action = " { { route( " washing - reservations . destroy " , [ " washing_reservation " => $reservation ]) }} " >
@ csrf
@ method ( " delete " )
< input type = " hidden " name = " id " value = " { { $reservation->id }} " >
2020-08-06 18:33:46 +00:00
< button class = " btn btn-sde-blue mb-0 " type = " submit " onclick = " return confirm('Are you sure you want to remove this reservation?'); " > {{ __ ( 'msg.fjern' )}} </ button >
2020-07-30 08:11:52 +00:00
</ form >
2020-06-26 10:51:05 +00:00
</ div >
</ div >
2020-07-30 08:11:52 +00:00
@ endforeach
@ if ( count ( $reservations ) < 1 )
2020-08-06 18:33:46 +00:00
< p style = " margin: 0 18px; " > {{ __ ( 'msg.duharingenreservationer' )}} .</ p >
2020-08-19 07:54:26 +00:00
@ else
{{ $reservations -> links () }}
2020-07-30 08:11:52 +00:00
@ endif
2020-08-06 18:33:46 +00:00
< a href = " { { route( " washing - reservations . create " ) }} " class = " btn btn-sde-blue mt-auto mb-1 " > {{ __ ( 'msg.reservervaskemaskine' )}} </ a >
2020-06-26 10:51:05 +00:00
</ main >
@ endsection
2020-07-28 12:26:32 +00:00
@ section ( " scripts " )
@ endsection