generated from thegrind/laravel-dockerized
19 lines
877 B
PHP
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> |