@extends('backEnd.admin.layouts.master') @section('title') User Product Assign @endsection @php $data = $data ?? []; @endphp @section('body')
{{--
--}} {{--
@if(Auth::guard('admin')->check())
@csrf
@endif
--}}
@php($i =1) @if($data->count() > 0) @foreach($data as $item) @endforeach @else @endif
SL. Name Email Products
{{$i++}} {{$item->name}} {{$item->email}} @foreach($item->get_products as $key => $product) @if($key!=0)
@endif {{++$key.') '}}{{$product->get_product->name}} @endforeach
No Data Found!
@endsection