@extends('backend.layouts.master') @section('style') @include('backend.layouts.datatable.style') @endsection @section('content')

Role List

@foreach ($roles as $role) @endforeach
SL Name Description Landing Page Status Permission Action
{{ $loop->iteration }} {{ $role->name }} {{ $role->description }} @if ($role->landingPage) {{ $role->landingPage->first .' - '. ($role->landingPage->second ?? '') .' - '. ($role->landingPage->third ?? '') .' - '. ($role->landingPage->fourth ?? '') .' => '. ($role->landingPage->name ?? '')}} @endif @if ($role->status == true) Active @else Inactive @endif @foreach ($role->permissions as $permission) {{ $permission->first .' - '. ($permission->second ?? '') .' - '. ($permission->third ?? '') .' - '. ($permission->fourth ?? '') .' => '. ($permission->name ?? '')}} @endforeach
@endsection @section('script') @include('backend.layouts.datatable.script') @endsection