@extends('layouts.admin')
@section('title','Novo caso')
@section('content')
<h1>Novo caso</h1>
<form method="POST" action="{{ route('admin.cases.store') }}">@csrf
<select name="client_id">@foreach($clients as $client)<option value="{{ $client->id }}">{{ $client->name }}</option>@endforeach</select>
<input type="text" name="title" placeholder="Título">
<textarea name="description" placeholder="Descrição"></textarea>
<textarea name="purpose" placeholder="Finalidade"></textarea>
<input type="text" name="lawful_basis" placeholder="Base legal/fundamento">
<select name="assigned_user_id"><option value="">Responsável</option>@foreach($users as $user)<option value="{{ $user->id }}">{{ $user->name }}</option>@endforeach</select>
<select name="status"><option value="open">Aberto</option><option value="in_progress">Em andamento</option><option value="pending">Pendente</option><option value="closed">Fechado</option><option value="archived">Arquivado</option></select>
<select name="priority"><option value="low">Baixa</option><option value="medium">Média</option><option value="high">Alta</option><option value="urgent">Urgente</option></select>
<button class="btn" type="submit">Salvar</button></form>
@endsection
