@if (!Permit::isPermit(str_replace('/create', '', Route::current()->uri()), 'create', true))
You are not allowed to access this section.
@else
@php
// Get current path
$currentPath = request()->segment(2);
// Generate route name
$routeName = $currentPath . '.store';
@endphp