@extends('stisla.layouts.app-table') @section('title') Ubuntu @endsection @section('content')

{{ __('Ubuntu') }}

Untuk menggunakan fitur ini pastikan sudah meng-setup supervisor, karena command2 yang dijalankan menggunakan supervisor.

{{ __($path) }}

@if ($isGit)
{{-- @include('stisla.includes.forms.buttons.btn-edit', ['link' => route('ubuntu.git-pull', [encrypt($path)]), 'icon' => 'fab fa-github', 'tooltip' => 'git pull origin']) --}} @include('stisla.includes.forms.buttons.btn-edit', [ 'link' => route('ubuntu.set-laravel-permission', [encrypt($path)]), 'icon' => 'fab fa-laravel', 'tooltip' => 'set laravel permission', ])
@endif
@csrf
@include('stisla.includes.forms.inputs.input', ['required' => true, 'name' => 'redirect_folder', 'label' => 'Path', 'value' => $path])
@include('stisla.includes.forms.buttons.btn-save', ['label' => 'Let\'s Go'])


{{-- @if ($isLaravel)
Laravel Projek

Seeders
Seed All @foreach ($seeders as $seed) {{ $seed }} @endforeach

Migrations
Migrate Migrate Refresh

@endif --}}
@php $i = 1; @endphp @if ($parentPath) @endif @foreach ($foldersWww as $item) @endforeach @foreach ($filesWww as $item) @endforeach
# {{ __('Name') }} {{ __('Path') }} {{ __('Type') }} {{ __('Aksi') }}
{{ $i++ }} .. .. Dir
{{ $i++ }} {{ basename($item) }} {{ $item }} Dir
{{ $i++ }} {{ basename($item->getPathname()) }} {{ $item->getPathname() }} File @include('stisla.includes.forms.buttons.btn-edit', ['link' => route('ubuntu.edit', [encrypt($item->getPathname())])]) @include('stisla.includes.forms.buttons.btn-edit', [ 'link' => route('ubuntu.duplicate', [encrypt($item->getPathname())]), 'icon' => 'fa fa-copy', 'tooltip' => 'Duplikasi', ]) @if (basename($item->getPathname()) === '.env.example' && $isEnvExists === false) @include('stisla.includes.forms.buttons.btn-success', [ 'link' => route('ubuntu.duplicate', [encrypt($item->getPathname()), 'as' => '.env']), 'icon' => 'fa fa-copy', 'tooltip' => 'Duplikasi sebagi .env', 'size' => 'sm', ]) @endif @include('stisla.includes.forms.buttons.btn-delete', ['link' => route('ubuntu.destroy', [encrypt($item->getPathname())])])
{{-- supervisor --}}

{{ __('Supervisor') }}

@if (str_contains($supervisorStatus, 'running')) @include('stisla.includes.forms.buttons.btn-primary', ['link' => route('ubuntu.supervisor', ['action' => 'stop']), 'label' => 'Stop Supervisor']) @include('stisla.includes.forms.buttons.btn-primary', [ 'link' => route('ubuntu.supervisor', ['action' => 'restart']), 'label' => 'Restart Supervisor', ]) @else @include('stisla.includes.forms.buttons.btn-primary', ['link' => route('ubuntu.supervisor', ['action' => 'start']), 'label' => 'Start Supervisor']) @endif
{{ $supervisorStatus }}
@php $i = 1; @endphp @foreach ($supervisors as $item) @endforeach
# {{ __('Path') }} {{ __('Aksi') }}
{{ $i++ }} {{ $item }} @include('stisla.includes.forms.buttons.btn-edit', ['link' => route('ubuntu.edit', [encrypt($item)])]) @include('stisla.includes.forms.buttons.btn-edit', [ 'link' => route('ubuntu.duplicate', [encrypt($item)]), 'icon' => 'fa fa-copy', 'tooltip' => 'Duplikasi', ]) @include('stisla.includes.forms.buttons.btn-delete', ['link' => route('ubuntu.destroy', [encrypt($item)])])
@foreach ($phps as $php)

{{ __($php['path']) }}

@if (str_contains($php['status_fpm'], 'running')) @include('stisla.includes.forms.buttons.btn-primary', ['link' => route('ubuntu.php-fpm', ['version' => $php['version'], 'action' => 'stop']), 'label' => 'Stop FPM']) @include('stisla.includes.forms.buttons.btn-primary', [ 'link' => route('ubuntu.php-fpm', ['version' => $php['version'], 'action' => 'restart']), 'label' => 'Restart FPM', ]) @else @include('stisla.includes.forms.buttons.btn-primary', ['link' => route('ubuntu.php-fpm', ['version' => $php['version'], 'action' => 'start']), 'label' => 'Start FPM']) @endif
{{ $php['status_fpm'] }}
@php $i = 1; @endphp @foreach ($php['directories'] as $item) @endforeach
# {{ __('Path') }} {{ __('Type') }} {{ __('Aksi') }}
{{ $i++ }} {{ $item }} Dir
@endforeach

{{ __('Nginx Sites Available') }}

@if (str_contains($nginxStatus, 'running')) @include('stisla.includes.forms.buttons.btn-primary', ['link' => route('ubuntu.nginx', ['nginx' => 'stop']), 'label' => 'Stop Nginx']) @include('stisla.includes.forms.buttons.btn-primary', ['link' => route('ubuntu.nginx', ['nginx' => 'restart']), 'label' => 'Restart Nginx']) @else @include('stisla.includes.forms.buttons.btn-primary', ['link' => route('ubuntu.nginx', ['nginx' => 'start']), 'label' => 'Start Nginx']) @endif
{{ $nginxStatus }}
@foreach ($files as $item) @endforeach
# {{ __('Filename') }} {{ __('Domain') }} {{ __('Enabled') }} {{ __('SSL') }} {{ __('Aksi') }}
{{ $loop->iteration }} {{ $item->getFilename() }} {{ $item->domain }} @if ($item->enabled) true @else false @endif @if ($item->is_ssl) true @else false @endif @include('stisla.includes.forms.buttons.btn-edit', ['link' => route('ubuntu.edit', [encrypt($item->getPathname())])]) @include('stisla.includes.forms.buttons.btn-edit', [ 'link' => route('ubuntu.duplicate', [encrypt($item->getPathname())]), 'icon' => 'fa fa-copy', 'tooltip' => 'Duplikasi', ]) @include('stisla.includes.forms.buttons.btn-delete', ['link' => route('ubuntu.destroy', [encrypt($item->getPathname())])])
@if (request('database') && request('table'))

MySQL Database

{{ __('MySql Database') }} > {{ request('database') }} > {{ request('table') }}

@include('stisla.ubuntu.mysql-action')
{{ $mysqlStatus }}
@foreach ($structure as $item) @endforeach @foreach ($rows as $item) @foreach ($structure as $column) @endforeach @endforeach
#{{ $item->column }}{{ __('Aksi') }}
{{ $loop->iteration }}{{ $item->{$column->column} }} @include('stisla.includes.forms.buttons.btn-edit', [ 'link' => route('ubuntu.edit-row', ['database' => request('database'), 'table' => request('table'), 'id' => $item->{$primary}, 'primary' => $primary]), ]) @include('stisla.includes.forms.buttons.btn-edit', [ 'link' => route('ubuntu.edit-row', [ 'database' => request('database'), 'table' => request('table'), 'id' => $item->{$primary}, 'primary' => $primary, 'json' => 'true', ]), 'icon' => 'fa fa-code', 'tooltip' => 'Lihat Json', ]) @include('stisla.includes.forms.buttons.btn-delete', [ 'link' => route('ubuntu.delete-row', ['database' => request('database'), 'table' => request('table'), 'id' => $item->{$primary}]), 'primary' => $primary, ])
@elseif (request('database'))

MySQL Database

{{ __('MySql Database') }} > {{ request('database') }}

@include('stisla.ubuntu.mysql-action')
{{ $mysqlStatus }}
@foreach ($tables as $item) @endforeach
# {{ __('Tabel') }} {{ __('Size') }} {{ __('Rows') }} {{ __('Aksi') }}
{{ $loop->iteration }} {{ $item->table }} {{ $item->size_mb }} Mb {{ $item->total_row }} @include('stisla.includes.forms.buttons.btn-edit', [ 'link' => route('ubuntu.index', ['database' => request('database'), 'table' => $item->table]), 'icon' => 'fa fa-table', 'tooltip' => 'Lihat Data', ]) @include('stisla.includes.forms.buttons.btn-edit', [ 'link' => route('ubuntu.index', ['database' => request('database'), 'table' => $item->table, 'action' => 'json']), 'icon' => 'fa fa-code', 'tooltip' => 'Lihat JSON', ]) @include('stisla.includes.forms.buttons.btn-success', [ 'link' => route('ubuntu.index', ['database' => request('database'), 'table' => $item->table, 'action' => 'json-download']), 'icon' => 'fa fa-code', 'tooltip' => 'Download JSON', 'size' => 'sm', ]) @include('stisla.includes.forms.buttons.btn-danger', [ 'link' => route('ubuntu.mysql-paginate', ['database' => request('database'), 'table' => $item->table, 'action' => 'json-paginate']), 'icon' => 'fa fa-code', 'tooltip' => 'Paginate JSON', 'size' => 'sm', ])
@else

MySQL Database

{{ __('MySql Database') }}

@include('stisla.ubuntu.mysql-action')
{{ $mysqlStatus }}
@csrf
@include('stisla.includes.forms.inputs.input', ['required' => true, 'name' => 'database_name', 'label' => 'Nama Database'])
@include('stisla.includes.forms.buttons.btn-save', ['label' => 'Buat Database Baru'])


@foreach ($databases as $item) @endforeach
# {{ __('Database') }} {{ __('Tabel') }} {{ __('Size') }} {{ __('Aksi') }}
{{ $loop->iteration }} {{ $item->database }} {{ $item->total_table }} {{ $item->size_mb }} Mb @include('stisla.includes.forms.buttons.btn-edit', [ 'link' => route('ubuntu.index', ['database' => $item->database]), 'icon' => 'fa fa-table', 'tooltip' => 'Lihat Tabel', ]) @include('stisla.includes.forms.buttons.btn-danger', [ 'link' => route('ubuntu.index', ['database' => $item->database, 'action' => 'delete_db']), 'icon' => 'fa fa-trash', 'tooltip' => 'Hapus', ])
@endif
@endsection