<!doctype html>
<html>
<head>
	<title>Cosmos roue de la fortune</title>
</head>
<body>
    			
	<table >
<tr>
	
			<td> Client </td>
			<td> Email </td>
			<td> Tel </td>
			<td> Ville </td>
			<td> Reward </td>
</tr>
		
			@foreach($wins as $win)
				<tr >
					<td>{{$win->user->name}}</td>
					<td>{{$win->user->email}}</td>
					<td>{{$win->user->tel}}</td>
					<td>{{$win->user->ville ? $win->user->ville->intitule : '' }}</td>
					<td>{{$win->reward->resultText}}</td>
					<td>{{$win->admin ? $win->admin->name : '' }}</td>
					<td > 
						@if($win->isGiven)
							Date de remise : {{$win->updated_at}}
						@else
							Cadeau non remis
						@endif
					</td>
				</tr>
			@endforeach

	</table>

</body>	

	</html>