Skip to content

Commit

Permalink
Add a link to notify users of resource digest
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcyLina committed Nov 22, 2024
1 parent 6104377 commit ca0ddd1
Showing 1 changed file with 31 additions and 26 deletions.
57 changes: 31 additions & 26 deletions resources/views/new-resources.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,37 @@
@section('content')

<div class="w-full bg-white">
<x-hero>
<h1 class="mb-2 font-bold tracking-wide h2 md:h1">{{ __('New Resources') }}</h1>
</x-hero>
<x-hero>
<h1 class="mb-2 font-bold tracking-wide h2 md:h1">{{ __('New Resources') }}</h1>
</x-hero>

<x-panel>
@if ($resources->count())
<ul class="grid gap-4">
@foreach ($resources as $resource)
<li class="flex gap-2">
<a href="{{ $resource['url'] }}" class="font-semibold underline">
{{ $resource['name'] }}
</a>
<span>-</span>
<p> Modules:
@forelse ($resource['modules'] as $module)
{{ $module['name'] }}@if (!$loop->last), @endif
@empty
No Modules
@endforelse
</p>
</li>
@endforeach
</ul>
@else
<p class="text-center">There are no new resources.</p>
@endif
</x-panel>
<h2 class="mt-8 mb-4 text-lg font-semibold text-center">Here you'll find resources that have been added in the last 30 days.</h2>
<p class="mb-8 text-center">
If you'd like receive a monthly digest of new resources, please update your <a href="{{ route_wlocale('user.preferences.index') }}" class="underline">preferences.</a>
</p>

<x-panel>
@if ($resources->count())
<ul class="grid gap-4">
@foreach ($resources as $resource)
<li class="flex gap-2">
<a href="{{ $resource['url'] }}" class="font-semibold underline">
{{ $resource['name'] }}
</a>
<span>-</span>
<p> Modules:
@forelse ($resource['modules'] as $module)
{{ $module['name'] }}@if (!$loop->last), @endif
@empty
No Modules
@endforelse
</p>
</li>
@endforeach
</ul>
@else
<p class="text-center">There are no new resources.</p>
@endif
</x-panel>
</div>
@endsection

0 comments on commit ca0ddd1

Please sign in to comment.