@extends('app') @section('content')

Group Product

{{-- Start table --}}
@if(Session::has('response')) {!!Session::get('response')['message']!!} @endif {{-- {{$groupProducts->product_support}} --}} @forelse ($groupProducts as $gp) @php $total = 0; @endphp @empty @endforelse
SL Product Set Name Product discount Regular Rate Total Status Action
{{++$loop->index}} {{$gp->group_product_name}} @forelse ($gp->product_support as $item) @php $total = $total + $item->product->rate; if($loop->index % 2 === 0){ @endphp {{$item->product->product_name}} @php }elseif ($loop->index % 3 === 0) { @endphp {{$item->product->product_name}} @php }else{ @endphp {{$item->product->product_name}} @php } @endphp @empty

No data

@endforelse
{{$gp->discount}} {{$total}} {{$gp->total}}
@csrf @method('delete')
@csrf @method('patch')
No data founds!
{{-- {{$groupProducts}} --}} {{-- {{$products->links()}} --}}
{{-- end table--}}
@endsection @push('scripts') @endpush