@extends('dashboard.layouts.master') @section('title', 'Promotion Detail | Admin Panel') @push('after-styles') @endpush @section('content')
{{-- Header --}}

Promotion Detail

{{ __('backend.dashboard') }} / Promotion Queue / {{ $businessName }}
{{-- Status Strip --}}
Current Status: {!! \App\Models\Promotion::statusBadge($promotion->status) !!} @if($promotion->reviewed_at) Reviewed {{ \Carbon\Carbon::parse($promotion->reviewed_at)->format('Y-m-d H:i') }} @if($promotion->reviewer) by {{ $promotion->reviewer->name }} @endif @endif
{{-- Action Buttons --}} @if($canApprove && $promotion->status !== 'approved')
@if($promotion->status !== 'approved') @endif @if($promotion->status !== 'rejected') @endif @if($promotion->status !== 'hold') @endif
@endif
{{-- Detail Grid --}}

Promotion Information

Business Owner{{ $businessName }}
Promotion Type{{ $promotion->promotionType->name ?? 'N/A' }}
Amount${{ number_format($promotion->amount, 2) }}
Payment Mode{{ ucfirst($promotion->payment_mode) }}
Payment Status{!! \App\Models\Promotion::paymentStatusBadge($promotion->payment_status) !!}
Start Date{{ $promotion->start_date ? $promotion->start_date->format('Y-m-d') : '—' }}
End Date{{ $promotion->end_date ? $promotion->end_date->format('Y-m-d') : '—' }}
Active @if($promotion->is_active) Yes @else No @endif @if($canActivate) @endif
Requested On{{ $promotion->created_at->format('Y-m-d H:i') }}

Notes & Remarks

@if($promotion->notes)

Admin Notes:
{{ $promotion->notes }}

@endif @if($promotion->rejection_reason)
Rejection Reason:
{{ $promotion->rejection_reason }}
@endif @if(!$promotion->notes && !$promotion->rejection_reason)

No notes recorded.

@endif
@if($canApprove && $promotion->payment_mode === 'offline' && $promotion->payment_status !== 'paid')

Offline Payment

Confirm that offline payment has been received before approving.

@endif
{{-- Footer --}}
{{-- ── Modals ───────────────────────────────────────────────────────── --}} {{-- Approve Modal --}} @if($canApprove) {{-- Reject Modal --}} {{-- Hold Modal --}} @endif @endsection @push('after-scripts') @endpush