same id will show only one time not multiple

Here is my ‘index.blade.php’. I can show all id stored in my database. You can see it in the below image. Where id 1 has two times and id 2 have three times. But I want to keep all id in the database and the same id only once like id 1 will show one time but in the database will have two times and id 2 will show one time but in the database will have three times. How to do id.

enter image description here

I can view all id by doing this to my HomeController.php

public function index()
{
   $data = Score::all();
   return view('home', compact(
      'data'
   ));
}

This is my index.blade.php

@foreach ($data as $key => $row )
   <a class="btn btn-outline-info" >
            <div style="color: #1d2124">{{ $row->match_id }}</div>
   </a>
@endforeach