Skip to content

Commit c99cd4b

Browse files
committed
Support breeze or Jetstream profile link
1 parent 9592f07 commit c99cd4b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

resources/views/layouts/partials/nav-user.blade.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
77
@if(Route::has('profile.edit'))
88
<a class="dropdown-item" href="{{ route('profile.edit') }}">{{ __('Profile') }}</a>
9-
@endif
9+
@elseif(Route::has('profile.show'))
10+
<a class="dropdown-item" href="{{ route('profile.show') }}">{{ __('Profile') }}</a>
11+
@endif
12+
@if (class_exists('\Laravel\Jetstream\Jetstream') && Laravel\Jetstream\Jetstream::hasApiFeatures())
13+
<a class="dropdown-item" href="{{ route('api-tokens.index') }}">{{ __('API Tokens') }}</a>
14+
@endif
1015
<a class="dropdown-item" href="{{ route('laravel-crm.logout') }}"
1116
onclick="event.preventDefault();
1217
document.getElementById('logout-form').submit();">

src/Http/Livewire/LiveDeliveryItems.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class LiveDeliveryItems extends Component
4040
public function mount($delivery, $products, $old = null, $fromOrder = false)
4141
{
4242
$this->delivery = $delivery;
43-
$this->products = $products ? $products->sortBy('order') : null;;
43+
$this->products = $products ? $products->sortBy('order') : null;
44+
;
4445
$this->old = $old;
4546
$this->fromOrder = $fromOrder;
4647

0 commit comments

Comments
 (0)