@extends('layouts.admin') @section('content-title') {{ __('roles.Roles managements') }} @endsection @section('content-breadcrumbs') @endsection @section('content')
@if(session()->has('success')) @endif @if(session()->has('deleted')) @endif @foreach($roles as $role) @endforeach
# {{ __('roles.Name') }} {{ __('roles.Description') }} {{ __('roles.Permissions') }} {{ __('roles.Created at') }}
{{ $role->id }} {{ $role->name }} {{ $role->description }} @foreach($role->permissions as $permission)
{{ $permission->name }}
@endforeach
{{ $role->created_at }} {{ __('admin.Edit') }} {!!Form::open()->locale('admin')->post()->route('admin.role.delete')->attrs(['style'=>'display:inline'])!!} {!!Form::hidden('id')->value($role->id)!!} {!!Form::submit(__('Delete'))->color("danger")!!} {!!Form::close()!!}
{{ $roles->links() }}
@endsection