@extends('layouts.portal_theme_01') @section('customcss') @section('content') @php $collection_id = $response['collection_id']; $data = $response['data']??[]; $collections = []; @endphp @foreach($data['collections'] as $collection) @php $collections[] = [ 'collection_id' => $collection['collection_id'] , 'collection_name' => $collection['collection_name'], 'total_products' => count($collection['products']), ]; @endphp @endforeach @php $collections = array_map( "unserialize", array_unique( array_map("serialize", $collections) ) ); // echo __FUNCTION__ . json_encode($data); // echo __FUNCTION__ . json_encode($collections); // exit; @endphp
{{ $collection['collection_name'] }}
{{ $product['description'] }}
--}} {{-- {{ $product['store']['store_name'] }}--}} {{--
--}}