@if(isset($status))
@if ($status === 'success')
@elseif ($status === 'failure')
@elseif ($status === 'error')
@endif
@endif
@if ($user && $user->userTypeId == 1)
@include('user-web.layouts.footer')
@else
@include('business.layouts.footer')
@endif
Success
The payment was successfully captured.
Failure
Failed to capture the payment.
Error
{{ $responseData['error'] }}
@if ($user && $user->userTypeId == 1)
@include('user-web.layouts.sidebar')
@else
@include('business.layouts.sidebar')
@endif
HapiMart
@foreach($products as $product)
@php
$url = '';
if(isset($product->productImage)){
if(!empty($product->productImage)){
if(isset($product->productImage[0])){
$url = $product->productImage[0];
}else {
$url = '';
}
}
}
@endphp
@php
$app_url = env('APPLICATION_URL');
if(Auth::user()->userTypeId==1){
$route= $app_url.'product-detail/'.$product->productId;
}else{
$route= $app_url.'product-detail/'.$product->productId;
// $route= $app_url.'orderDetail/'.$order->orderId; old line of code
}
@endphp
@endforeach