Fetch Product Details from URL
Paste a product URL (Amazon, Flipkart, etc.). We'll fetch the title, price, and description for your assisted purchase request.
Upload Product Image or Screenshot
Upload a product image, screenshot, or photo. Our AI will extract product name, price, brand, and details from the image. You can upload screenshots from your phone, computer, or any product photo.
Assisted Purchase
Create New Purchase Request
Pending Purchases
A delivery suite is required before you continue.
@php
$pendingRequests = collect();
if (!empty($requests) && is_iterable($requests)) {
foreach ($requests as $item) {
$queueMeta = is_array($item->meta) ? $item->meta : [];
$queuePathway = $queueMeta['checkout_pathway'] ?? '';
if (isset($item->status) && strtolower(trim($item->status)) === 'pending' && $queuePathway === '') {
$pendingRequests->push($item);
}
}
}
@endphp
@forelse($pendingRequests as $r)
@php
$itemMeta = is_array($r->meta) ? $r->meta : (json_decode($r->meta ?? '{}', true) ?: []);
$priceText = trim((string) ($r->price_range ?? ''));
$priceAmount = (float) preg_replace('/[^0-9.]/', '', str_replace(',', '', $priceText));
$overheadPercent = $r->overhead_percentage !== null ? (float) $r->overhead_percentage : null;
$finalAmount = $r->final_amount !== null ? (float) $r->final_amount : null;
$feeAmount = 0.0;
if ($r->overhead_amount !== null && (float) $r->overhead_amount > 0) {
$feeAmount = round((float) $r->overhead_amount, 2);
} elseif ($priceAmount > 0 && $overheadPercent !== null) {
$feeAmount = round($priceAmount * $overheadPercent / 100, 2);
} elseif ($priceAmount > 0 && $finalAmount !== null && $finalAmount > $priceAmount) {
$feeAmount = round($finalAmount - $priceAmount, 2);
}
if ($priceAmount <= 0 && $finalAmount !== null && $finalAmount > $feeAmount) {
$priceAmount = round($finalAmount - $feeAmount, 2);
}
$lineAmount = $priceAmount > 0 ? $priceAmount : (float) ($finalAmount ?? 0);
$usdToInr = !empty($currencyRates['USD_INR']) ? (float) $currencyRates['USD_INR'] : 0;
$finalUsd = ($finalAmount && $usdToInr > 0) ? $finalAmount / $usdToInr : null;
$size = $itemMeta['selected_size'] ?? '';
@endphp
@empty
@if($r->store)
{{ $r->store }}
@endif
@if($r->created_at)
@endif
{{ $r->title }}
@if($priceText !== '')
{{ $priceText }}
@endif
@if($overheadPercent !== null)
Overhead {{ rtrim(rtrim(number_format($overheadPercent, 2), '0'), '.') }}%
@endif
@if($finalAmount !== null)
Final ₹{{ number_format($finalAmount, 2) }}
@if($finalUsd !== null)
${{ number_format($finalUsd, 2) }}
@endif
@endif
No pending purchases found.
@endforelse
Purchase History
@php
$completedRequests = collect();
if (!empty($requests) && is_iterable($requests)) {
foreach ($requests as $item) {
$historyMeta = is_array($item->meta) ? $item->meta : [];
$historyPathway = $historyMeta['checkout_pathway'] ?? '';
$historyStatus = strtolower(trim((string) ($item->status ?? '')));
if ($historyStatus === 'completed' || ($historyStatus === 'pending' && $historyPathway !== '')) {
$completedRequests->push($item);
}
}
}
@endphp
@forelse($completedRequests as $r)
@php
$itemMeta = is_array($r->meta) ? $r->meta : [];
$pathway = strtolower((string) ($itemMeta['checkout_pathway'] ?? ''));
$payStatus = strtolower((string) ($itemMeta['payment_status'] ?? ''));
$latestPayment = $r->payments->first();
if ($latestPayment && strtolower((string) $latestPayment->payment_status) === 'failed' && !in_array($payStatus, ['success', 'completed'], true)) {
$payStatus = 'failed';
}
$isPaid = strtolower((string) $r->status) === 'completed' || in_array($payStatus, ['success', 'completed'], true);
$isFailed = !$isPaid && $pathway === 'a' && in_array($payStatus, ['failed', 'cancelled', 'canceled'], true);
$collection = $r->collectionRecords->firstWhere('pathway', $pathway);
$markedPaid = $pathway === 'b' && $collection && $collection->marked_status === 'paid';
$bankRecorded = $pathway === 'c' && $collection && $collection->transaction_id;
if ($isFailed) {
$statusLabel = 'Failed';
$statusClass = 'is-fail';
} elseif ($isPaid || $markedPaid || $bankRecorded) {
$statusLabel = $markedPaid ? 'Paid' : ($bankRecorded ? 'Recorded' : 'Completed');
$statusClass = 'is-done';
} else {
$statusLabel = 'Pending';
$statusClass = 'is-pending';
}
$pathwayLabel = $pathway === 'a' ? 'Card' : ($pathway === 'b' ? 'Maldives Post' : ($pathway === 'c' ? 'Bank' : ''));
$priceText = trim((string) ($r->price_range ?? ''));
$priceAmount = (float) preg_replace('/[^0-9.]/', '', str_replace(',', '', $priceText));
$overheadPercent = $r->overhead_percentage !== null ? (float) $r->overhead_percentage : null;
$finalAmount = $r->final_amount !== null ? (float) $r->final_amount : null;
$feeAmount = 0.0;
if ($r->overhead_amount !== null && (float) $r->overhead_amount > 0) {
$feeAmount = round((float) $r->overhead_amount, 2);
} elseif ($priceAmount > 0 && $overheadPercent !== null) {
$feeAmount = round($priceAmount * $overheadPercent / 100, 2);
} elseif ($priceAmount > 0 && $finalAmount !== null && $finalAmount > $priceAmount) {
$feeAmount = round($finalAmount - $priceAmount, 2);
}
if ($priceAmount <= 0 && $finalAmount !== null && $finalAmount > $feeAmount) {
$priceAmount = round($finalAmount - $feeAmount, 2);
}
$usdToInr = !empty($currencyRates['USD_INR']) ? (float) $currencyRates['USD_INR'] : 0;
$finalUsd = ($finalAmount && $usdToInr > 0) ? $finalAmount / $usdToInr : null;
$suiteAddress = null;
$suiteBadges = null;
if ($r->suite_number || $r->virtual_address_id) {
$suiteAddress = $r->virtualAddress;
if (!$suiteAddress && $r->suite_number && isset($deliverySuites)) {
$suiteAddress = $deliverySuites->firstWhere('suite_number', $r->suite_number);
}
$suiteBadges = $suiteAddress ? $suiteAddress->deliveryBadges() : null;
}
$needsCardPayment = $pathway === 'a' && !$isPaid;
@endphp
@empty
@if($suiteBadges)
@elseif($r->suite_number)
@endif
@if($r->store)
{{ $r->store }}
@endif
@if($pathwayLabel !== '')
{{ $pathwayLabel }}
@endif
@if($r->created_at)
@endif
{{ $suiteBadges['name'] }} - {{ $suiteBadges['phone'] }} ({{ $suiteBadges['label'] }})
{{ $suiteBadges['address'] }}
{{ $r->suite_number }}
{{ $r->title }}
@if($priceText !== '')
{{ $priceText }}
@endif
@if($overheadPercent !== null)
Overhead {{ rtrim(rtrim(number_format($overheadPercent, 2), '0'), '.') }}%
@endif
@if($finalAmount !== null)
Final ₹{{ number_format($finalAmount, 2) }}
@if($finalUsd !== null)
${{ number_format($finalUsd, 2) }}
@endif
@endif
@if($pathway === 'a')
{{ $statusLabel }}
@if($needsCardPayment)
@endif
@elseif($pathway === 'b')
@elseif($pathway === 'c')
@if($bankRecorded)
Recorded
@endif
@else
{{ $statusLabel }}
@endif
No purchases found.
@endforelse