๐ŸŽฏ Daily Tasks Calendar - {{ now()->format('F Y') }}

@php // ุงู„ุชุญู‚ู‚ ุฅุฐุง ูƒุงู† ุงู„ู…ุณุชุฎุฏู… ู…ูˆุฌูˆุฏู‹ุง ููŠ ุฌุฏูˆู„ tasks_user_progress $progress = \App\Models\Z_Website\Quests\TaskUserProgress::where( 'user_id', auth()->id(), )->first(); @endphp @if (!$progress)

Welcome to the Quest System!

Start your journey by choose char and clicking the button below:

@csrf
@else

๐Ÿ“… 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
@endif
@php // ุชุญู‚ู‚ ุฅุฐุง ุงู„ุดู‡ุฑ ุฎู„ุต $monthIsOver = $progress && now()->greaterThanOrEqualTo($progress->start_date->copy()->addMonth()); @endphp @if ($monthIsOver)
Your month has ended. You can reset your journey.
@else @if ($todaytask) @if ($charQuestTask && $charQuestTask->QuestData2 !== null && $charQuestTask->QuestData2 == 1)
Your Daily Task Complete
@else
Your 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 Image
@endif

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') }}

@else

Time Remaining: {{ $taskEndTime->diffForHumans() }}

@endif @endif @endif @else
No Task Found
@csrf
@endif @endif

๐ŸŽ Rewards

@foreach ($rewards as $reward) @endforeach
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_name }}

{{ $normalReward->reward_count }}x {{ $normalReward->reward_name }}

@if ($totalCompletedDays >= $reward->days_required) @if ($isClaimed) @else
@csrf
@endif @else

Not eligible yet

@endif @else

No 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_name }}

{{ $vipReward->reward_count }}x {{ $vipReward->reward_name }}

@if ($totalCompletedDays >= $reward->days_required) @if ($isVip) @if ($isVipClaimed) @else
@csrf
@endif @else Not Eligible

Not VIP

@endif @else

Not eligible yet

@endif @else

No Reward

@endif

Change your char!

Start your journey by choose char and clicking the button below:

@csrf
@endif