@extends('layouts.app') @section('title', 'Deals of the Day') @section('content') @php $dealsFeeDefaults = $dealsFeeDefaults ?? \App\Models\BusinessFeeSetting::get()->dealsFormDefaults(); @endphp

Deals of the Day

@if(is_array($homeSectionAlert ?? null)) @endif
Orders completed {{ $dealStats['orders_completed'] ?? 0 }}
Cart adds @php $cartSessions = (int)($dealStats['cart_adds_unique_sessions'] ?? $dealStats['cart_adds'] ?? 0); $cartEvents = (int)($dealStats['cart_adds'] ?? 0); @endphp {{ $cartSessions }}@if($cartEvents > 0 && $cartEvents !== $cartSessions) ({{ $cartEvents }} eventos)@endif
Checkout adds @php $checkSessions = (int)($dealStats['checkout_adds_unique_sessions'] ?? $dealStats['checkout_adds'] ?? 0); $checkEvents = (int)($dealStats['checkout_adds'] ?? 0); @endphp {{ $checkSessions }}@if($checkEvents > 0 && $checkEvents !== $checkSessions) ({{ $checkEvents }} eventos)@endif
Views {{ $dealStats['views'] ?? 0 }}

Cart adds and Checkout adds = different people (unique sessions). If one person adds several items, it still counts as 1. All numbers are for the current deal period (active deal start–end). When the deal ends, stats reset to 0. Stats refresh every 5 minutes. Refresh stats now

Search results

Results appear here when you search.


Active deals

5 per page. Products currently in a deal, with countdown until prices are restored.

@include('deals.partials.active-deals-section', ['activeDeals' => $activeDeals])

@if(!empty($bestDeal))

Best deal so far (by performance)

Ranking: Orders completed → Checkout adds (personas) → Cart adds (personas) → Views.

Deal #{{ $bestDeal->id }}
Orders completed: {{ (int)($bestDeal->final_orders_completed ?? 0) }} @php $bestCheck = (int)($bestDeal->final_checkout_adds_unique_sessions ?? $bestDeal->final_checkout_adds ?? 0); @endphp Checkout adds: {{ $bestCheck }} @php $bestCart = (int)($bestDeal->final_cart_adds_unique_sessions ?? $bestDeal->final_cart_adds ?? 0); @endphp Cart adds: {{ $bestCart }} Views: {{ (int)($bestDeal->final_views ?? 0) }}
@endif

Recent deals

5 per page. Finished deals cannot be edited or deleted; create a new deal instead.

@include('deals.partials.recent-deals-section', ['deals' => $deals])
{{-- Modal: Deal stats (solo se abre al hacer clic en "Details") --}} @push('scripts') @endpush @endsection