@extends('layouts/contentLayoutMaster') @section('title', 'Access Control ') {{-- page main content --}} @section('content')
Your current role is @if(Auth::user()) @role('Admin') {{"Admin"}} @else{{'Editor'}} @endrole @else{{"Guest"}} @endif.
{{-- roles --}} {{-- buttons --}}
Buttons
@role('Admin') @endrole

Accordion

Cheesecake cotton candy bonbon muffin cupcake tiramisu croissant. Tootsie roll sweet candy bear claw chupa chups lollipop toffee. Macaroon donut liquorice powder candy carrot cake macaroon fruitcake. Cookie toffee lollipop cotton candy ice cream dragée soufflé. Cake tiramisu lollipop wafer pie soufflé dessert tart. Biscuit ice cream pie apple pie topping oat cake dessert. Soufflé icing caramels. Chocolate cake icing ice cream macaroon pie cheesecake liquorice apple pie.
@role('Admin')
@endrole
Route Protection

You can add route protection using Laravel ACL. Only admin can visit eCommerce Dashboard.

Visit
@endsection