This repository has been archived by the owner on Apr 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a page to see the perms you took
- Loading branch information
Teddy Roncin
committed
Aug 28, 2023
1 parent
9b8d3bd
commit 6fe5740
Showing
4 changed files
with
65 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
@extends('layouts.dashboard') | ||
|
||
@section('title') | ||
Permanences que tu as prises | ||
@endsection | ||
|
||
@section('smalltitle') | ||
Liste des permanences que tu as prises. | ||
@endsection | ||
|
||
@section('content') | ||
<div class="callout callout-info"> | ||
<h4>Liste de tes permanences</h4> | ||
</div> | ||
<div class="box box-default"> | ||
<div class="box-body table-responsive no-padding"> | ||
<table class="table table-hover align-middle text-center"> | ||
<tbody> | ||
<tr> | ||
<th>Nom</th> | ||
<th>Lieu</th> | ||
<th>Date</th> | ||
<th>Début</th> | ||
<th>Fin</th> | ||
<th>Permanenciers</th> | ||
<th>Description</th> | ||
<th>Points</th> | ||
<th>Quitter</th> | ||
</tr> | ||
@foreach ($perms as $perm) | ||
<tr class="align-middle"> | ||
<td>{{ $perm->type->name }}</td> | ||
<td>{{ $perm->place }}</td> | ||
<td>{{ date('j/n/y', $perm->start) }}</td> | ||
<td>{{ date('G\\Hi', $perm->start) }}</td> | ||
<td>{{ date('G\\Hi', $perm->end) }}</td> | ||
<td>{{ $perm->permanenciers->count().'/'.$perm->nbr_permanenciers }}</td> | ||
<td>{{ $perm->description }}</td> | ||
<td>{{ $perm->type->points }}</td> | ||
<td> | ||
<form action="{{ url('dashboard/perm/unshotgun/'.$perm->id) }}" method="post"> | ||
<button class="btn btn-xl btn-danger" type="submit">Quitter</button> | ||
</form> | ||
</td> | ||
</tr> | ||
@endforeach | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters