@extends('layout') @php $seoDescription = $template->description ? \Illuminate\Support\Str::limit(preg_replace('/\s+/', ' ', trim($template->description)), 155) : 'Libro.az şablonu'; $seoImage = $template->thumbnail ? (str_starts_with($template->thumbnail, 'http') ? $template->thumbnail : asset($template->thumbnail)) : null; $typeLabels = [ 'mini_site' => 'Mini-səhifə', 'default' => 'Bio-link', 'menu' => 'QR-Menyu', 'shop' => 'Mağaza', 'all' => 'Hamısı', ]; @endphp @section('title', $template->name . ' — Libro.az') @section('meta') @if($seoImage)@endif @if($seoImage)@endif @endsection @section('content')
{{ __('Bütün şablonlar') }} @if($template->thumbnail) {{ $template->name }} @endif

{{ $template->name }}

@if($template->description)

{!! nl2br(e($template->description)) !!}

@endif
{{ __('Səhifə növü') }}
{{ $typeLabels[$template->target_page_type] ?? $template->target_page_type }}
{{ __('Tarif') }}
@if($template->plan) {{ $template->plan->name }} @if($template->plan->price_azn > 0) — {{ number_format((float) $template->plan->price_azn, 2) }} ₼/ay @endif @else {{ __('Bütün tariflər') }} @endif
@if(!empty($template->colors))
{{ __('Rənglər') }}
@foreach($template->colors as $color) {{ $color }} @endforeach
@endif @if($template->category || !empty($template->tags))
@if($template->category)
{{ __('Kateqoriya') }}
{{ $template->category }}
@endif @if(!empty($template->tags))
{{ __('Teqlər') }}
@foreach($template->tags as $tag) {{ $tag }} @endforeach
@endif
@endif
@endsection