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