9 lines
178 B
PHP
Raw Normal View History

2025-04-25 09:33:28 +08:00
@if(auth()->user()->hasRole('Admin'))
<x-layouts.admin>
{{ $slot }}
</x-layouts.admin>
@else
<x-layouts.user>
{{ $slot }}
</x-layouts.user>
@endif