@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
@if ($errors->any())
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
Resumo
Status: {{ ucfirst(str_replace('_', ' ', (string) $manutencao->status)) }}
Tipo: {{ $manutencao->tipo }}
Prioridade: {{ $manutencao->prioridade }}
Centro Custo: {{ optional($manutencao->centroCusto)->nome_centro_custo }}
Custo peças: € {{ number_format((float) $manutencao->custo_pecas, 2, ',', '.') }}
Custo mão de obra: € {{ number_format((float) $manutencao->custo_mao_obra, 2, ',', '.') }}
Custo total: € {{ number_format((float) $manutencao->custo_total, 2, ',', '.') }}
Problema:
{{ $manutencao->descricao_problema ?: '—' }}
Serviço:
{{ $manutencao->descricao_servico ?: '—' }}
@if(in_array($manutencao->status, [\App\Models\Manutencao\Manutencao::STATUS_APROVADA, \App\Models\Manutencao\Manutencao::STATUS_EM_EXECUCAO], true))
Lançamento de execução e custos
@endif
Itens de execução
| Tipo | Descrição | Qtd | Unit. | Total |
@forelse($manutencao->itens as $item)
| {{ $item->tipo_item }} |
{{ $item->descricao }} |
{{ number_format((float)$item->quantidade, 2, ',', '.') }} |
€ {{ number_format((float)$item->valor_unitario, 2, ',', '.') }} |
€ {{ number_format((float)$item->valor_total, 2, ',', '.') }} |
@empty
| Sem itens registados. |
@endforelse
| Totais |
€ {{ number_format((float) $manutencao->custo_mao_obra, 2, ',', '.') }} |
€ {{ number_format((float) $manutencao->custo_total, 2, ',', '.') }} |
Ações rápidas
@endsection