@php $site_favicon = get_attachment_image_by_id(get_static_option('site_favicon'), 'full', false); $is_rtl = get_user_lang_direction() === 'rtl'; $alignEnd = $is_rtl ? 'text-right' : 'text-left'; @endphp @if ($site_favicon) @endif
{{-- Header --}} @if (get_static_option('site_logo'))cURL error: ' . curl_error($ch) . '
'; } curl_close($ch); if ($image !== false) { return $image; } } return false; } $base64Image = ''; if ($logoUrl) { $imageContents = fetchImageContents($logoUrl); if ($imageContents !== false) { $ext = strtolower(pathinfo(parse_url($logoUrl, PHP_URL_PATH), PATHINFO_EXTENSION)); $mimeTypes = [ 'png' => 'image/png', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'gif' => 'image/gif', 'bmp' => 'image/bmp', 'svg' => 'image/svg+xml', ]; $mimeType = $mimeTypes[$ext] ?? 'image/png'; $base64Image = 'data:' . $mimeType . ';base64,' . base64_encode($imageContents); } else { echo 'Failed to fetch image contents from URL.
'; } } else { echo 'No valid logo URL found.
'; } @endphp @if ($base64Image)|
{{ __('Order ID') }} #000{{ $order->id }} {{ __('Invoice ID') }} #{{ $order->invoice_no }} {{ __('Invoice Date') }}: {{ \Carbon\Carbon::now()->toDateString() }} |
{{ __('Order Invoice') }} |
@else
{{ __('Order Invoice') }} |
{{ __('Order ID') }} #000{{ $order->id }} {{ __('Invoice ID') }} #{{ $order->invoice_no }} {{ __('Invoice Date') }}: {{ \Carbon\Carbon::now()->toDateString() }} |
@endif
| {{ __('Client') }} | {{ __('Freelancer') }} | @else{{ __('Freelancer') }} | {{ __('Client') }} | @endif||
|---|---|---|---|---|---|
|
@if ($order?->user->fullname)
{{ $order?->user->fullname }} @endif |
@if ($order?->freelancer->fullname)
{{ $order?->freelancer->fullname }} @endif |
@else
@if ($order?->freelancer->fullname)
{{ $order?->freelancer->fullname }} @endif |
@if ($order?->user->fullname)
{{ $order?->user->fullname }} @endif |
@endif
| {{ __('Sub total') }} | {{ __('Price') }} | {{ __('Quantity') }} | {{ __('Description') }} | @else{{ __('Description') }} | {{ __('Quantity') }} | {{ __('Price') }} | {{ __('Sub total') }} | @endif
|---|---|---|---|---|---|---|---|
| {{ float_amount_with_currency_symbol($order->price - ($order->transaction_amount + $order->commission_amount)) }} | {{ float_amount_with_currency_symbol($order->price - ($order->transaction_amount + $order->commission_amount)) }} | 1 |
{{ __('Order Date:') }} {{ $order->created_at->toFormattedDateString() }} |
@else
{{ __('Order Date:') }} {{ $order->created_at->toFormattedDateString() }} |
1 | {{ float_amount_with_currency_symbol($order->price - ($order->transaction_amount + $order->commission_amount)) }} | {{ float_amount_with_currency_symbol($order->price - ($order->transaction_amount + $order->commission_amount)) }} | @endif
| {{ float_amount_with_currency_symbol($order->transaction_amount) }} | {{ __('Transaction fee') }} | @else | {{ __('Transaction fee') }} | {{ float_amount_with_currency_symbol($order->transaction_amount) }} | @endif|||
| {{ float_amount_with_currency_symbol($order->commission_amount) }} | {{ __('Commission amount') }} | @else | {{ __('Commission amount') }} | {{ float_amount_with_currency_symbol($order->commission_amount) }} | @endif|||
| {{ float_amount_with_currency_symbol($order->price) }} | {{ __('Total amount') }} | @else | {{ __('Total amount') }} | {{ float_amount_with_currency_symbol($order->price) }} | @endif|||
{{ __('Amount in words') }}: {{ \Terbilang::make($order->price) }}
@if ($order->description){{ __('Notes') }}: {{ __(Str::limit($order->description, 300)) ?? '' }}
@endif