@extends('layouts.admin') @section('title', 'Inquiry Details #' . $inquiry->id) @section('admin-content')
Admin Review
@if($inquiry->admin_status == 'pending') Pending Review @elseif($inquiry->admin_status == 'assigned') Assigned @else Rejected @endif
@if($inquiry->admin_status == 'pending')
This inquiry is awaiting admin review.
@else
Assigned/Rejected by:
{{ $inquiry->assignedBy->name ?? 'System' }}
Date:
{{ $inquiry->assigned_at?->format('d M Y, H:i') ?? 'N/A' }}
@if($inquiry->admin_notes)
Admin Notes:
{{ $inquiry->admin_notes }}
@endif
@if($inquiry->admin_status == 'assigned' && $inquiry->seller->canReceiveNotifications())
Seller was notified about this assignment.
@elseif($inquiry->admin_status == 'assigned')
Seller NOT notified (notifications disabled).
@endif @endif
Inquiry Message
@if($inquiry->status == 'new') New @else Responded @endif

{{ $inquiry->message }}

@if($inquiry->product)
Product Inquired

{{ $inquiry->product->name }} - ₹{{ number_format($inquiry->product->price, 2) }}

@endif @if($inquiry->seller_response)
Seller Response

{{ $inquiry->seller_response }}

Responded on {{ $inquiry->responded_at?->format('d M Y H:i') }}
@endif
Timeline
Inquiry Submitted
{{ $inquiry->created_at->format('d M Y, H:i') }}
@if($inquiry->assigned_at)
{{ $inquiry->admin_status == 'assigned' ? 'Assigned by Admin' : 'Rejected by Admin' }}
{{ $inquiry->assigned_at->format('d M Y, H:i') }} - {{ $inquiry->assignedBy->name ?? 'System' }}
@endif @if($inquiry->seller_viewed_at)
Viewed by Seller
{{ $inquiry->seller_viewed_at->format('d M Y, H:i') }}
@endif @if($inquiry->responded_at)
Seller Responded
{{ $inquiry->responded_at->format('d M Y, H:i') }}
@endif
Buyer Information
Name
{{ $inquiry->name }}
@if($inquiry->phone) @endif @if($inquiry->buyer)
Registered Buyer
@else
Guest Inquiry
@endif
Seller Information
@if($inquiry->seller)
@if($inquiry->seller->logo) @else
{{ strtoupper(substr($inquiry->seller->company_name, 0, 1)) }}
@endif
{{ $inquiry->seller->company_name }}
{{ $inquiry->seller->city }}, {{ $inquiry->seller->state }}
@if($inquiry->seller->hasActiveSubscription()) Paid Seller Auto-notified on new inquiries @else Free Seller Notifications: @if($inquiry->seller->notification_enabled) Enabled @else Disabled @endif @endif
View Seller Profile @if(!$inquiry->seller->hasActiveSubscription()) @endif @else

Seller data not available.

@endif
Back to Inquiries
@endsection