Files
app
bootstrap
config
database
public
resources
js
lang
sass
views
auth
homes
layouts
public
view.blade.php
welcome.blade.php
routes
storage
tests
.editorconfig
.env.example
.gitattributes
.gitignore
.styleci.yml
README.md
artisan
composer.json
composer.lock
package-lock.json
package.json
phpunit.xml
server.php
webpack.mix.js
MyHomeCollection/resources/views/public/view.blade.php
2020-07-24 13:11:21 +02:00

73 lines
3.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header"><a href="{{ $home->url }}">{{ $home->title }}</a></div>
<div class="card-body">
<div class="row">
<div class="col-lg-12">
<div id="picturesCarousel" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
@foreach($home->pictures as $i => $pic)
<li data-target="#picturesCarousel" data-slide-to="{{ $i }}" @if($i === 0)class="active"@endif></li>
@endforeach
</ol>
<div class="carousel-inner">
@foreach($home->pictures as $i => $pic)
<div class="carousel-item @if($i === 0) active @endif">
<img class="d-block w-100" src="{{ asset($pic) }}">
</div>
@endforeach
</div>
<a class="carousel-control-prev" href="#picturesCarousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#picturesCarousel" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
@if(!empty($home->comment))
<div class="card mt-4 mb-4">
<div class="card-header">Mon commentaire</div>
<div class="card-body">
{!! nl2br($home->comment) !!}
</div>
</div>
@endif
<div class="row mb-4">
<div class="col-lg-12">
{!! nl2br($home->description) !!}
</div>
</div>
<div class="row mb-4">
<div class="col-lg-12"><h3>Informations :</h3></div>
<div class="col-lg-3"><strong>Ville : </strong> {{ $home->city }}</div>
<div class="col-lg-3"><strong>Prix : </strong> {{ $home->price }}</div>
<div class="col-lg-3"><strong>Surface : </strong> {{ $home->surface }} </div>
<div class="col-lg-3"><strong>Nombre de pièces : </strong>{{ $home->rooms }}</div>
</div>
<div class="row mb-4">
<div class="col-lg-12"><h3>Informations complémentaires :</h3></div>
<div class="col-lg-3"><strong>Surface de jardin : </strong> {{ $home->garden_surface ?? '' }}</div>
<div class="col-lg-3"><strong>Énergie : </strong> {{ $home->energy ?? '' }}</div>
<div class="col-lg-3"><strong>GES : </strong> {{ $home->ges ?? '' }}</div>
</div>
<div class="row">
<div class="col-lg-3"><a href="{{ $home->url }}" class="btn btn-success">Voir l'origine </a></div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection