@php
$url = explode('/', url()->current());
$all = '';
$active = '';
$paused = '';
$expired = '';
$canceled = '';
$completed = '';
if (isset($url[4])) {
if ($url[4] == 'active') {
$active = 'active';
}
if ($url[4] == 'paused') {
$paused = 'active';
}
if ($url[4] == 'expired') {
$expired = 'active';
}
if ($url[4] == 'canceled') {
$canceled = 'active';
}
if ($url[4] == 'completed') {
$completed = 'active';
}
} else {
$all = 'active';
}
@endphp
@if (isset($pageContent) &&
!is_null($pageContent) &&
($pageContent->content_place == 'both' || $pageContent->content_place == 'top'))
{!! $pageContent->page_content_top !!}
@endif
@if (count($data) != 0)
@endif
@if (isset($pageContent) &&
!is_null($pageContent) &&
($pageContent->content_place == 'both' || $pageContent->content_place == 'bottom'))
{!! $pageContent->page_content_bottom !!}
@endif