@extends('layouts.app')

@section('content')
<div class="container ">
    <div class="row mt-5 pt-1">
        <div class="col-md-12 col-lg-12 col-sm-12 col-xs-12">

<div class="row ">
                    @foreach ($data as $node)
                    <div class="col-md-8 col-lg-8 col-sm-8 col-xs-12 mb-1">
                     <div class="card " style=" box-shadow: 1px 3px 3px #ddd; border-radius: 30px;">


                <div class="card-body">

                    <!-- Electronics strore product card example -->
<div class="product-card p-0 mb-0 animate-underline hover-effect-opacity bg-body rounded">

  <div class="position-relative ">


    <a class="d-block p-0 p-sm-0" href="{!! route('frontend.items.details',['sku'=>$node['sku']]) !!}">


        <img src="{!! $node['items'][0]['image'] !!}" alt="VR Glasses" class="img img-fluid img-responsive" />

    </a>
  </div>
  <div class="mt-1 min-w-0  text-center">


    <h5 >

        <span class="animate-target" >{!!  \Illuminate\Support\Str::limit($node['items'][0]['title'],'35','...') !!}</span>

    </h5>
   <!-- <span class="fa fa-barcode">{!! $node['sku'] !!}</span> -->
    <span class="pt-2"><h4 class="text-danger text-center">Desde Gs. {!! number_format($node['items'][0]['price'], 0, ' ', '.') !!}</h4></span>
  </div>

  <div class="product-card-details ">
    <span class="position- top-0 start-0 w-100 bg-body mt-n2 py-2"></span>

    <ul class="list-unstyled d-flex flex-column  m-0">

         @foreach ($node['items'] as $item)


      <li class="d-flex align-items-center">
        <span class="fs-xs">{!! $item['business']!!}</span>
        <span class="d-block flex-grow-1 border-bottom border-dashed "></span>
        <span class="text-dark-emphasis fs-xs fw-medium text-end">Gs. {!! number_format($item['price'], 0, ' ', '.') !!}</span>
      </li>
     @endforeach
    </ul>

  </div>
</div>

      </div>
            </div>
            <br>
            </div>
                    @endforeach
            </div>
        </div>
    </div>
</div>
@endsection
