Files
ladill-hosting/resources/views/partials/sidebar-support.blade.php
T
isaaccladandCursor 98eee39665
Deploy Ladill Hosting / deploy (push) Successful in 38s
Add app-specific mail branding and sidebar Support links.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-08 20:11:27 +00:00

24 lines
2.0 KiB
PHP

@php
$useInternal = $internal ?? false;
if ($useInternal) {
$supportUrl = route('user.support-tickets.index');
$openExternal = false;
} else {
$supportUrl = function_exists('ladill_account_url')
? ladill_account_url('/support-tickets')
: 'https://'.config('app.account_domain', 'account.ladill.com').'/support-tickets';
$openExternal = true;
}
@endphp
<a href="{{ $supportUrl }}"
@if($openExternal) target="_blank" rel="noopener" @endif
class="group flex items-center gap-3 rounded-lg px-3 py-2 text-[13px] text-slate-600 transition hover:bg-slate-50 hover:text-slate-900">
<svg class="h-[18px] w-[18px] shrink-0 text-slate-400 group-hover:text-slate-500" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true">
<path stroke-linecap="round" stroke-linejoin="round" d="M16.712 4.33a9.027 9.027 0 0 1 1.652 1.306c.51.51.944 1.064 1.306 1.652M16.712 4.33l-3.448 4.138m3.448-4.138a9.014 9.014 0 0 0-9.424 0M19.67 7.288l-4.138 3.448m4.138-3.448a9.014 9.014 0 0 1 0 9.424m-4.138-5.976a3.736 3.736 0 0 0-.88-1.388 3.737 3.737 0 0 0-1.388-.88m2.268 2.268a3.765 3.765 0 0 1 0 2.528m-2.268-4.796a3.765 3.765 0 0 0-2.528 0m4.796 4.796c-.181.506-.475.982-.88 1.388a3.736 3.736 0 0 1-1.388.88m2.268-2.268 4.138 3.448m0 0a9.027 9.027 0 0 1-1.306 1.652c-.51.51-1.064.944-1.652 1.306m0 0-3.448-4.138m3.448 4.138a9.014 9.014 0 0 1-9.424 0m5.976-4.138a3.765 3.765 0 0 1-2.528 0m0 0a3.736 3.736 0 0 1-1.388-.88 3.737 3.737 0 0 1-.88-1.388m2.268 2.268L7.288 19.67m0 0a9.024 9.024 0 0 1-1.652-1.306 9.027 9.027 0 0 1-1.306-1.652m0 0 4.138-3.448M4.33 16.712a9.014 9.014 0 0 1 0-9.424m4.138 5.976a3.765 3.765 0 0 1 0-2.528m0 0c.181-.506.475-.982.88-1.388a3.736 3.736 0 0 1 1.388-.88m-2.268 2.268L4.33 7.288m6.406 1.18L7.288 4.33m0 0a9.024 9.024 0 0 0-1.652 1.306A9.025 9.025 0 0 0 4.33 7.288"/>
</svg>
<span class="flex-1 truncate">Support</span>
@if($openExternal)
<span class="text-[10px] text-slate-400" aria-hidden="true"></span>
@endif
</a>