@if($activeDeals->isEmpty())
No active deals.
@else| Image | Product | Deal applied | Compare discount | Time left | Actions |
|---|---|---|---|---|---|
|
@if($dp->image_url)
|
{{ $dp->title }} |
@if($deal->profit_type === 'percentage')
{{ number_format($deal->profit_value, 0) }}% profit
@else
${{ number_format($deal->profit_value, 2) }} profit
@endif
Cost {{ $dp->cost !== null ? '$' . number_format($dp->cost, 2) : '—' }} Sale ${{ number_format($dp->deal_price, 2) }} |
@if(($deal->compare_at_mode ?? 'use_original') === 'use_original') Previous price @else {{ number_format($deal->compare_discount_percent ?? 0, 0) }}% off @endif | -- | @if($loop->first && Route::has('deals.edit')) Edit @elseif($loop->first) @else — @endif |