48 lines
1.6 KiB
PHP
48 lines
1.6 KiB
PHP
|
@extends('layouts.app')
|
||
|
|
||
|
@section('content')
|
||
|
<div class="container">
|
||
|
<div class="row">
|
||
|
<div class="col-md-8 col-md-offset-2">
|
||
|
<div class="panel panel-default">
|
||
|
<div class="panel-heading">Dashboard</div>
|
||
|
|
||
|
<div class="panel-body">
|
||
|
@if (session('status'))
|
||
|
<div class="alert alert-success">
|
||
|
{{ session('status') }}
|
||
|
</div>
|
||
|
@endif
|
||
|
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Image</th>
|
||
|
<th>Titre</th>
|
||
|
<th>Date</th>
|
||
|
<th>Options</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>@foreach($deals as $deal)
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
</td>
|
||
|
<td>
|
||
|
{{$deal->getSubject()}}
|
||
|
</td>
|
||
|
<td>
|
||
|
{{$deal->getDateCreation()->format('d/m/Y')}}
|
||
|
</td>
|
||
|
<td>
|
||
|
<a href="<?php echo route('deals.view', ['type' => $type, 'id' => $deal->getId()]); ?>">Voir</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
@endforeach</tbody>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
@endsection
|