@extends('layouts.app') @section('title', 'Assisted Purchase') @push('styles') @endpush @section('content')
Loading...

Loading...

Assisted Purchase

Let our AI-powered shopping assistant help you purchase items from any Indian e-commerce store.

Fetch Product Details from URL
@foreach(\App\Support\AssistedStoreIcon::sites() as $site) {{ $site['label'] }} {{ $site['label'] }} @endforeach
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.

Supported: Screenshots (PNG, JPG), Photos (JPG, PNG, WebP) - Max 10MB
Preview
Product image

Create New Purchase Request
This field will be automatically filled after fetching product details
This field will be automatically filled after fetching product details
This field will be automatically filled after fetching product details
Price is required. Please fetch product details first. Submit cannot be completed without price.
Overhead percentage will be calculated based on price
Final amount including overhead
My Carts
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 ?? '')); $unitAmount = (float) preg_replace('/[^0-9.]/', '', str_replace(',', '', $priceText)); $lineQty = max(1, (int) ($r->quantity ?? 1)); $goodsAmount = ($r->sub_amount !== null && (float) $r->sub_amount > 0) ? (float) $r->sub_amount : round($unitAmount * $lineQty, 2); $overheadPercent = $r->overhead_percentage !== null ? (float) $r->overhead_percentage : null; $feeAmount = 0.0; if ($r->overhead_amount !== null && (float) $r->overhead_amount > 0) { $feeAmount = round((float) $r->overhead_amount, 2); } elseif ($goodsAmount > 0 && $overheadPercent !== null) { $feeAmount = round($goodsAmount * $overheadPercent / 100, 2); } $finalAmount = $r->final_amount !== null ? (float) $r->final_amount : round($goodsAmount + $feeAmount, 2); $unitLabel = $priceText !== '' ? $priceText : ('₹' . number_format($unitAmount, 2)); $iconUrl = $r->store_icon ? asset($r->store_icon) : asset('images/assisted-stores/other.svg'); $cartPhotos = is_array($itemMeta['images'] ?? null) ? $itemMeta['images'] : []; @endphp
@empty @endforelse
Awaiting Payments
@forelse(($awaitingPayments ?? collect()) as $payment) @include('kuser.partials.assisted-purchase-payment-card', ['payment' => $payment]) @empty @endforelse
@once @include('wuser.partials.delivery-badge-styles') @endonce
Purchase History
@forelse(($historyPayments ?? collect()) as $payment) @include('kuser.partials.assisted-purchase-payment-card', ['payment' => $payment]) @empty @endforelse
@include('kuser.partials.surface-styles') @endsection @push('scripts') @endpush