|
5 | 5 | <div class="flex">
|
6 | 6 | <!-- Logo -->
|
7 | 7 | <div class="flex-shrink-0 flex items-center">
|
8 |
| - <a href="{{ route('accounts.show', Auth::user()->ownedAccount) }}"> |
| 8 | + <a href="{{ route('accounts.show', Auth::user()->account) }}"> |
9 | 9 | <img src="/logo.svg" class="block h-12 w-auto">
|
10 | 10 | </a>
|
11 | 11 | </div>
|
12 | 12 |
|
13 | 13 | <!-- Navigation Links -->
|
14 | 14 | <div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex">
|
15 |
| - <x-account-nav-link href="{{ route('locations', Auth::user()->ownedAccount) }}" :active="request()->routeIs('locations')"> |
| 15 | + <x-account-nav-link href="{{ route('locations', Auth::user()->account) }}" :active="request()->routeIs('locations')"> |
16 | 16 | {{ __('Locations') }}
|
17 | 17 | </x-account-nav-link>
|
18 | 18 | </div>
|
19 | 19 | @if(App\Daybreak::hasProjectBillingFeature())
|
20 | 20 | <div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex">
|
21 |
| - <x-account-nav-link href="{{ route('projects', Auth::user()->ownedAccount) }}" :active="request()->routeIs('projects')"> |
| 21 | + <x-account-nav-link href="{{ route('projects', Auth::user()->account) }}" :active="request()->routeIs('projects')"> |
22 | 22 | {{ __('Projects') }}
|
23 | 23 | </x-account-nav-link>
|
24 | 24 | </div>
|
25 | 25 | @endif
|
26 | 26 | @if(App\Daybreak::hasEmployeePayrollFeature())
|
27 | 27 | <div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex">
|
28 |
| - <x-account-nav-link href="{{ route('payrolls', Auth::user()->ownedAccount) }}" :active="request()->routeIs('payrolls')"> |
| 28 | + <x-account-nav-link href="{{ route('payrolls', Auth::user()->account) }}" :active="request()->routeIs('payrolls')"> |
29 | 29 | {{ __('Payroll') }}
|
30 | 30 | </x-account-nav-link>
|
31 | 31 | </div>
|
32 | 32 | @endif
|
33 | 33 | <div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex">
|
34 |
| - <x-account-nav-link href="{{ route('employees', Auth::user()->ownedAccount) }}" :active="request()->routeIs('employees')"> |
| 34 | + <x-account-nav-link href="{{ route('employees', Auth::user()->account) }}" :active="request()->routeIs('employees')"> |
35 | 35 | {{ __('Employees') }}
|
36 | 36 | </x-account-nav-link>
|
37 | 37 | </div>
|
|
77 | 77 | <div class="border-t border-gray-100"></div>
|
78 | 78 |
|
79 | 79 | <!-- Account Management -->
|
80 |
| - @can('view', Auth::user()->ownedAccount) |
| 80 | + @can('view', Auth::user()->account) |
81 | 81 | <div class="block px-4 py-2 text-xs text-gray-400">
|
82 | 82 | {{ __('Manage Account') }}
|
83 | 83 | </div>
|
84 | 84 |
|
85 |
| - <x-jet-dropdown-link href="{{ route('accounts.show', Auth::user()->ownedAccount) }}"> |
| 85 | + <x-jet-dropdown-link href="{{ route('accounts.show', Auth::user()->account) }}"> |
86 | 86 | {{ __('Account Settings') }}
|
87 | 87 | </x-jet-dropdown-link>
|
88 | 88 | @endcan
|
|
94 | 94 | {{ __('Manage Location') }}
|
95 | 95 | </div>
|
96 | 96 |
|
97 |
| - {{-- <x-jet-dropdown-link href="{{ route('locations.index', Auth::user()->ownedAccount->id) }}"> |
| 97 | + {{-- <x-jet-dropdown-link href="{{ route('locations.index', Auth::user()->account->id) }}"> |
98 | 98 | {{ __('Account Settings') }}
|
99 | 99 | </x-jet-dropdown-link> --}}
|
100 | 100 |
|
|
190 | 190 | </x-jet-responsive-nav-link>
|
191 | 191 | @endif
|
192 | 192 |
|
193 |
| - <x-jet-responsive-nav-link href="{{ route('locations', Auth::user()->ownedAccount) }}" :active="request()->routeIs('locations')"> |
| 193 | + <x-jet-responsive-nav-link href="{{ route('locations', Auth::user()->account) }}" :active="request()->routeIs('locations')"> |
194 | 194 | {{ __('Locations') }}
|
195 | 195 | </x-jet-responsive-nav-link>
|
196 | 196 | @if(App\Daybreak::hasProjectBillingFeature())
|
197 | 197 |
|
198 |
| - <x-jet-responsive-nav-link href="{{ route('projects', Auth::user()->ownedAccount) }}" :active="request()->routeIs('projects')"> |
| 198 | + <x-jet-responsive-nav-link href="{{ route('projects', Auth::user()->account) }}" :active="request()->routeIs('projects')"> |
199 | 199 | {{ __('Projects') }}
|
200 | 200 | </x-jet-responsive-nav-link>
|
201 | 201 | @endif
|
202 | 202 | @if(App\Daybreak::hasEmployeePayrollFeature())
|
203 |
| - <x-jet-responsive-nav-link href="{{ route('payrolls', Auth::user()->ownedAccount) }}" :active="request()->routeIs('payrolls')"> |
| 203 | + <x-jet-responsive-nav-link href="{{ route('payrolls', Auth::user()->account) }}" :active="request()->routeIs('payrolls')"> |
204 | 204 | {{ __('Payroll') }}
|
205 | 205 | </x-jet-responsive-nav-link>
|
206 | 206 | @endif
|
207 | 207 |
|
208 |
| - <x-jet-responsive-nav-link href="{{ route('employees', Auth::user()->ownedAccount) }}" :active="request()->routeIs('employees')"> |
| 208 | + <x-jet-responsive-nav-link href="{{ route('employees', Auth::user()->account) }}" :active="request()->routeIs('employees')"> |
209 | 209 | {{ __('Employees') }}
|
210 | 210 | </x-jet-responsive-nav-link>
|
211 | 211 |
|
|
0 commit comments