@extends('layouts.app') @section('content') @include('includes.bread_crumb_with_header', [ 'header' => 'Products', 'bread_crumbs' => ['Dashboard' => ""], ])
@csrf
@if(\Request::is('products/search')) @else @endif
@csrf
@if(\Request::is('products/search')) @else @endif
@foreach ($products as $productIndex => $product) @php $price = $variants[$productIndex]['getVariants'][0]->price; $rsp = $variants[$productIndex]['getVariants'][0]->rsp; $quantity = $variants[$productIndex]['getVariants'][0]->quantity; $profitAfterEbayFee =$rsp - $price; @endphp @if($product->status != 1)
@if($product->recommend == 1 && \App\Helper\Service\UserService::getUserPlanTypeSlug(\Illuminate\Support\Facades\Auth::user()->id) != \App\Models\Plan::STARTER_SLUG) Recommended @endif @if($product->isImported)
@endif
{{ substr_replace($variants[$productIndex]['title'], " ...",40) }}
Price
£ {{ $price }}
Rsp
£ {{ $rsp }}
Profit after e b a y fees
£ {{ $profitAfterEbayFee }}

dispatch time :

{{ $product->dispatch_time }} Days

quantity :

{{ $quantity }}

@endif @endforeach {{ $products->links() }}
@endsection @push('script') {{-- ADD PRODUCT MODAL --}} {{-- ADD PRODUCT MODAL --}} @endpush