country = request()->route('country', config('app.domain_country'));
}
public function with(): array
{
return [
'services' => SelfHostedService::query()
->when($this->search, fn($q) => $q->where('name', 'ilike', '%'.$this->search.'%'))
->orderBy('name')
->paginate(15),
];
}
}; ?>
{{ __('Self Hosted Services') }}
@auth
{{ __('Service erstellen') }}
@endauth
{{ __('Name') }}
{{ __('Typ') }}
{{ __('Links') }}
{{ __('Aktionen') }}
@foreach ($services as $service)
{{ $service->name }}
@if($service->type)
{{ ucfirst($service->type->value) }}
@endif
@if($service->url_clearnet)
@endif
@if($service->url_onion)
@endif
@if($service->url_i2p)
@endif
@if($service->url_pkdns)
@endif
@if($service->contact_url)
@endif
@auth
@if(auth()->id() === $service->created_by)
{{ __('Bearbeiten') }}
@endif
@else
{{ __('Log in') }}
@endauth
@endforeach