2015-02-12 13:56:47 +01:00
|
|
|
@extends('app')
|
|
|
|
@section('content')
|
2015-02-19 16:45:23 +01:00
|
|
|
<link href="css/home.css" rel="stylesheet" type="text/css"/>
|
2015-02-21 03:53:55 +01:00
|
|
|
<link href="css/coverflow.css" rel="stylesheet" type="text/css"/>
|
2015-02-19 16:45:23 +01:00
|
|
|
<br>
|
2015-02-16 02:41:12 +01:00
|
|
|
<center>
|
2015-02-19 16:56:05 +01:00
|
|
|
<img style="height:auto; width:auto; max-width:100px;" alt="" src="./pictures/homePic/home.png">
|
2015-02-18 18:51:07 +01:00
|
|
|
<nav>
|
2015-03-09 15:13:02 +01:00
|
|
|
<form class="form-inline navbar" onsubmit="rechercherReferent()">
|
2015-03-05 20:30:19 +01:00
|
|
|
<div class="row divRecherche">
|
|
|
|
<div class="col-xs-12">
|
2015-03-09 15:13:02 +01:00
|
|
|
<input id="searchfield" class="form-control inpSear" placeholder="Rechercher un Référant" name="search" type="text"/>
|
2015-02-12 18:58:03 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
2015-02-18 18:42:00 +01:00
|
|
|
</nav>
|
2015-02-12 18:58:03 +01:00
|
|
|
|
2015-02-19 17:07:41 +01:00
|
|
|
|
|
|
|
@if ($referent != [])
|
2015-02-12 18:58:03 +01:00
|
|
|
<div style="margin-left: 200px, margin-right: 200px" id="carousel-example-generic" class="carousel slide" data-ride="carousel">
|
2015-02-16 02:41:12 +01:00
|
|
|
|
|
|
|
<!-- indicateur, à incrementé en fonction du nombre d'images -->
|
2015-02-12 18:58:03 +01:00
|
|
|
<ol class="carousel-indicators">
|
2015-02-16 02:41:12 +01:00
|
|
|
@foreach ($referent as $ref)
|
2015-02-16 11:24:12 +01:00
|
|
|
@if ($ref -> id == $referent[0] -> id)
|
|
|
|
<li data-target="#carousel-example-generic" data-slide-to="{{ $ref -> id }}" class='active' ></li>
|
2015-02-16 02:41:12 +01:00
|
|
|
@else
|
2015-02-16 11:24:12 +01:00
|
|
|
<li data-target="#carousel-example-generic" data-slide-to="{{ $ref -> id }} "></li>
|
2015-02-16 02:41:12 +01:00
|
|
|
@endif
|
|
|
|
@endforeach
|
2015-02-12 18:58:03 +01:00
|
|
|
</ol>
|
|
|
|
|
2015-02-19 17:07:41 +01:00
|
|
|
|
2015-02-16 02:41:12 +01:00
|
|
|
<!-- Parametres des images -->
|
2015-03-09 15:13:02 +01:00
|
|
|
<div id="caroussel" class="carousel-inner" role="listbox">
|
2015-02-16 02:41:12 +01:00
|
|
|
@foreach ($referent as $ref)
|
2015-02-16 11:24:12 +01:00
|
|
|
@if ($ref -> id == $referent[0] -> id)
|
2015-02-16 02:41:12 +01:00
|
|
|
<div class="item active">
|
|
|
|
@else
|
|
|
|
<div class="item">
|
|
|
|
@endif
|
2015-02-16 03:34:48 +01:00
|
|
|
<br>
|
2015-03-10 15:27:36 +01:00
|
|
|
<a href="/referents/{{$ref->id}}/games"><img class="imgRef" src="{{$ref -> image}}" alt="{{ $ref -> firstname }}-{{ $ref -> lastname }}"></a>
|
|
|
|
<a href="/referents/{{$ref->id}}/games"><div class="well well-lg nomRef">{{$ref -> firstname}}, {{$ref -> lastname}}</div></a>
|
2015-02-19 17:29:01 +01:00
|
|
|
</div>
|
2015-02-16 02:41:12 +01:00
|
|
|
@endforeach
|
|
|
|
</div>
|
2015-02-19 17:07:41 +01:00
|
|
|
|
2015-02-16 02:41:12 +01:00
|
|
|
<!-- Controles -->
|
|
|
|
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
|
|
|
|
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
|
|
|
<span class="sr-only">Précédant</span>
|
|
|
|
</a>
|
|
|
|
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
|
|
|
|
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
|
|
|
<span class="sr-only">Suivant</span>
|
|
|
|
</a>
|
2015-02-12 13:56:47 +01:00
|
|
|
</div>
|
2015-02-19 17:07:41 +01:00
|
|
|
</div>
|
|
|
|
@else
|
|
|
|
@endif
|
2015-02-12 18:58:03 +01:00
|
|
|
|
2015-02-16 02:55:24 +01:00
|
|
|
<script type="text/javascript">
|
2015-03-09 15:13:02 +01:00
|
|
|
document.oncontextmenu = new Function("return true");
|
2015-03-05 20:30:19 +01:00
|
|
|
|
|
|
|
function hideIcon(self) {
|
|
|
|
self.style.backgroundImage = 'none';
|
|
|
|
}
|
2015-02-16 02:55:24 +01:00
|
|
|
</script>
|
2015-03-09 15:13:02 +01:00
|
|
|
<script type="text/javascript" src="/js/rechercheRef.js"> </script>
|
2015-02-12 18:58:03 +01:00
|
|
|
</center>
|
2015-02-12 13:56:47 +01:00
|
|
|
@endsection
|