env and vendor added temporary

This commit is contained in:
2025-04-09 16:39:53 +02:00
parent 35e90c283e
commit 43b1cb2202
10304 changed files with 1205060 additions and 254 deletions
@@ -0,0 +1,39 @@
<div class="card overflow-hidden shadow-lg">
<div class="card-body p-0">
<div class="p-4">
<h4 class="card-title mb-3">
{{ $announcement->title }}
</h4>
<div>
{{ $announcement->parsed_body }}
</div>
</div>
<div class="d-flex justify-content-between align-items-center px-4 py-3 bg-lighter">
<div class="d-flex align-items-center ">
<img
class="rounded-circle img-responsive mr-2"
width="40"
src="{{ $announcement->creator->present()->avatar }}"
alt="{{ $announcement->creator->present()->name }}">
<div>
<div class="line-height-1">
{{ $announcement->creator->present()->name }}
</div>
<div class="text-muted">
{{ $announcement->created_at->format('M d') }}
</div>
</div>
</div>
@permission('announcements.manage')
<div>
<a href="{{ route('announcements.edit', $announcement) }}"
class="btn btn-secondary btn-sm">
@lang('Edit')
</a>
</div>
@endpermission
</div>
</div>
</div>
@@ -0,0 +1,19 @@
<div class="d-flex align-items-start px-4 p-4 navbar-item">
<img src="{{ $announcement->creator->present()->avatar }}" width="50" height="50"
class="rounded-circle img-responsive mr-3">
<div class="w-100">
<div class="d-flex justify-content-between align-items-start">
<span class="font-weight-bold">
{{ $announcement->creator->present()->name }}
</span>
<span class="text-muted">
{{ $announcement->created_at->diffForHumans(null, true, true) }}
</span>
</div>
<a href="{{ route('announcements.show', $announcement) }}">
{{ $announcement->title }}
</a>
</div>
</div>
@@ -0,0 +1,38 @@
<li class="nav-item dropdown announcements d-flex align-items-center px-3" id="announcements-icon">
<a href="#"
class="text-gray-500 position-relative nav-icon"
id="announcementsDropdown"
role="button"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="false">
@if (count($announcements) > 0 && $announcements->first()->wasReadBy(auth()->user()))
<i class="activity-badge"></i>
@endif
<i class="fas fa-bullhorn"></i>
</a>
<div class="dropdown-menu dropdown-menu-right position-absolute p-0 shadow-lg"
aria-labelledby="announcementsDropdown"
style="width: 380px; height: 350px; overflow-y: scroll; overflow-x: hidden;">
<div class="text-center p-4">
<h5 class="text-muted mt-2">
@lang('Announcements')
</h5>
@if (count($announcements) > 0)
<a href="{{ route('announcements.list') }}">
@lang('View All')
</a>
@endif
</div>
<div class="bg-lighter">
@if (count($announcements) > 0)
@foreach ($announcements as $announcement)
@include('announcements::partials.navbar.item')
@endforeach
@else
<p class="text-center">@lang('No new announcements at the moment.')</p>
@endif
</div>
</div>
</li>
@@ -0,0 +1,4 @@
<script>
var read_announcements_endpoint = "{{ route('announcements.read') }}";
</script>
<script src="{{ url("vendor/plugins/announcements/js/announcements.js") }}"></script>
@@ -0,0 +1,4 @@
<link media="all"
type="text/css"
rel="stylesheet"
href="{{ url(mix('/css/announcements.css', 'vendor/plugins/announcements')) }}">