@extends('layouts.admin') @section('title', 'Detail Layanan') @section('content')

Detail Layanan

{{ Str::limit($service->title, 60) }}

@if ($service->image)
{{ $service->title }}
@endif
@if ($service->is_featured) Unggulan @endif @if ($service->is_active) Aktif @else Nonaktif @endif {{ $service->created_at->format('d M Y') }}

{{ $service->title }}

@if ($service->short_description)

Deskripsi Singkat

{{ $service->short_description }}

@endif
{!! $service->description !!}
@php $features = explode("\n", strip_tags($service->description)); $features = array_filter(array_map('trim', $features)); $features = array_slice($features, 0, 5); // Tampilkan max 5 fitur @endphp @if (count($features) > 0)

Fitur Layanan

@foreach ($features as $feature) @if (!empty($feature) && strlen($feature) > 10)

{{ Str::limit($feature, 100) }}

@endif @endforeach
@endif

Detail Layanan

Urutan Tampil:
{{ $service->sort_order }}
@if ($service->price_range)
Rentang Harga:
{{ $service->price_range }}
@endif
Tanggal Dibuat:
{{ $service->created_at->format('d M Y H:i') }}
Terakhir Diperbarui:
{{ $service->updated_at->format('d M Y H:i') }}

SEO & Meta

Meta Title:
{{ $service->meta_title ?: 'Belum diatur' }}
Meta Description:
{{ $service->meta_description ?: 'Belum diatur' }}

Statistik

Status: @if ($service->is_active) Aktif @else Nonaktif @endif
Unggulan: @if ($service->is_featured) Ya @else Tidak @endif
@push('scripts') @endpush @endsection