@extends ('layouts.site') @section ('title', "India's Coolest Store Awards - {$category->title}") @section ('body_class', 'page-inner page-award-category') @push('styles') @endpush @section ('content') @php $nameParts = preg_split('/\s+/u', trim($category->title), -1, PREG_SPLIT_NO_EMPTY) ?: []; $accentWord = count($nameParts) > 1 ? array_pop($nameParts) : null; $titleLead = count($nameParts) > 0 ? implode(' ', $nameParts) : $category->title; @endphp Back to Award Categories @if (!empty($categoryImageUrl)) @endif @if ($accentWord) {{ $titleLead }} {{ $accentWord }} @else {{ $category->title }} @endif {!! $category->description !!} @endsection