@if ($page_builder->page_name == 'team-category-index' && isset($category)) @if(Auth::user()) @can('team check')
@endcan @endif @if(Auth::user()) @can('team check')
@php $url = request()->path(); $modified_url = str_replace('/', '-bracket-', $url); @endphp
@csrf
@endcan @endif @elseif ($page_builder->page_name == 'service-category-index' && isset($category)) @if(Auth::user()) @can('service check')
@endcan @endif @if(Auth::user()) @can('service check')
@php $url = request()->path(); $modified_url = str_replace('/', '-bracket-', $url); @endphp
@csrf
@endcan @endif @elseif ($page_builder->page_name == 'service-detail-show' && isset($service)) @if(Auth::user()) @can('service check')
@endcan @endif @if(Auth::user()) @can('service check')
@php $url = request()->path(); $modified_url = str_replace('/', '-bracket-', $url); @endphp
@csrf
@endcan @endif @elseif ($page_builder->page_name == 'portfolio-category-index' && isset($category)) @if(Auth::user()) @can('portfolio check')
@endcan @endif @if(Auth::user()) @can('portfolio check')
@php $url = request()->path(); $modified_url = str_replace('/', '-bracket-', $url); @endphp
@csrf
@endcan @endif @elseif ($page_builder->page_name == 'portfolio-detail-show' && isset($portfolio)) @if(Auth::user()) @can('portfolio check')
@endcan @endif @if(Auth::user()) @can('portfolio check')
@php $url = request()->path(); $modified_url = str_replace('/', '-bracket-', $url); @endphp
@csrf
@endcan @endif @elseif ($page_builder->page_name == 'career-detail-show' && isset($career)) @if(Auth::user()) @can('career check')
@endcan @endif @if(Auth::user()) @can('career check')
@php $url = request()->path(); $modified_url = str_replace('/', '-bracket-', $url); @endphp
@csrf
@endcan @endif @elseif ($page_builder->page_name == 'blog-category-index' && isset($category)) @if(Auth::user()) @can('blog check')
@endcan @endif @if(Auth::user()) @can('blog check')
@php $url = request()->path(); $modified_url = str_replace('/', '-bracket-', $url); @endphp
@csrf
@endcan @endif @elseif ($page_builder->page_name == 'blog-tag-index' && isset($tag_name)) @if(Auth::user()) @can('blog check')
@endcan @endif @if(Auth::user()) @can('blog check')
@php $url = request()->path(); $modified_url = str_replace('/', '-bracket-', $url); @endphp
@csrf
@endcan @endif @elseif ($page_builder->page_name == 'blog-detail-show' && isset($blog)) @if(Auth::user()) @can('blog check')
@endcan @endif @if(Auth::user()) @can('blog check')
@php $url = request()->path(); $modified_url = str_replace('/', '-bracket-', $url); @endphp
@csrf
@endcan @endif @elseif ($page_builder->page_name == 'page-detail-show' && isset($page)) @if(Auth::user()) @can('page check')
@endcan @endif @if(Auth::user()) @can('page check')
@php $url = request()->path(); $modified_url = str_replace('/', '-bracket-', $url); @endphp
@csrf
@endcan @endif @else @if(Auth::user()) @can('page builder check')
@endcan @endif @if(Auth::user()) @can('page builder check')
@php if ($page_builder->page_name == 'blog-search-index') { $modified_url = '/'; } else { $url = request()->path(); $modified_url = str_replace('/', '-bracket-', $url); } @endphp
@csrf
@endcan @endif @endif