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

{{ $page_info['title'] }}

@csrf
{{-- 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