@props([
    'daysLeft',
    'upgradeUrl' => null,
])

@php
    $ctaUrl = $upgradeUrl ?? (route('dashboard.index') . '#dashboard-modules');
@endphp

<div class="card border-0 shadow-sm mb-4" style="background: {{ config('theme.gradients.primary') }};">
    <div class="card-body d-flex flex-column flex-md-row align-items-md-center justify-content-between gap-3 text-white">
        <div class="d-flex align-items-center gap-3">
            <span class="avatar avatar-md rounded d-inline-flex align-items-center justify-content-center flex-shrink-0 bg-white bg-opacity-10">
                <i class="fe fe-clock fs-20"></i>
            </span>
            <div>
                <div class="fw-semibold">{{ __('dashboard.subscription_status.trial') }}</div>
                <div class="small text-white-50">{{ __('dashboard.stats.trial_days') }}: {{ $daysLeft }}</div>
            </div>
        </div>

        <x-ui.buttons.primary :href="$ctaUrl" icon="fe fe-zap">
            {{ __('dashboard.upgrade_plan') }}
        </x-ui.buttons.primary>
    </div>
</div>

