@extends('client.layout.master') @php use App\Models\Translation; $locale = app()->getLocale(); @endphp @section('title', Translation::getValue('guides_title', $locale)) @section('content') @php use Illuminate\Support\Str; @endphp {{ Translation::getValue('guides_title', $locale) ?? 'Guides & Tutorials' }} {{ Translation::getValue('breadcrumb_home', $locale) ?? 'Home' }} {{ Translation::getValue('guides_title', $locale) ?? 'Guides & Tutorials' }} {{-- NO RESULTS --}} @if($guides->count() === 0) {{ Translation::getValue('no_results', $locale) ?? 'No results found' }} @if(!empty($search)) "{{ $search }}" @endif @else @foreach($guides as $guide) @if($guide->hasVideo()) @endif @if($guide->published_at) {{ $guide->published_at->format('d') }} {{ strtoupper($guide->published_at->format('M')) }} @endif {{ $guide->getProductName($locale) }} {{ $guide->category?->{'name_'.$locale} ?? $guide->category?->name_az ?? 'Guide' }} {{ Str::limit(strip_tags($guide->getDescription($locale)), 120) }} @if($guide->getWatchUrl()) {{ Translation::getValue('watch_video', $locale) ?? 'Watch Video' }} @endif @endforeach {{ $guides->links('vendor.pagination.bootstrap-4') }} @endif @endsection
"{{ $search }}"