@php
use Carbon\Carbon;
$title = $role->name;
@endphp
@extends('layouts.app')
@section('title', $title)
@section('content')
@include('shared.button', ['type' => 'back', 'url' => route('roles.index')])
@include('shared.title', [$title])
@include('shared.fake-div')
-
Name : {{ $role->name }}
-
{{ 'Created At : ' . Carbon::parse($role->created_at)->format('Y/m/d | H:i:s') }}
-
{{ 'Updated At : ' . Carbon::parse($role->updated_at)->format('Y/m/d | H:i:s') }}
Permissions :
@foreach($role->Permissions as $key => $permission)
-
{{ $key + 1 }} - {{ $permission->name }}
@endforeach
@include('shared.button', ['type' => 'edit', 'url' => route('roles.edit', $role)])
@include('shared.button', ['type' => 'delete', 'url' => route('roles.destroy', $role)])
@endsection