@extends('layouts.layoutMaster') @section('title', 'Detalhes da Locação') @section('content')
{{ $locacao->cliente->cpf_cnpj ?? 'Não informado' }}
@if($locacao->cliente->email){{ $locacao->cliente->email }}
@endif @if($locacao->cliente->celular){{ $locacao->cliente->celular }}
@endif @if($locacao->cliente->endereco){{ $locacao->cliente->endereco }} @if($locacao->cliente->cidade) , {{ $locacao->cliente->cidade }} @endif @if($locacao->cliente->uf) - {{ $locacao->cliente->uf }} @endif
@endif @elseCliente não encontrado
@endif{{ optional($locacao->data_transporte_ida)->format('d/m/Y') ?? '-' }} @if($locacao->hora_transporte_ida) às {{ $locacao->hora_transporte_ida }} @endif
{{ optional($locacao->data_transporte_volta)->format('d/m/Y') ?? '-' }} @if($locacao->hora_transporte_volta) às {{ $locacao->hora_transporte_volta }} @endif
| Tipo | Produto | Sala | Patrimônio | Período | Qtd | Qtd {{ ($locacao->locacao_por_hora_exibicao ?? false) ? 'Horas' : 'Dias' }} | Valor Unit. | Subtotal |
|---|---|---|---|---|---|---|---|---|
| {{ $produto->produto->nome ?? $produto->descricao ?? 'Item não encontrado' }} | @if($produto->sala) {{ $produto->sala->nome }} @else - @endif | {{ $produto->patrimonio->codigo_patrimonio ?? $produto->patrimonio->numero_serie ?? '-' }} | {{ $dataInicioProduto }}@if($horaInicioProduto) {{ $horaInicioProduto }}@endif - {{ $dataFimProduto }}@if($horaFimProduto) {{ $horaFimProduto }}@endif | {{ $quantidadeProduto }} | {{ $periodoProduto }} | R$ {{ number_format($valorUnitarioProduto, 2, ',', '.') }} | R$ {{ number_format($subtotalProduto, 2, ',', '.') }} | |
|
{{ $produtoTerceiro->nome_produto ?? $produtoTerceiro->nome_produto_manual ?? ($produtoTerceiro->produtoTerceiro->nome ?? 'Produto de terceiro') }}
@if($produtoTerceiro->fornecedor)
{{ $produtoTerceiro->fornecedor->nome ?? '-' }} @endif |
@if($produtoTerceiro->sala) {{ $produtoTerceiro->sala->nome }} @else - @endif | - | {{ optional($locacao->data_inicio)->format('d/m') }}@if($horaInicioLocacao) {{ $horaInicioLocacao }}@endif - {{ optional($locacao->data_fim)->format('d/m') }}@if($horaFimLocacao) {{ $horaFimLocacao }}@endif | {{ $quantidadeTerceiro }} | {{ $periodoTerceiro }} | R$ {{ number_format($valorUnitarioTerceiro, 2, ',', '.') }} | R$ {{ number_format($subtotalTerceiro, 2, ',', '.') }} | |
| Nenhum produto adicionado | ||||||||
| Subtotal Produtos: | R$ {{ number_format($subtotalProdutos, 2, ',', '.') }} | |||||||
| Tipo | Descrição | Quantidade | Qtd {{ ($locacao->locacao_por_hora_exibicao ?? false) ? 'Horas' : 'Dias' }} | Valor Unitário | Subtotal |
|---|---|---|---|---|---|
| @if($servicoTerceiro) @else @endif |
{{ $servico->descricao }}
@if($servicoTerceiro && !empty($servico->fornecedor_nome))
{{ $servico->fornecedor_nome }} @endif |
{{ (int) ($servico->quantidade ?? 1) }} | {{ (int) ($servico->periodo_qtd_exibicao ?? $periodoQuantidade) }} | R$ {{ number_format($valorUnitarioServico, 2, ',', '.') }} | R$ {{ number_format($subtotalServico, 2, ',', '.') }} |
| Subtotal Serviços: | R$ {{ number_format($subtotalServicos, 2, ',', '.') }} | ||||
| Tipo | Descrição | Valor |
|---|---|---|
| {{ ucfirst($despesa->tipo) }} | {{ $despesa->descricao ?? '-' }} | R$ {{ number_format($despesa->valor, 2, ',', '.') }} |
| Total Despesas: | R$ {{ number_format($locacao->despesas->sum('valor'), 2, ',', '.') }} | |
{{ $locacao->observacoes }}
| Subtotal Produtos: | R$ {{ number_format($subtotalProdutos, 2, ',', '.') }} |
| Subtotal Serviços: | R$ {{ number_format($subtotalServicos, 2, ',', '.') }} |
| Desconto: | - R$ {{ number_format($descontoResumo, 2, ',', '.') }} |
| Taxa de Entrega: | R$ {{ number_format($acrescimoResumo, 2, ',', '.') }} |
| VALOR TOTAL: | R$ {{ number_format($locacao->valor_total, 2, ',', '.') }} |