@extends('admin.layouts.app') @section('title', $package->title) @section('page-title', $package->title) @section('page-subtitle', 'Detail informasi package') @section('header-actions') Edit Package Kembali @endsection @section('content') @php $includeItems = $package->include ? explode('//', $package->include) : []; $excludeItems = $package->exclude ? explode('//', $package->exclude) : []; $itineraryItems = $package->itinerary ? explode('//', $package->itinerary) : []; $notesItems = $package->notes ? explode('//', $package->notes) : []; $highlightItems = $package->highlight_item ? explode('//', $package->highlight_item) : []; @endphp
{{-- Left: Detail --}}
@php $packageImages = $package->images ? explode(',', $package->images) : []; $highlightImages = $package->highlight_image ? explode(',', $package->highlight_image) : []; @endphp @if(count($packageImages))

Galeri Gambar ({{ count($packageImages) }})

@foreach($packageImages as $img) {{ $package->title }} @endforeach
@endif {{-- Hero Info --}}

{{ $package->title }}

@if($package->location)

{{ $package->location }}

@endif
@if($package->category_name) {{ $package->category_name }} @endif @if($package->tag) @php $tagColor = match($package->tag) { 'popular' => 'bg-amber-50 text-amber-700', 'new' => 'bg-emerald-50 text-emerald-700', 'promo' => 'bg-rose-50 text-rose-700', default => 'bg-slate-100 text-slate-500', }; @endphp {{ ucfirst($package->tag) }} @endif
{{-- Quick Stats --}}

Durasi

{{ $package->duration_day ?? '—' }}D / {{ $package->duration_night ?? '—' }}N

Min. Pax

{{ $package->min_pax ?? '—' }}

Harga Mulai

@if($package->price_starting_from) Rp {{ number_format($package->price_starting_from, 0, ',', '.') }} @else — @endif

@if($package->description)

Deskripsi

{{ $package->description }}

@endif
{{-- Highlight Package --}} @if($package->highlight_desc || count(array_filter($highlightItems)) || count($highlightImages))

Highlight Package

@if($package->highlight_desc)

{{ $package->highlight_desc }}

@endif @if(count($highlightImages))
@foreach($highlightImages as $img) {{ $package->title }} @endforeach
@endif @if($highlightItems)
    @foreach($highlightItems as $item) @if(trim($item))
  • {{ trim($item) }}
  • @endif @endforeach
@endif
@endif {{-- Include & Exclude --}}

Include ({{ count($includeItems) }})

@if($includeItems)
    @foreach($includeItems as $item) @if(trim($item))
  • {{ trim($item) }}
  • @endif @endforeach
@else

Tidak ada data

@endif

Exclude ({{ count($excludeItems) }})

@if($excludeItems)
    @foreach($excludeItems as $item) @if(trim($item))
  • {{ trim($item) }}
  • @endif @endforeach
@else

Tidak ada data

@endif
{{-- Itinerary --}} @if($itineraryItems)

≡ Itinerary ({{ count(array_filter($itineraryItems)) }} item)

    @foreach($itineraryItems as $i => $item) @if(trim($item))
  1. {{ $i + 1 }}

    {{ trim($item) }}

  2. @endif @endforeach
@endif {{-- Notes --}} @if($notesItems)

Notes / Catatan

    @foreach($notesItems as $note) @if(trim($note))
  • • {{ trim($note) }}
  • @endif @endforeach
@endif
{{-- Right: Meta --}}

Informasi Record

ID

#{{ $package->id }}

@if($package->created_at)

Dibuat

{{ \Carbon\Carbon::parse($package->created_at)->format('d M Y') }}

{{ \Carbon\Carbon::parse($package->created_at)->format('H:i') }}

@endif @if($package->updated_at)

Diperbarui

{{ \Carbon\Carbon::parse($package->updated_at)->format('d M Y') }}

{{ \Carbon\Carbon::parse($package->updated_at)->format('H:i') }}

@endif
Edit Package
@csrf @method('DELETE')
@endsection