-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from lara-zeus/validation
add some validation
- Loading branch information
Showing
10 changed files
with
79 additions
and
64 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,3 +1,5 @@ | ||
<div> | ||
<livewire:bolt.fill-form :slug="$data['form_slug']" /> | ||
@if($data['form_slug'] !== null) | ||
<livewire:bolt.fill-form :slug="$data['form_slug']" /> | ||
@endif | ||
</div> |
34 changes: 18 additions & 16 deletions
34
resources/views/themes/zeus/widgets/LibraryWidget.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
<div> | ||
@foreach($data['library'] as $library) | ||
<a href="{{ route('library.item', ['slug' => $library->slug]) }}" class="flex flex-col py-2 px-1.5 hover:bg-gray-100 dark:hover:bg-gray-600 rounded-md transition ease-in-out duration-500 block cursor-pointer"> | ||
<div x-data class="flex items-center justify-between text-primary-600 dark:text-primary-400 hover:dark:text-primary-300"> | ||
<h3>{{ $library->title ?? '' }}</h3> | ||
@if($library->type === 'IMAGE') | ||
@if($data['library'] !== null) | ||
@foreach($data['library'] as $library) | ||
<a href="{{ route('library.item', ['slug' => $library->slug]) }}" class="flex flex-col py-2 px-1.5 hover:bg-gray-100 dark:hover:bg-gray-600 rounded-md transition ease-in-out duration-500 block cursor-pointer"> | ||
<div x-data class="flex items-center justify-between text-primary-600 dark:text-primary-400 hover:dark:text-primary-300"> | ||
<h3>{{ $library->title ?? '' }}</h3> | ||
@if($library->type === 'IMAGE') | ||
<x-heroicon-o-photograph x-tooltip.raw="{{ __('Image') }}" class="w-4 h-4 text-gray-400 dark:text-gray-500" /> | ||
@endif | ||
@endif | ||
|
||
@if($library->type === 'FILE') | ||
@if($library->type === 'FILE') | ||
<x-heroicon-o-document x-tooltip.raw="{{ __('File') }}" class="w-4 h-4 text-gray-400 dark:text-gray-500" /> | ||
@endif | ||
@endif | ||
|
||
@if($library->type === 'VIDEO') | ||
@if($library->type === 'VIDEO') | ||
<x-heroicon-o-film x-tooltip.raw="{{ __('Video') }}" class="w-4 h-4 text-gray-400 dark:text-gray-500" /> | ||
@endif | ||
</div> | ||
<cite class="text-sm text-secondary-600 dark:text-secondary-500 hover:dark:text-secondary-300"> | ||
{{ $library->description }} | ||
</cite> | ||
</a> | ||
@endforeach | ||
@endif | ||
</div> | ||
<cite class="text-sm text-secondary-600 dark:text-secondary-500 hover:dark:text-secondary-300"> | ||
{{ $library->description }} | ||
</cite> | ||
</a> | ||
@endforeach | ||
@endif | ||
</div> |
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,33 +1,35 @@ | ||
<div> | ||
@php | ||
$nav = $data['menu']->items; | ||
@endphp | ||
@if($nav !== null) | ||
@if($data['menu_dir'] === 'vertical') | ||
<nav class="px-2 flex flex-1 flex-col" aria-label="Sidebar"> | ||
<ul role="list" class="-mx-2 space-y-1"> | ||
@if($data['menu'] !== null) | ||
@php | ||
$nav = $data['menu']->items; | ||
@endphp | ||
@if($nav !== null) | ||
@if($data['menu_dir'] === 'vertical') | ||
<nav class="px-2 flex flex-1 flex-col" aria-label="Sidebar"> | ||
<ul role="list" class="-mx-2 space-y-1"> | ||
@foreach($nav as $item) | ||
<li> | ||
{!! \LaraZeus\Sky\Classes\RenderNavItem::render($item,'text-gray-700 hover:text-secondary-600 hover:bg-secondary-50 group flex gap-x-3 rounded-3xl p-2 pl-3 text-sm transition-all ease-in-out duration-300') !!} | ||
</li> | ||
@endforeach | ||
</ul> | ||
</nav> | ||
@else | ||
<div class="container mx-auto flex items-center justify-center"> | ||
@foreach($nav as $item) | ||
<li> | ||
{!! \LaraZeus\Sky\Classes\RenderNavItem::render($item,'text-gray-700 hover:text-secondary-600 hover:bg-secondary-50 group flex gap-x-3 rounded-3xl p-2 pl-3 text-sm transition-all ease-in-out duration-300') !!} | ||
</li> | ||
@if(!empty($item['children'])) | ||
<button class="flex items-center justify-center gap-1 text-sm text-primary-500 focus:outline-none transition-all ease-in-out duration-300"> | ||
{{ $item['label'] }} | ||
</button> | ||
@foreach($item['children'] as $children) | ||
{!! \LaraZeus\Sky\Classes\RenderNavItem::render($children,'block px-4 py-2 text-sm leading-5 text-primary-500 hover:bg-secondary-100 focus:outline-none focus:bg-gray-100 transition-all ease-in-out duration-300') !!} | ||
@endforeach | ||
@else | ||
{!! \LaraZeus\Sky\Classes\RenderNavItem::render($item,'px-5 py-2 text-base font-medium text-primary-500 hover:text-secondary-800 transition-all ease-in-out duration-300') !!} | ||
@endif | ||
@endforeach | ||
</ul> | ||
</nav> | ||
@else | ||
<div class="container mx-auto flex items-center justify-center"> | ||
@foreach($nav as $item) | ||
@if(!empty($item['children'])) | ||
<button class="flex items-center justify-center gap-1 text-sm text-primary-500 focus:outline-none transition-all ease-in-out duration-300"> | ||
{{ $item['label'] }} | ||
</button> | ||
@foreach($item['children'] as $children) | ||
{!! \LaraZeus\Sky\Classes\RenderNavItem::render($children,'block px-4 py-2 text-sm leading-5 text-primary-500 hover:bg-secondary-100 focus:outline-none focus:bg-gray-100 transition-all ease-in-out duration-300') !!} | ||
@endforeach | ||
@else | ||
{!! \LaraZeus\Sky\Classes\RenderNavItem::render($item,'px-5 py-2 text-base font-medium text-primary-500 hover:text-secondary-800 transition-all ease-in-out duration-300') !!} | ||
@endif | ||
@endforeach | ||
</div> | ||
</div> | ||
@endif | ||
@endif | ||
@endif | ||
</div> |
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