vito/resources/views/livewire/php/default-cli.blade.php
Saeed Vaziry 5c72f12490 init
2023-07-02 12:47:50 +02:00

42 lines
1.8 KiB
PHP

<div>
<x-card-header>
<x-slot name="title">{{ __("Default PHP Cli") }}</x-slot>
<x-slot name="description">{{ __("You can see and manage your PHP installations") }}</x-slot>
</x-card-header>
<a class="block">
<x-item-card>
<div class="flex items-start justify-center">
<span class="mr-2">PHP {{ $defaultPHP->version }}</span>
@include('livewire.services.partials.status', ['status' => $defaultPHP->status])
</div>
<div class="flex items-center">
<div class="inline">
<x-dropdown>
<x-slot name="trigger">
<x-secondary-button>
{{ __("Change") }}
<x-heroicon-m-chevron-down class="w-4 ml-1" />
</x-secondary-button>
</x-slot>
<x-slot name="content">
@foreach($phps as $php)
@if($php->version != $defaultPHP->version)
<x-dropdown-link class="cursor-pointer" wire:click="change('{{ $php->version }}')">
PHP {{ $php->version }}
</x-dropdown-link>
@endif
@endforeach
@if(count($phps) == 1)
<x-dropdown-link>
{{ __("No other versions") }}
</x-dropdown-link>
@endif
</x-slot>
</x-dropdown>
</div>
</div>
</x-item-card>
</a>
</div>