@extends('layouts.admin') @section('page-title', 'Campaign Request Details') @section('content')

Campaign Request

Request Details

Campaign

@if($campaignRequest->campaign) {{ $campaignRequest->campaign->name }} @else Not assigned @endif

Status

@php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-700', 'approved' => 'bg-green-100 text-green-700', 'rejected' => 'bg-red-100 text-red-700', ]; @endphp {{ ucfirst($campaignRequest->status) }}

Seller

{{ $campaignRequest->vendor->user->name ?? $campaignRequest->vendor->name ?? '-' }}

Shop

{{ $campaignRequest->vendor->name ?? '-' }}

Product

{{ $campaignRequest->product->name ?? '-' }}

Discount

@if($campaignRequest->discount) {{ $campaignRequest->discount }}{{ $campaignRequest->discount_type === 'percentage' ? '%' : '' }} ({{ $campaignRequest->discount_type }}) @else - @endif

Description

{{ $campaignRequest->description ?: '-' }}

@if($campaignRequest->admin_notes)

Admin Notes

{{ $campaignRequest->admin_notes }}

@endif

Requested

{{ $campaignRequest->created_at->format('M d, Y H:i') }}

@if($campaignRequest->approved_at)

Approved

{{ $campaignRequest->approved_at->format('M d, Y H:i') }}

by {{ $campaignRequest->approver->name ?? 'Admin' }}

@endif
@if($campaignRequest->status === 'pending')
@endif
{{-- Approve Modal --}} {{-- Reject Modal --}} @endsection