Created
April 13, 2021 23:18
-
-
Save NandoKstroNet/fa43746dc016336a2bfcb79bac7a2b0f to your computer and use it in GitHub Desktop.
View com inscrementos para exibição dos eventos do curso Laravel Mastery primeiro bloco em http://laravelmastery.com.br
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.site') | |
@section('title') Principais Eventos - @endsection | |
@section('content') | |
<div class="row"> | |
<div class="col-12"> | |
<h2>Eventos</h2> | |
<hr> | |
</div> | |
</div> | |
<div class="row mb-4"> | |
@forelse($events as $event) | |
<div class="col-4"> | |
<div class="card"> | |
<img src="https://via.placeholder.com/1024x480.png/002244?text=Sem+Imagem" alt="" class="card-img-top"> | |
<div class="card-body"> | |
<h5 class="card-title">{{$event->title}}</h5> | |
<strong>Acontece em {{$event->start_event}}</strong> | |
<p class="card-text">{{$event->description}}</p> | |
</div> | |
</div> | |
</div> | |
@if(($loop->iteration % 3) == 0) </div> <div class="row mb-4"> @endif | |
@empty | |
<div class="col-12"> | |
<div class="alert alert-warning">Nenhum evento encontrado neste site...</div> | |
</div> | |
@endforelse | |
</div> | |
@endsection |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment