Updated home blade for seedboxes

Updated home blade for seedboxes

Fixed the view button in new services table
This commit is contained in:
cp6 2022-05-16 14:44:55 +10:00
parent 81b8dcaa74
commit c041976731

View File

@ -237,6 +237,8 @@
{{$due_soon->domain}}.{{$due_soon->extension}} {{$due_soon->domain}}.{{$due_soon->extension}}
@elseif($due_soon->service_type === 5) @elseif($due_soon->service_type === 5)
{{$due_soon->name}} {{$due_soon->name}}
@elseif($due_soon->service_type === 6)
{{$due_soon->title}}
@endif @endif
</td> </td>
<td class="text-nowrap"> <td class="text-nowrap">
@ -250,6 +252,8 @@
Domain Domain
@elseif($due_soon->service_type === 5) @elseif($due_soon->service_type === 5)
Misc Misc
@elseif($due_soon->service_type === 6)
Seedbox
@endif @endif
</td> </td>
<td class="text-nowrap"> <td class="text-nowrap">
@ -276,6 +280,10 @@
<a href="{{ route('misc.show', $due_soon->service_id) }}" <a href="{{ route('misc.show', $due_soon->service_id) }}"
class="text-body mx-1"><i class="fas fa-eye" class="text-body mx-1"><i class="fas fa-eye"
title="view"></i></a> title="view"></i></a>
@elseif($due_soon->service_type === 6)
<a href="{{ route('seedboxes.show', $due_soon->service_id) }}"
class="text-body mx-1"><i class="fas fa-eye"
title="view"></i></a>
@endif @endif
</td> </td>
</tr> </tr>
@ -319,6 +327,8 @@
{{$new->domain}}.{{$new->extension}} {{$new->domain}}.{{$new->extension}}
@elseif($new->service_type === 5) @elseif($new->service_type === 5)
{{$new->name}} {{$new->name}}
@elseif($new->service_type === 6)
{{$new->title}}
@endif @endif
</td> </td>
<td class="text-nowrap"> <td class="text-nowrap">
@ -332,15 +342,38 @@
Domain Domain
@elseif($new->service_type === 5) @elseif($new->service_type === 5)
Misc Misc
@elseif($new->service_type === 6)
Seedbox
@endif @endif
</td> </td>
<td class="text-nowrap">{{Carbon\Carbon::parse($new->created_at)->diffForHumans()}}</td> <td class="text-nowrap">{{Carbon\Carbon::parse($new->created_at)->diffForHumans()}}</td>
<td class="text-nowrap">{{$new->price}} {{$new->currency}} {{\App\Process::paymentTermIntToString($new->term)}}</td> <td class="text-nowrap">{{$new->price}} {{$new->currency}} {{\App\Process::paymentTermIntToString($new->term)}}</td>
<td class="text-nowrap text-center"> <td class="text-nowrap text-center">
@if($new->service_type === 1)
<a href="{{ route('servers.show', $new->service_id) }}" <a href="{{ route('servers.show', $new->service_id) }}"
class="text-body mx-1"> class="text-body mx-1"><i class="fas fa-eye"
<i class="fas fa-eye" title="view"></i> title="view"></i></a>
</a> @elseif($new->service_type === 2)
<a href="{{ route('shared.show', $new->service_id) }}"
class="text-body mx-1"><i class="fas fa-eye"
title="view"></i></a>
@elseif($new->service_type === 3)
<a href="{{ route('reseller.show', $new->service_id) }}"
class="text-body mx-1"><i class="fas fa-eye"
title="view"></i></a>
@elseif($new->service_type === 4)
<a href="{{ route('domains.show', $new->service_id) }}"
class="text-body mx-1"><i class="fas fa-eye"
title="view"></i></a>
@elseif($new->service_type === 5)
<a href="{{ route('misc.show', $new->service_id) }}"
class="text-body mx-1"><i class="fas fa-eye"
title="view"></i></a>
@elseif($new->service_type === 6)
<a href="{{ route('seedboxes.show', $new->service_id) }}"
class="text-body mx-1"><i class="fas fa-eye"
title="view"></i></a>
@endif
</td> </td>
</tr> </tr>
@endforeach @endforeach