35 lines
996 B
PHP
35 lines
996 B
PHP
|
@php
|
||
|
use App\Models\Platform;
|
||
|
|
||
|
$platforms = Platform::all()->sortBy('name');
|
||
|
@endphp
|
||
|
<x-base-layout>
|
||
|
|
||
|
<!--begin::Row-->
|
||
|
<div class="row gy-5 g-xl-8">
|
||
|
<!--begin::Col-->
|
||
|
<div class="col-xxl-8">
|
||
|
<div class="card shadow-sm mb-2">
|
||
|
<div class="card-header">
|
||
|
<h3 class="card-title">Platforms</h3>
|
||
|
</div>
|
||
|
<div class="card-body">
|
||
|
<ul>
|
||
|
@foreach ($platforms as $platform)
|
||
|
|
||
|
@php
|
||
|
$platformName = str_replace('/', '_', str_replace(' ', '_', $platform->name));
|
||
|
@endphp
|
||
|
|
||
|
<li><a href="{{ route('platform.show', $platformName) }}">{{ $platform->name }}</a></li>
|
||
|
@endforeach
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!--end::Col-->
|
||
|
</div>
|
||
|
<!--end::Row-->
|
||
|
|
||
|
</x-base-layout>
|