@extends('dashboard.layouts.master')
@section('title', 'Attributes Values')
@section('content')
| ID |
Main Attribute |
Values |
Action |
@php
$groupedAttributes = collect($mainAttributes)->groupBy('main_attribute');
$rowNumber = 1;
@endphp
@forelse ($groupedAttributes as $mainAttr => $items)
@foreach ($items as $index => $mainAttribute)
{{-- Show main_attribute only for the first row in the group --}}
@if ($index === 0)
| {{ $rowNumber++ }} |
{{ $mainAttribute->main_attribute }} |
@endif
{{ trim($mainAttribute->values) }} |
Edit
|
@endforeach
@empty
| No Attribute Values found. |
@endforelse
{{-- --}}
@endsection