@extends('layouts.app') @section('title', 'Detail Pesanan') @section('content')
| Nama Pemesan | {{ $pelanggan->nama_pemesan }} | 
|---|---|
| {{ $pelanggan->email }} | |
| No Telepon | {{ $pelanggan->no_tlpn }} | 
| Template | {{ $pelanggan->template->nama_template ?? '-' }} | 
| Harga | Rp {{ number_format($pelanggan->harga, 0, ',', '.') }} | 
| Status | {{ ucfirst($pelanggan->status) }} | 
| Kode Undangan | {{ $pelanggan->invitation_code }} | 
| {{ ucwords(str_replace('_', ' ', $field)) }} | @if(is_array($value))
                                    {{ implode(', ', $value) }}
                                {{-- โ
 Jika value adalah path atau URL gambar --}}
                                @elseif(
                                    is_string($value) &&
                                    (preg_match('/\.(jpg|jpeg|png|gif|webp)$/i', $value)
                                    || Str::startsWith($value, ['storage/', 'uploads/', 'images/']))
                                )
                                    @php
                                        // Cek apakah gambar disimpan di storage Laravel
                                        $imageUrl = Str::startsWith($value, ['http://', 'https://'])
                                            ? $value
                                            : asset($value);
                                    @endphp | 
|---|
Tidak ada data form tambahan.
@endif