2017-11-12 23:36:48 +01:00
|
|
|
|
@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">
|
2017-11-13 11:28:32 +01:00
|
|
|
|
<div class="panel-heading">Dashboard − <a href="<?php echo route('deals.list', ['type' => $type]); ?>">Revenir à la liste</a></div>
|
2017-11-12 23:36:48 +01:00
|
|
|
|
|
|
|
|
|
<div class="panel-body">
|
|
|
|
|
@if (session('status'))
|
|
|
|
|
<div class="alert alert-success">
|
|
|
|
|
{{ session('status') }}
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
<h1>{{ $deal->getSubject() }}</h1>
|
|
|
|
|
<h2>{{ $deal->getCategory() }}</h2>
|
|
|
|
|
<p>id : <strong>{{ $deal->getId() }}</strong> − proposée le <strong>{{$deal->getDateCreation()->format('d/m/Y')}}</strong> à <strong>{{ $deal->getPrice() }} €</strong></p>
|
|
|
|
|
<p>{{ $deal->getBody() }}</p>
|
2017-11-13 20:49:56 +01:00
|
|
|
|
<div>@foreach($deal->getImages() as $image)
|
|
|
|
|
<img src="{{ $image }}" width="600" />
|
|
|
|
|
@endforeach</div>
|
2017-11-12 23:36:48 +01:00
|
|
|
|
</div>
|
|
|
|
|
<div class="panel-footer"><a href="<?php echo route('deals.list', ['type' => $type]); ?>">Revenir à la liste</a></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endsection
|