Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Breadcrumbs #1289

Merged
merged 2 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@props([
'name' => '',
'entity' => null,
])

<div class="flex justify-start max-lg:hidden">
<div class="flex items-center gap-x-3.5">
{{ Breadcrumbs::view('admin::partials.breadcrumbs', $name, $entity) }}
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,11 @@
<div class="flex items-center justify-between rounded-lg border border-gray-200 bg-white px-4 py-2 text-sm dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300">
<div class="flex flex-col gap-2">
<div class="flex cursor-pointer items-center">
<a
href="{{ route('admin.contacts.organizations.index') }}"
class="flex items-center text-xs text-gray-600 dark:text-gray-300"
>
<i class="icon-left-arrow text-2xl"></i>

@lang('admin::app.settings.roles.index.settings')
</a>
<x-admin::breadcrumbs name="contacts.organizations" />
</div>

<div class="px-4 text-xl font-bold dark:text-gray-300">
@lang('admin::app.products.index.title')
<div class="text-xl font-bold dark:text-gray-300">
@lang('Organizations')
</div>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,10 @@
<div class="flex items-center justify-between rounded-lg border border-gray-200 bg-white px-4 py-2 text-sm dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300">
<div class="flex flex-col gap-2">
<div class="flex cursor-pointer items-center">
<a
href="{{ route('admin.contacts.organizations.index') }}"
class="flex items-center text-xs text-gray-600 dark:text-gray-300"
>
<i class="icon-left-arrow text-2xl"></i>

@lang('admin::app.settings.roles.index.settings')
</a>
<x-admin::breadcrumbs name="contacts.persons" />
</div>

<div class="px-4 text-xl font-bold dark:text-gray-300">
<div class="text-xl font-bold dark:text-gray-300">
@lang('Persons')
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@unless ($breadcrumbs->isEmpty())
<nav aria-label="">
<ol class="flex">
@foreach ($breadcrumbs as $breadcrumb)
@if (
$breadcrumb->url
&& ! $loop->last
)
<li class="flex items-center gap-x-1 text-sm font-normal text-brandColor">
<a href="{{ $breadcrumb->url }}">
{{ $breadcrumb->title }}
</a>

<span class="after:content-['/'] ltr:mr-1 rtl:ml-1"></span>
</li>
@else
<li
class="flex items-center gap-x-1 text-base text-gray-600 after:content-['/'] after:last:hidden"
aria-current="page"
>
{{ $breadcrumb->title }}
</li>
@endif
@endforeach
</ol>
</nav>
@endunless
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,13 @@
</x-slot>

<v-group-settings>
<div class="flex items-center justify-between rounded-lg border border-gray-200 bg-white py-2 pl-2 pr-4 text-sm dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300">
<div class="flex flex-col">
<div class="flex items-center justify-between rounded-lg border border-gray-200 bg-white px-4 py-2 text-sm dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300">
<div class="flex flex-col gap-2">
<div class="flex cursor-pointer items-center">
<i class="icon-left-arrow text-2xl text-gray-800"></i>

<a
href="{{ route('admin.settings.groups.index') }}"
class="text-xs text-gray-800 dark:text-gray-300"
>
Settings
</a>
<x-admin::breadcrumbs name="settings.groups" />
</div>

<div class="pl-3 text-xl font-normal dark:text-gray-300">
<div class="text-xl font-bold dark:text-gray-300">
@lang('admin::app.settings.groups.index.title')
</div>
</div>
Expand All @@ -44,24 +37,17 @@ class="primary-button"
type="text/x-template"
id="group-settings-template"
>
<div class="flex items-center justify-between rounded-lg border border-gray-200 bg-white py-2 pl-2 pr-4 text-sm dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300">
<div class="flex flex-col">
<div class="flex items-center justify-between rounded-lg border border-gray-200 bg-white px-4 py-2 text-sm dark:border-gray-800 dark:bg-gray-900 dark:text-gray-300">
<div class="flex flex-col gap-2">
<div class="flex cursor-pointer items-center">
<i class="icon-left-arrow text-2xl text-gray-800"></i>

<a
href="{{ route('admin.settings.groups.index') }}"
class="text-xs text-gray-800 dark:text-gray-300"
>
Settings
</a>
<x-admin::breadcrumbs name="settings.groups" />
</div>

<div class="pl-3 text-xl font-normal dark:text-gray-300">
<div class="text-xl font-bold dark:text-gray-300">
@lang('admin::app.settings.groups.index.title')
</div>
</div>

<div class="flex items-center gap-x-2.5">
<!-- Create button for person -->
<div class="flex items-center gap-x-2.5">
Expand Down
56 changes: 56 additions & 0 deletions public/build/assets/app-0add5a72.js

Large diffs are not rendered by default.

56 changes: 0 additions & 56 deletions public/build/assets/app-4850f2e3.js

This file was deleted.

1 change: 0 additions & 1 deletion public/build/assets/app-c3d49b3e.css

This file was deleted.

1 change: 1 addition & 0 deletions public/build/assets/app-fa10a693.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions public/build/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"src/Resources/assets/css/app.css": {
"file": "assets/app-c3d49b3e.css",
"file": "assets/app-fa10a693.css",
"isEntry": true,
"src": "src/Resources/assets/css/app.css"
},
Expand Down Expand Up @@ -178,11 +178,11 @@
},
"src/Resources/assets/images/favicon/apple-icon-precomposed.png": {
"file": "assets/apple-icon-11320d35.png",
"src": "src/Resources/assets/images/favicon/apple-icon-precomposed.png"
"src": "src/Resources/assets/images/favicon/apple-icon.png"
},
"src/Resources/assets/images/favicon/apple-icon.png": {
"file": "assets/apple-icon-11320d35.png",
"src": "src/Resources/assets/images/favicon/apple-icon-precomposed.png"
"src": "src/Resources/assets/images/favicon/apple-icon.png"
},
"src/Resources/assets/images/favicon/favicon-16x16.png": {
"file": "assets/favicon-16x16-eb7238ce.png",
Expand Down Expand Up @@ -360,7 +360,7 @@
"css": [
"assets/app-c04ede37.css"
],
"file": "assets/app-4850f2e3.js",
"file": "assets/app-0add5a72.js",
"isEntry": true,
"src": "src/Resources/assets/js/app.js"
}
Expand Down
15 changes: 0 additions & 15 deletions resources/views/vendor/breadcrumbs/bootstrap4.blade.php

This file was deleted.

15 changes: 0 additions & 15 deletions resources/views/vendor/breadcrumbs/bootstrap5.blade.php

This file was deleted.

23 changes: 0 additions & 23 deletions resources/views/vendor/breadcrumbs/bulma.blade.php

This file was deleted.

17 changes: 0 additions & 17 deletions resources/views/vendor/breadcrumbs/foundation6.blade.php

This file was deleted.

23 changes: 0 additions & 23 deletions resources/views/vendor/breadcrumbs/json-ld.php

This file was deleted.

17 changes: 0 additions & 17 deletions resources/views/vendor/breadcrumbs/materialize.blade.php

This file was deleted.

27 changes: 0 additions & 27 deletions resources/views/vendor/breadcrumbs/tailwind.blade.php

This file was deleted.

13 changes: 0 additions & 13 deletions resources/views/vendor/breadcrumbs/uikit.blade.php

This file was deleted.

Loading