๐ฏ Daily Tasks Calendar - {{ now()->format('F Y') }}
Welcome to the Quest System!
Start your journey by choose char and clicking the button below:
๐ Progress Details
- CharName: {{ $currentChar->char->CharName16 ?? 'No Character Assigned' }}
- Status: @if ($currentChar && $currentChar->isVip()) ๐ฅ VIP @else Normal @endif
- Start Date: {{ $progress->start_date->format('Y-m-d') }}
- Next Reset: {{ $progress->start_date->copy()->addMonth()->format('Y-m-d') }}
๐ฏ Total Completed Days: {{ $totalCompletedDays }}
@if (!$currentChar->isVip())
๐ Upgrade to VIP for 500 ๐ Balance for this month
@endifYour month has ended. You can reset your journey.
@else @if ($todaytask) @if ($charQuestTask && $charQuestTask->QuestData2 !== null && $charQuestTask->QuestData2 == 1)Your Daily Task Complete
@elseYour Daily Task :
@php $taskImage = optional($todaytask->task)->task_image; $imagePath = $taskImage && Str::startsWith($taskImage, ['http://', 'https://']) ? $taskImage : ($taskImage ? asset($taskImage) : null); @endphp @if (!empty($taskImage))Task Name: {{ $todaytask->task->task_name ?? 'Task not found' }}
@endif @if ($todaytask->is_completed)Task Completed โ
@else @if ($todaytask->task->duration_seconds > 0) @php $taskEndTime = $todaytask->created_at->addSeconds(intval($todaytask->task->duration_seconds)); $isExpired = now()->greaterThan($taskEndTime); @endphp @if ($isExpired)Task expired at: {{ $taskEndTime->format('H:i:s') }}
@elseTime Remaining: {{ $taskEndTime->diffForHumans() }}
@endif @endif @endif @elseNo Task Found
@endif @endif๐ Rewards
| Days Required | Normal Rewards | VIP Rewards |
|---|---|---|
| {{ $reward->days_required }} @if (in_array($reward->days_required, $completedDays)) โ @endif |
@php
$normalReward = \App\Models\Z_Website\Quests\TaskReward::find(
$reward->normal_reward,
);
$isClaimed = \App\Models\Z_Website\Quests\TasksUserReward::where(
'user_id',
auth()->id(),
)
->where('reward_id', $reward->normal_reward)
->where('reward_type', 'Normal')
->value('is_claimed');
@endphp
@if ($normalReward)
{{ $normalReward->reward_count }}x {{ $normalReward->reward_name }} @if ($totalCompletedDays >= $reward->days_required) @if ($isClaimed) @else @endif @elseNot eligible yet @endif @elseNo Reward @endif |
@php
$vipReward = \App\Models\Z_Website\Quests\TaskReward::find(
$reward->vip_reward,
);
$isVip = auth()->user()->isVip();
$isVipClaimed = \App\Models\Z_Website\Quests\TasksUserReward::where(
'user_id',
auth()->id(),
)
->where('reward_id', $reward->vip_reward)
->where('reward_type', 'VIP')
->value('is_claimed');
@endphp
@if ($vipReward)
{{ $vipReward->reward_count }}x {{ $vipReward->reward_name }} @if ($totalCompletedDays >= $reward->days_required) @if ($isVip) @if ($isVipClaimed) @else @endif @else
Not VIP @endif @elseNot eligible yet @endif @elseNo Reward @endif |
Change your char!
Start your journey by choose char and clicking the button below: