POLJAM TECH

Penawaran Baru

Ada Penawaran Baru Masuk!

Seseorang telah mengajukan penawaran untuk produk di website Anda.

@php // Parse message untuk request type dan addons $raw = $inquiry->message ?? ''; $lines = preg_split("/(\r\n|\n|\r)/", $raw); $type = null; $addons = []; $hasAddonsLine = false; if (!empty($lines)) { $first = $lines[0] ?? ''; $second = $lines[1] ?? ''; if (substr($first, 0, 14) === '[REQUEST_TYPE]') { $type = trim(substr($first, 14)); } if (substr($second, 0, 8) === '[ADDONS]') { $hasAddonsLine = true; $matches = []; if (preg_match('/^\[ADDONS\]\s*(\[[\s\S]*\])$/', $second, $matches)) { $decoded = json_decode($matches[1], true); if (is_array($decoded)) { $addons = $decoded; } } } } $startIdx = 0; if ($type) { $startIdx++; } if ($hasAddonsLine) { $startIdx++; } if (!empty($lines) && isset($lines[$startIdx]) && trim($lines[$startIdx]) === '') { $startIdx++; } $plainMessage = implode("\n", array_slice($lines, $startIdx)); $typeLabel = $type === 'custom_addon' ? 'Custom Add-on' : ($type === 'custom_new' ? 'Custom Baru' : ($type === 'template' ? 'Katalog' : null)); $typeClass = $type === 'custom_addon' ? 'custom-addon' : ($type === 'custom_new' ? 'custom-new' : 'katalog'); @endphp
ID Penawaran #{{ $inquiry->id }}
Tracking Code {{ $inquiry->tracking_code ?? '-' }}
@if($typeLabel)
Tipe Permintaan {{ $typeLabel }}
@endif
Nama Customer {{ $inquiry->name }}
Email {{ $inquiry->email }}
Telepon {{ $inquiry->phone ?? '-' }}
Produk {{ $inquiry->product->product_title ?? 'N/A' }}
Status {{ ucfirst(str_replace('_', ' ', $inquiry->status ?? 'Pending')) }}
Tanggal {{ $inquiry->created_at->format('d/m/Y H:i') }}
@if(!empty($addons) && count($addons) > 0)
Spesifikasi Tambahan (Custom Add-ons)
@foreach($addons as $addon) @endforeach
Nama Nilai
{{ is_array($addon) ? ($addon['name'] ?? '-') : '-' }} {{ is_array($addon) ? ($addon['value'] ?? '-') : '-' }}
@endif @if(!empty($plainMessage))
Pesan dari Customer
{{ $plainMessage }}
@endif
Lihat Detail Penawaran

POLJAM TECH

Jl. Lingkar Barat II Lr. Veteran Rt. 04 Kel. Bagan Pete, Kec. Alam Barajo, Kota Jambi

Email ini dikirim secara otomatis dari sistem. Jangan balas email ini.

© {{ date('Y') }} POLJAM TECH. All rights reserved.