@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
| 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
|