Skip to content

Commit

Permalink
Refactor destination/all.blade.php for improved code structure and re…
Browse files Browse the repository at this point in the history
…adability
  • Loading branch information
andrasbacsai committed May 15, 2024
1 parent aa0a9bd commit ed51880
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions resources/views/destination/all.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@
<div class="grid gap-2 lg:grid-cols-1">
@forelse ($destinations as $destination)
@if ($destination->getMorphClass() === 'App\Models\StandaloneDocker')
<div class="box group">
<a class="flex flex-col mx-6"
<a class="box group"
href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}">
<div class="box-title">{{ $destination->name }}</div>
<div class="box-description">server: {{ $destination->server->name }}</div>
<div class="flex flex-col mx-6">
<div class="box-title">{{ $destination->name }}</div>
<div class="box-description">server: {{ $destination->server->name }}</div>
</div>
</a>
</div>
@endif
@if ($destination->getMorphClass() === 'App\Models\SwarmDocker')
<div class="box group">
<a class="flex flex-col mx-6"
<a class="box group"
href="{{ route('destination.show', ['destination_uuid' => data_get($destination, 'uuid')]) }}">
<div class="box-title">{{ $destination->name }}</div>
<div class="box-description">server: {{ $destination->server->name }}</div>
<div class="flex flex-col mx-6">
<div class="box-title">{{ $destination->name }}</div>
<div class="box-description">server: {{ $destination->server->name }}</div>
</div>
</a>
</div>
@endif
@empty
<div>
Expand Down

0 comments on commit ed51880

Please sign in to comment.