@extends('layouts.app') @section('title', 'All Roles') {{-- custom css --}} @push('css') @endpush {{-- page connect --}} @section('content')

Manage Roles

New Role
@foreach ($roles as $role) {{-- show only role with _id of the auth user --}} @endforeach
Role Title Action
{{ (strpos($role['name'], '_') !== false) ? strstr($role['name'], '_', true) : $role['name']}}
@endsection {{-- custom js --}} @push('js') @endpush