First Commit

This commit is contained in:
marco
2026-09-01 09:22:30 -03:00
commit a43ae23eb4
407 changed files with 36138 additions and 0 deletions
+70
View File
@@ -0,0 +1,70 @@
@extends('layouts.app')
@section('header', 'Projetos de Prompt')
@section('breadcrumbs')
@php
$breadcrumbs = [
'Projetos' => route('prompt-projects.index')
];
@endphp
@endsection
@section('content')
<div class="card shadow mb-4">
<div class="card-header py-3 d-flex justify-content-between align-items-center">
<h6 class="m-0 fw-bold text-primary">Lista de Projetos</h6>
<a href="{{ route('prompt-projects.create') }}" class="btn btn-primary btn-sm">
<i class="bi bi-plus-circle"></i> Novo Projeto
</a>
</div>
<div class="card-body">
@if(isset($projects) && count($projects) > 0)
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th>Nome</th>
<th>Objetivo</th>
<th>Provedor</th>
<th>Temperatura</th>
<th>Tokens</th>
<th>Ações</th>
</tr>
</thead>
<tbody>
@foreach($projects as $project)
<tr>
<td>{{ $project->title }}</td>
<td>{{ Str::limit($project->objective, 50) }}</td>
<td>{{ $project->provider->name ?? 'N/A' }}</td>
<td>{{ $project->temperature }}</td>
<td>{{ $project->max_tokens }}</td>
<td>
<a href="{{ route('prompt-projects.show', $project) }}" class="btn btn-info btn-sm">
<i class="bi bi-eye"></i>
</a>
<a href="{{ route('prompt-projects.edit', $project) }}" class="btn btn-warning btn-sm">
<i class="bi bi-pencil"></i>
</a>
<form action="{{ route('prompt-projects.destroy', $project) }}" method="POST" class="d-inline" onsubmit="return confirm('Tem certeza?')">
@csrf @method('DELETE')
<button class="btn btn-danger btn-sm"><i class="bi bi-trash"></i></button>
</form>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
@if(is_object($projects) && method_exists($projects, 'links'))
<div class="mt-3">
{{ $projects->links() }}
</div>
@endif
@else
<p class="text-muted">Nenhum projeto encontrado.</p>
@endif
</div>
</div>
@endsection