@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->email)✉ {{ $profile->email }}@endif @if($profile->whatsapp)· {{ $profile->whatsapp }}@endif @if($profile->ig_handle)· @{{ $profile->ig_handle }}@endif @if($profile->tiktok_handle)· @{{ $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