2025-05-23 15:35:59 +08:00

9 lines
178 B
PHP

@if(auth()->user()->hasRole('Admin'))
<x-layouts.admin>
{{ $slot }}
</x-layouts.admin>
@else
<x-layouts.user>
{{ $slot }}
</x-layouts.user>
@endif