9 lines
178 B
PHP
Raw Normal View History

2025-04-23 20:58:39 +08:00
@if(auth()->user()->hasRole('Admin'))
<x-layouts.admin>
{{ $slot }}
</x-layouts.admin>
@else
<x-layouts.user>
{{ $slot }}
</x-layouts.user>
@endif