@extends('cms.layouts.main') @section('content') @include('cms.layouts.headers.partials', ['title' => 'Edit Record'])

{{ $page_info['title'] }}

@include('cms.components.alert', ['with' => 'status', 'class' => 'success'])
@csrf @method('put')
{{-- Name --}}
@if($errors->has('name')) {{ $errors->first('name') }} @endif
{{-- Permissions --}}
@foreach($permission as $permission_row)

{{ str_replace('_', ' ', explode('-', $permission_row[0]->name)[0]) }}

@foreach($permission_row as $value)

{{ str_replace('_', ' ', explode('-', $value->name)[1]) }}

@endforeach

@endforeach
@include('cms.layouts.footers.auth')
@endsection