<div>
    <div class="px-4">
        <div class="sm:flex sm:flex-col sm:items-center">
            <div class="flex flex-col md:flex-row justify-between w-full my-4">
                <h1 class="text-base font-semibold leading-6 text-gray-900">Logs</h1>
            </div>
            <div class="flex flex-col md:flex-row mt-4 items-center md:justify-between w-full gap-2">

            </div>
        </div>
        <div class="mt-8 flow-root">
            <div class="">
                <div class="relative">
                    <div class="inline-block min-w-full py-2 align-middle">
                        <table class="min-w-full divide-y divide-gray-300">
                            <thead>
                            <tr>
                                <th scope="col"
                                    class="py-3.5 pl-4 pr-3 text-left text-sm font-semibold text-gray-900 sm:pl-6 lg:pl-8">
                                    {{__('Date')}}
                                </th>
                                <th scope="col" class="px-3 py-3.5 text-left text-sm font-semibold text-gray-900">
                                    {{__('Open')}}
                                </th>
                            </tr>
                            </thead>
                            <tbody class="divide-y divide-gray-200 bg-white">
                            @foreach($logs as $log)
                                <tr>
                                    <td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900 sm:pl-6 lg:pl-8">{{ $log->name }}</td>
                                    <td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
                                       <button wire:click="download('{{ $log->name }}')">Open</button>
                                    </td>
                                </tr>
                            @endforeach
                            </tbody>
                        </table>
                    </div>
                    <div class="pt-4 flex justify-between items-center">
                        <div class="text-gray-700 text-sm">
                            Results: {{  $logs->count() }}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

