@extends('layouts.app')
@section('title','Permisos Rol')
@section('content')
<div class="content-page">
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-12 col-lg-12">
                <div class="card">
                    <div class="card-header d-flex justify-content-between">
                        <div class="header-title">
                            <h4 class="card-title">{{ $role->name }}</h4>
                            <a href="{{route('roles.index')}}" class="btn btn-warning btn-round">Salir</a>
                        </div>
                    </div>
                    <div class="card-body">
                        <ul class="list-unstyled">
                            @foreach($permissions as $permission)
                            <li>
                                <label>
                                    <strong>{{$permission->descripcion ?: 'Sin descripción'}}</strong>
                                    <em>({{$permission->name}})</em>
                                </label>
                            </li>
                            @endforeach
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
