@extends('admin.layouts.main') @section('content')

@csrf
@foreach ($color as $c) @if ($c['color_code'] == 'Mixed') @else @endif @endforeach
{{-- --}}

Pizza Table

@foreach ($product as $p) @endforeach
ID Name Categories & Group Color image Price
{{ $p->product_id }} {{ $p->name }} {{ $p->categoryName }}| {{ $p->groupName }}
@foreach ($p->color as $c) @php $l = $color[array_search($c, array_column($color, 'name'))]['color_code']; @endphp @if ($l == 'Mixed')
@else
@endif @endforeach
@foreach ($p->image as $i) @endforeach
@endsection @section('scriptSource') @endsection