@extends('layouts.business') @section('title', 'Offer Details') @section('content')

{{ $offer->title }}

{{ $offer->venue->name }}

Edit Offer Back

Total Redemptions

{{ $stats['total_redemptions'] }}

Total Views

{{ $stats['views'] }}

Conversion Rate

{{ $stats['conversion_rate'] }}%

Status

{{ ucfirst($offer->status) }}
@if($offer->image) {{ $offer->title }} @endif
Description

{{ $offer->description }}

@if($offer->terms_and_conditions)
Terms & Conditions

{{ $offer->terms_and_conditions }}

@endif
Recent Redemptions
@forelse($offer->redemptions->take(10) as $redemption) @empty @endforelse
User Date Code Status
{{ $redemption->user->name ?? 'N/A' }} {{ $redemption->redeemed_at ? $redemption->redeemed_at->format('M d, Y H:i') : 'N/A' }} {{ $redemption->code }} {{ ucfirst($redemption->status) }}
No redemptions yet
{{-- json array images--}}
Offer Images
@foreach(json_decode($offer->images ?? '[]') as $image)
Offer Image
@endforeach
Offer Information
Offer Type

{{ ucfirst($offer->offer_type) }}

Discount Type

{{ ucfirst(str_replace('_', ' ', $offer->discount_type)) }}

Discount Value

{{ $offer->discount_type === 'percentage' ? $offer->discount_value . '%' : 'AED ' . $offer->discount_value }}

@if($offer->original_price)
Original Price

AED {{ number_format($offer->original_price, 2) }}

@endif @if($offer->discounted_price)
Discounted Price

AED {{ number_format($offer->discounted_price, 2) }}

@endif
Valid From

{{ $offer->start_date ? $offer->start_date->format('M d, Y') : 'N/A' }}

Valid Until

{{ $offer->end_date ? $offer->end_date->format('M d, Y') : 'N/A' }}

@if($offer->max_redemptions)
Max Redemptions

{{ $offer->redemption_count }} / {{ $offer->max_redemptions }}

@endif @if($offer->max_redemptions_per_user)
Per User Limit

{{ $offer->max_redemptions_per_user }}

@endif
Quick Actions
Edit Offer
@endsection @push('scripts') @endpush