@props(['module']) @php($base='/t/'.request()->route('tenant')) @php($pageKey=\App\Support\ModulePages::page()) @php($createPath=$module.($pageKey==='index'?'':'/'.$pageKey).'/create') @php($createLink=collect(\App\Support\ModulePages::links($module))->firstWhere('path',$createPath)) @if($createLink && !in_array($module,['organization','positions']))
{{ $createLink['label'] }}
@endif @if(\App\Support\ModulePages::page()!=='index')

{{ collect(\App\Support\ModulePages::EXTRA[$module] ?? [])->get(str_replace('-create','/create',\App\Support\ModulePages::page()))[0] ?? ucwords(str_replace('-',' ',\App\Support\ModulePages::page())) }}

Back to list / Cancel
@endif