@extends('layouts.app', ['title' => 'Planejamento #' . $item->numero_sequencial]) @section('content')
Voltar

Planejamento #{{ $item->numero_sequencial }}

Editar

Descrição:

{{ $item->descricao }}

Observação:

{{ $item->observacao }}

Cliente: {{ $item->projeto->cliente->razao_social }}

CPF/CNPJ: {{ $item->projeto->cliente->cpf_cnpj }}

Telefone: {{ $item->projeto->cliente->telefone }}

Email: {{ $item->projeto->cliente->email }}

Cidade: {{ $item->projeto->cliente->cidade ? $item->projeto->cliente->cidade->info : '--' }}

{!! $item->_estado() !!} @if(sizeof($item->itensProposta) > 0)

Valor Final Proposta: R$ {{ __moeda($item->total_final) }}

@endif
@if($item->estado == 'proposta') @if(sizeof($item->itensProposta) == 0) Criar Proposta @else Nova Proposta @endif @endif @if($item->estado != 'cotacao' && sizeof($item->itensProposta) > 0) Imprimir Proposta @endif
@if($item->arquivo) Visualizar Arquivo @endif

Histórico de alteração

@foreach($item->logs as $l)

{{ $l->usuario->name }} - {{ __data_pt($l->created_at) }}

@if($l->estado_anterior == '' && $l->estado_alterado == '')
PROPOSTA
@else

{!! $l->_estadoAnterior() !!} / {!! $l->_estadoAlterado() !!}

@endif @if($l->observacao)

{{ $l->observacao }}

@endif
@endforeach

Valores de custo

@foreach($item->produtos as $i) @endforeach
Produto Quantidade Valor unitário Sub total
{{ $i->descricao() }} @if(!$i->produto->unidadeDecimal()) {{ number_format($i->quantidade, 0, '.', '') }} @else {{ number_format($i->quantidade, 3, '.', '') }} @endif {{ __moeda($i->valor_unitario) }} {{ __moeda($i->sub_total) }}
Cotações
@foreach($item->servicos as $i) @endforeach
Serviço Quantidade Valor unitário Sub total
{{ $i->servico->nome }} {{ number_format($i->quantidade, 0, '.', '') }} {{ __moeda($i->valor_unitario) }} {{ __moeda($i->sub_total) }}
@foreach($item->servicosTerceiro as $i) @endforeach
Serviço Quantidade Valor unitário Sub total
{{ $i->servico->nome }} {{ number_format($i->quantidade, 0, '.', '') }} {{ __moeda($i->valor_unitario) }} {{ __moeda($i->sub_total) }}
@foreach($item->custosAdm as $i) @endforeach
Descrição Quantidade Valor unitário Sub total
{{ $i->descricao }} {{ number_format($i->quantidade, 0, '.', '') }} {{ __moeda($i->valor_unitario) }} {{ __moeda($i->sub_total) }}

Produtos: R$ {{ __moeda($item->produtos->sum('sub_total')) }}

Mão de obra: R$ {{ __moeda($item->servicos->sum('sub_total')) }}

Serviços terceiro: R$ {{ __moeda($item->servicosTerceiro->sum('sub_total')) }}

Custos administrativos: R$ {{ __moeda($item->custosAdm->sum('sub_total')) }}

TOTAL CUSTO R$ {{ __moeda($item->servicos->sum('sub_total') + $item->custosAdm->sum('sub_total') + $item->produtos->sum('sub_total') + $item->servicosTerceiro->sum('sub_total') - $item->desconto) }}

@include('planejamento_custo.partials.modal_estado') @endsection @section('js') @endsection