This commit is contained in:
Bozhidar 2024-05-13 16:45:26 +03:00
parent 75db2ccd8b
commit b6e66da6f6
2 changed files with 6 additions and 4 deletions

View file

@ -5,6 +5,7 @@ namespace App\Filament\Resources\HostingSubscriptionResource\Pages;
use App\Filament\Resources\HostingSubscriptionResource; use App\Filament\Resources\HostingSubscriptionResource;
use Filament\Actions; use Filament\Actions;
use Filament\Resources\Pages\EditRecord; use Filament\Resources\Pages\EditRecord;
use Filament\Resources\Pages\Page;
use Filament\Resources\Pages\ViewRecord; use Filament\Resources\Pages\ViewRecord;
class ViewHostingSubscription extends ViewRecord class ViewHostingSubscription extends ViewRecord
@ -16,6 +17,7 @@ class ViewHostingSubscription extends ViewRecord
public static function getPages(): array public static function getPages(): array
{ {
return [ return [
]; ];
} }
@ -25,4 +27,5 @@ class ViewHostingSubscription extends ViewRecord
]; ];
} }
} }

View file

@ -58,7 +58,6 @@
</div> </div>
@if(!empty($files))
<div class="overflow-hidden bg-white shadow ring-1 ring-black ring-opacity-5 md:rounded-lg mt-4"> <div class="overflow-hidden bg-white shadow ring-1 ring-black ring-opacity-5 md:rounded-lg mt-4">
<table class="w-full"> <table class="w-full">
<thead> <thead>
@ -86,6 +85,7 @@
</tr> </tr>
@endif @endif
@if(!empty($files))
@foreach($files as $file) @foreach($files as $file)
<tr wire:click="goto('{{$file['name']}}')" wire:key="{{md5($file['name'])}}" class="transition border border-slate-200 cursor-pointer hover:bg-gray-100 p-4"> <tr wire:click="goto('{{$file['name']}}')" wire:key="{{md5($file['name'])}}" class="transition border border-slate-200 cursor-pointer hover:bg-gray-100 p-4">
<td class="w-6 p-4"> <td class="w-6 p-4">
@ -158,10 +158,9 @@
</td> </td>
</tr> </tr>
@endforeach @endforeach
@endif
</tbody> </tbody>
</table> </table>
</div> </div>
@else
<p>No files found</p>
@endif
</div> </div>