@php // Convert hex accent color to rgb for rgba() usage in dompdf $accent = ltrim($profile->accent_color ?? '#FFB7C5', '#'); $ar = hexdec(substr($accent, 0, 2)); $ag = hexdec(substr($accent, 2, 2)); $ab = hexdec(substr($accent, 4, 2)); $accentRgb = "{$ar},{$ag},{$ab}"; $bg = $profile->bg_color ?? '#FFFBFE'; $text = $profile->text_color ?? '#374151'; $accentHex = '#' . $accent; @endphp Rate Card — {{ $profile->owner_name }}
@if($profile->logo_path && file_exists(storage_path('app/private/' . $profile->logo_path))) {{ $profile->owner_name }} @endif
{{ $profile->owner_name }}
@if($profile->tagline)
{{ $profile->tagline }}
@endif
@if($profile->ig_handle)· {{ '@' . ltrim($profile->ig_handle, '@') }}@endif @if($profile->tiktok_handle)· {{ '@' . ltrim($profile->tiktok_handle, '@') }}@endif @if($profile->youtube_handle)· {{ $profile->youtube_handle }}@endif
@foreach($rateCards as $platform => $cards)
@php $icons = ['instagram' => 'Instagram', 'tiktok' => 'TikTok', 'youtube' => 'YouTube', 'general' => 'General']; @endphp {{ $icons[$platform] ?? ucfirst($platform) }}
@foreach($cards as $card) @endforeach
Service Description Price
{{ $card->service_name }}
@if($card->content_type) {{ $card->content_type }} @endif
@if($card->description)
{{ $card->description }}
@endif
@if($profile->show_prices)
{{ $card->formatted_price }}
{{ str_replace('_', ' ', $card->price_unit) }}
@else
On Request
@endif @if($card->is_negotiable)
Negotiable
@endif
@endforeach @if(!empty($profile->past_brands)) @php $logoSizesPdf = [ 'small' => 'max-height:30px; max-width:60px;', 'medium' => 'max-height:45px; max-width:90px;', 'large' => 'max-height:65px; max-width:130px;', ]; $sizeStylePdf = $logoSizesPdf[$profile->brand_logo_size ?? 'medium'] ?? $logoSizesPdf['medium']; @endphp
Brand Collaborations
@foreach($profile->past_brands as $brandPath) @if(file_exists(storage_path('app/public/' . $brandPath))) @endif @endforeach
@endif @if($profile->terms_and_conditions)
Terms & Conditions
{!! $profile->terms_and_conditions !!}
@endif
@if($profile->contact_person_html)
{!! $profile->contact_person_html !!}
@else

CONTACT PERSON

@if($profile->whatsapp)
{{ $profile->whatsapp }}
(WHATS APP)
@endif @if($profile->email)
EMAIL
{{ strtoupper($profile->email) }}
@endif
Kami tidak bertanggung jawab atas segala bentuk kerjasama yg timbul dengan pihak selain dari kontak diatas
@endif