1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| @extends('layouts.app')
@section('content')
<br>
<h1 class="text-center text-white" style="background-color: #ffbb33">Repertoire des procédures de travail</h1>
<br>
<div class="form-group mb-2">
<form action="{{url('fenetre/procedure')}}" method="post">
{{ csrf_field() }}
<div class="input-group">
<h2 class="label label-default ">Choisir un service   </h2>
<select name="services" id="services" class="form-control col-md-4" >
@foreach($donnees as $datas)
<option value="{{ $datas->id }}">{{ $datas->label }}</option>
@endforeach
</select>
<button type="submit" class="btn btn-success ">Recherche</button>
</div>
</form>
</div>
@if(isset($procedures))
@if(count($procedures)>=1)
<table border="1" class="table table-striped" >
<thead class="p-3 mb-2 bg-primary text-white" >
<tr>
<th scope="col">Activités</th>
<th scope="col">Procedures</th>
</tr>
</thead>
<tbody>
@foreach($procedures as $data)
<tr>
<td>{{$data->Activite_pro}}</td>
<td><a href="{{$data->chemin}}"> {{$data->procedure}}</a></td>
</tr>
@endforeach
</tbody>
</table>
@else
<p>Pas de procédue trouvée!</p>
@endif
@endif
@endsection |
Partager