-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
00495cf
commit c1b4693
Showing
11 changed files
with
258 additions
and
260 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
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
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,12 +1,11 @@ | ||
<x-website::layouts.main> | ||
<div class="card-body"> | ||
<div class="p-5"> | ||
<x-website::breadcrumbs :breadcrumbs="$this->getBreadcrumbs()" /> | ||
<div class="flex flex-col mb-6 mt-6 ms-1"> | ||
<h2 class="text-heading">{{ $this->getTitle() }} </h2> | ||
<div class=""> | ||
<h1 class="text-heading">{{ $this->getTitle() }} </h1> | ||
<div class="user-content"> | ||
{{ new Illuminate\Support\HtmlString($currentConference->getMeta('about')) }} | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</x-conference::layouts.main> | ||
</x-website::layouts.main> |
18 changes: 9 additions & 9 deletions
18
resources/views/conference/pages/announcement-list.blade.php
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,9 +1,37 @@ | ||
<x-website::layouts.main> | ||
<div class="card-body text-gray-800"> | ||
<p class="text-xs text-gray-500 font-medium">{{ $this->announcement->created_at->format('l, j F Y') }}</p> | ||
<div class="p-5"> | ||
@can('update', $announcement) | ||
<div class="flex"> | ||
<a class="ms-auto btn btn-primary btn-xs" href="{{ route('filament.panel.resources.conferences.announcements.edit', ['tenant' => $currentConference->path, 'record' => $announcement->getKey()]) }}"><x-heroicon-s-pencil-square class="h-4 w-4" /> Edit</a> | ||
</div> | ||
@endcan | ||
<div class="text-xs text-gray-500 font-medium"> | ||
{{ $this->announcement->created_at->format(setting('format.date')) }}</div> | ||
<h1 class="card-title">{{ $this->announcement->title }}</h1> | ||
<div class="announcement-information"> | ||
@php | ||
$announcementCreatedDate = $announcement->created_at->startOfDay(); | ||
$diffInDays = $announcementCreatedDate->diffInDays(today()); | ||
@endphp | ||
<div class="flex flex-wrap justify-between"> | ||
<p class="text-xs text-gray-500"> | ||
@if ($diffInDays > 0) | ||
Published {{ $diffInDays }} days ago | ||
@else | ||
Published today | ||
@endif | ||
</p> | ||
<p class="text-gray-500 text-xs"> | ||
@if ($user = $announcement->user) | ||
By {{ $user->fullName }} | ||
@else | ||
By Admin | ||
@endif | ||
</p> | ||
</div> | ||
</div> | ||
<div class="user-content"> | ||
{{ new Illuminate\Support\HtmlString($this->announcement->getMeta('content')) }} | ||
</div> | ||
</div> | ||
</x-conference::layouts.main> | ||
</x-conference::layouts.main> |
Oops, something went wrong.