@php $logoPathLocal = public_path('images/logo-dnb.png'); $logoBase64 = null; if (file_exists($logoPathLocal)) { $type = pathinfo($logoPathLocal, PATHINFO_EXTENSION); $data = file_get_contents($logoPathLocal); $logoBase64 = 'data:image/' . $type . ';base64,' . base64_encode($data); } // Define sections with extracted titles/content $sections = [ ['id' => 1, 'title' => '1. Ringkasan Eksekutif', 'content' => $proposal->executive_summary], ['id' => 2, 'title' => '2. Latar Belakang & Masalah', 'content' => $proposal->problem_analysis], ['id' => 3, 'title' => '3. Tujuan Proyek', 'content' => $proposal->project_objectives], ['id' => 4, 'title' => '4. Solusi Utama', 'content' => $proposal->solutions], ['id' => 5, 'title' => '5. Ruang Lingkup (Deliverables)', 'content' => $proposal->scope_of_work], ['id' => 6, 'title' => '6. Alur Sistem & Cara Kerja', 'content' => $proposal->system_walkthrough], ['id' => 7, 'title' => '7. Timeline Implementasi', 'content' => $proposal->timeline], ['id' => 8, 'title' => '8. Estimasi Investasi Proyek', 'content' => $proposal->investment ?? $proposal->pricing], ['id' => 9, 'title' => '9. Estimasi Dampak & ROI', 'content' => $proposal->roi_impact], ['id' => 10, 'title' => '10. Nilai Tambah Agensi', 'content' => $proposal->value_add], ['id' => 11, 'title' => '11. Penutup & Kerja Sama', 'content' => $proposal->closing_cta], ]; @endphp
⚠️ PENTING:
1. Destination: Save as PDF
2. Options: Centang ✅ Background graphics
@if($logoBase64) DNB Logo @else
DNB AGENCY
@endif

{{ $proposal->title ?? 'DIGITAL TRANSFORMATION' }}

Prepared for {{ $proposal->client_name }}

Informasi Kontak
Email: darkandbright.official@gmail.com
WhatsApp: +62 878-8279-4909
Alamat: Yogyakarta, Indonesia
DNB STRATEGIC DOCUMENT / {{ strtoupper(date('F Y')) }}
@foreach($sections as $section)
{{ sprintf('%02d', $section['id']) }}
THEDARKANDBRIGHT.COM / STRATEGIC PROPOSAL
SECTION {{ sprintf('%02d', $section['id']) }}
@php $cleanTitle = explode('. ', $section['title'])[1] ?? $section['title']; @endphp

{{ $cleanTitle }}

@if($section['id'] == 1)
{!! preg_replace('/\*\*(.+?)\*\*/', '$1', $section['content']) !!}
@elseif($section['id'] == 2)
"
Menganalisis tantangan anda dengan presisi untuk menciptakan keunggulan kompetitif.
{!! preg_replace('/\*\*(.+?)\*\*/', '$1', $section['content']) !!}
@elseif($section['id'] == 3)
{!! explode("\n\n", $section['content'])[0] ?? '' !!}
01

Optimalisasi

Meningkatkan efisiensi sistem secara menyeluruh.

02

Skalabilitas

Mempersiapkan infrastruktur untuk pertumbuhan.

{!! preg_replace('/\*\*(.+?)\*\*/', '$1', isset(explode("\n\n", $section['content'])[1]) ? implode("\n\n", array_slice(explode("\n\n", $section['content']), 1)) : '') !!}
@elseif($section['id'] == 4) {!! $section['content'] !!} @elseif($section['id'] == 5)
{!! preg_replace('/\*\*(.+?)\*\*/', '$1', $section['content']) !!}
@elseif($section['id'] == 6)
{!! preg_replace('/\*\*(.+?)\*\*/', '$1', $section['content']) !!}
STEP 01
ANALYSIS & RESEARCH
STEP 02
DESIGN & STRATEGY
STEP 03
DEVELOPMENT & DEPLOY
@elseif($section['id'] == 7)
{!! preg_replace('/\*\*(.+?)\*\*/', '$1', $section['content']) !!}
WEEK 01
WEEK 03
WEEK 06
LAUNCH
@elseif($section['id'] == 8)
{!! preg_replace('/\*\*(.+?)\*\*/', '$1', $section['content']) !!}
OFFICIAL QUOTATION
CODE_SYNC_V16
STRATEGIC PARTNER

Investasi masa depan untuk keunggulan bisnis anda.

@elseif($section['id'] == 9)
100%

PROJECTED SUCCESS

{!! preg_replace('/\*\*(.+?)\*\*/', '$1', $section['content']) !!}
@elseif($section['id'] == 10)
{!! preg_replace('/\*\*(.+?)\*\*/', '$1', $section['content']) !!}

DEDICATED TEAM

Akses penuh ke tim ahli kami.

ON-TIME DELIVERY

Komitmen ketepatan waktu proyek.

24/7 SUPPORT

Siap membantu kapan saja dibutuhkan.

@else {!! preg_replace('/\*\*(.+?)\*\*/', '$1', $section['content']) !!} @endif
@endforeach
THANK YOU.
Kami percaya kerjasama ini akan membawa dampak transformasi digital yang signifikan bagi bisnis anda.

THE DARK AND BRIGHT

Your Strategic Digital Partner