-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
75 additions
and
69 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,36 @@ | ||
@extends('layouts.app') | ||
@section('title', $event->title) | ||
@section('content') | ||
<div class="container mt-5"> | ||
<div class="card shadow mb-4"> | ||
<div class="card-body text-center"> | ||
<h1 class="card-title">{{ $event->title }}</h1> | ||
<p class="card-text text-muted">Hosted <a href="{{ route('calendar', $event->calendar->id) }}" class="card-link">{{ $event->calendar->name }}</a></p> | ||
</div> | ||
</div> | ||
|
||
<div style="width: 1000px;"> | ||
|
||
@if($event->image) | ||
<div class="card shadow mb-4"> | ||
<div class="card-body text-center"> | ||
<img src="{{ asset('storage/banners/' . $event->image) }}" alt="{{ $event->title }}" class="img-fluid"> | ||
</div> | ||
</div> | ||
<img src="{{ asset('storage/banners/' . $event->image) }}" alt="{{ $event->title }}" class="img-fluid"> | ||
@endif | ||
|
||
<div class="card shadow mb-4"> | ||
<div class="card-body"> | ||
<h2 class="card-title">Description</h2> | ||
<p class="card-text">@markdown($event->description)</p> | ||
</div> | ||
<div class="mt-4"> | ||
<i class="fas fa-clock"></i> | ||
<strong>Start:</strong> | ||
{{ \Carbon\Carbon::parse($event->start_date)->format('F j, Y, H:i') }}z | ||
</div> | ||
|
||
<div class="card shadow mb-4"> | ||
<div class="card-body"> | ||
<h2 class="card-title">Details</h2> | ||
<ul class="list-group list-group-flush"> | ||
<li class="list-group-item"><strong>Start Date:</strong> {{ \Carbon\Carbon::parse($event->start_date)->format('F j, Y, H:i') }}z</li> | ||
<li class="list-group-item"><strong>End Date:</strong> {{ \Carbon\Carbon::parse($event->end_date)->format('F j, Y, H:i') }}z</li> | ||
@if($event->recurrence_interval) | ||
<li class="list-group-item"><strong>Recurrence:</strong> Every {{ $event->recurrence_interval }} {{ Str::plural($event->recurrence_unit, $event->recurrence_interval) }}</li> | ||
<li class="list-group-item"><strong>Recurrence End Date:</strong> {{ \Carbon\Carbon::parse($event->recurrence_end_date)->format('F j, Y, H:i') }}z</li> | ||
@endif | ||
</ul> | ||
</div> | ||
<div class="mb-4"> | ||
<i class="fas fa-clock"></i> | ||
<strong>End:</strong> | ||
{{ \Carbon\Carbon::parse($event->end_date)->format('F j, Y, H:i') }}z | ||
</div> | ||
|
||
@if($event->recurrence_interval) | ||
<div> | ||
<i class="fas fa-calendar-alt"></i> | ||
<strong>Recurrence:</strong> Every {{ $event->recurrence_interval }} {{ Str::plural($event->recurrence_unit, $event->recurrence_interval) }} | ||
</div> | ||
<div> | ||
<i class="fas fa-calendar-alt"></i> | ||
<strong>Recurrence End Date:</strong> {{ \Carbon\Carbon::parse($event->recurrence_end_date)->format('F j, Y, H:i') }}z | ||
</div> | ||
@endif | ||
|
||
<p class="card-text">@markdown($event->long_description)</p> | ||
</div> | ||
@endsection |
This file contains 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
This file contains 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
This file contains 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