@extends('layout') @section('content') @php $id = $project->id; $total = $tasks->count(); $done = $tasks->where('done', true)->count(); $pct = $total > 0 ? round(($done / $total) * 100) : 0; $budget = (float) $project->budget; $margin = $budget > 0 ? round(($finance['result'] / $budget) * 100) : null; @endphp
@include('partials.context-back')
{{ label($project->status) }} Prioridade {{ label($project->priority) }}
@if ($project->image_path)@elsefolder@endif

{{ $project->name }}

@if ($project->client)

{{ $project->client->name }}

@endif
add_taskCriar tarefa @if (!empty($linkedSystem)) appsVer solução @elseif ($project->status === 'concluido') rocket_launchTransformar em solução @endif editEditar

Tarefas

{{ $done }}/{{ $total }} concluídas
@foreach ($tasks as $t)
done ? 'checked' : '' }}> {{ $t->title }} @if ($t->due_date){{ datetime_br($t->due_date, 'd/m') }}@endif
@endforeach @if ($tasks->isEmpty())
checklist

Nenhuma tarefa ainda.

@endif
@csrf

lock Arquivos seguros

backups do projeto
@csrf

ZIP, SQL, JSON, CSV e outros arquivos de backup até 100 MB. O conteúdo não fica público.

@if ($files->isEmpty())

Nenhum backup armazenado.

@else
@foreach ($files as $file) @php $fileSize = (int) $file->size_bytes; $sizeLabel = $fileSize >= 1048576 ? number_format($fileSize / 1048576, 1, ',', '.').' MB' : number_format(max(1, $fileSize / 1024), 1, ',', '.').' KB'; @endphp
folder_zip

{{ $file->original_name }}

{{ $sizeLabel }} · {{ datetime_br($file->created_at, 'd/m/Y H:i') }}
download
@csrf @method('DELETE')
@endforeach
@endif

Financeiro do projeto

Novo lançamento
Orçado
{{ money($budget) }}
Faturado
{{ money($finance['billed']) }}
A receber
{{ money($finance['to_receive']) }}
Custos
{{ money($finance['cost']) }}
Resultado
{{ money_signed($finance['result'], $finance['result'] < 0 ? 'saida' : 'entrada') }}
@if ($margin !== null)
Margem s/ orçado
{{ $margin }}%
@endif
@if ($transactions->isNotEmpty()) @if ($transactions->count() > 6)

ver todos os {{ $transactions->count() }} lançamentos

@endif @else

Nenhum lançamento vinculado a este projeto ainda.

@endif

Reuniões

Agendar
@if ($meetings->isEmpty())
calendar_month

Nenhuma reunião vinculada.

@else @endif
Orçamento
{{ money($project->budget) }}
Início
{{ datetime_br($project->start_date, 'd/m/Y') }}
Prazo
{{ datetime_br($project->due_date, 'd/m/Y') }}
Progresso
{{ $pct }}% ({{ $done }}/{{ $total }})
@if ($project->description)
Descrição
{!! \App\Services\RichTextSanitizer::clean((string) $project->description) !!}
@endif @if ($project->sales_description)
Descrição para venda
{!! \App\Services\RichTextSanitizer::clean((string) $project->sales_description) !!}
@endif
@csrf @method('DELETE')
@endsection