Edit File: social-index.blade.php
<div> @if (session('status')) <x-alert :status="session('status')" :message="session('message')" /> @endif <x-slot name="header"> <di class="relative"> <h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight text-center"> {{ __('Daftar Sosial Media') }} </h2> <x-admin.new routeName="admin.social" /> </di> </x-slot> <div class="py-12"> <div class=" mx-auto sm:px-6 lg:px-8"> <div class="bg-white dark:bg-gray-800 overflow-hidden shadow-sm sm:rounded-lg text-sm lg:text-base"> @if(count($socials) != 0) <x-display-table :columns="['logo', 'name', 'display text', 'link','urutan','actions']" routeName="admin.social"> @foreach ($socials as $social) <tbody> <tr class="hover:bg-red-600/25"> <td class="text-center py-2 border border-black dark:border-white"><img src="{{$social->logo}}" alt="logo {{$social->name}}" class="w-8 h-8 mx-auto"></td> <td class="text-center border border-black dark:border-white py-2">{{$social->name}}</td> <td class="text-center border border-black dark:border-white py-2">{{$social->display_text}}</td> <td class="text-center border border-black dark:border-white py-2">{{$social->link}}</td> <td class="text-center border border-black dark:border-white py-2">{{$social->order}}</td> <td class="text-center border border-black dark:border-white "><a href="{{route('admin.social.edit', $social->id)}}"><x-primary-button>EDIT</x-primary-button></a></td> <td class="text-center border border-black dark:border-white "><x-danger-button type="button" wire:click="delete({{$social->id}})" wire:confirm="Are you sure?"> Delete </x-danger-button></td> </tr> </tbody> @endforeach </x-display-table> @else <h1 class="text-3xl text-center p-8">Tidak Ada Akun Sosmed Terdaftar</h1> @endif </div> </div> </div> </div>
Back