@extends('layouts.app') @section('content') @include('includes.bread_crumb_with_header', [ 'header' => 'Products', 'bread_crumbs' => ['Dashboard' => "", 'recommended' => ''], ])
@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 && $product->recommend == 1)
Recommended @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