scripthost/resources/views/dashboard.blade.php
Javier Feliz 1f596fdc20
Some checks failed
tests / ci (push) Has been cancelled
linter / quality (push) Has been cancelled
Build & Push Docker Image to Registry / build (release) Successful in 4m34s
Editable scripts and install octane
2025-07-22 22:40:47 -04:00

19 lines
877 B
PHP

<x-layouts.app :title="__('Dashboard')">
<div class="grid grid-cols-12 gap-3">
<div class="col-span-5">
<livewire:forms.script />
</div>
<div class="col-span-7 px-24 space-y-4">
<flux:heading size="xl">Your Scripts</flux:heading>
@foreach (auth()->user()->scripts as $s)
<div class="bg-gray-300 dark:bg-zinc-700 p-4 mb-4 space-y-4" x-data="{scriptId: {{$s->id}}}">
<flux:text size="xl">{{ $s->name }}</flux:text>
<div class="flex gap-4">
<flux:button variant="primary" :href="$s->viewUrl()" target="_blank" icon="eye">View</flux:button>
<flux:button icon="pencil" x-on:click="$dispatch('edit-script', {id: scriptId})" />
</div>
</div>
@endforeach
</div>
</div>
</x-layouts.app>