@extends('default.layout') @section('content')

Locação

@csrf
@if($errors->has('produto_id'))
{{ $errors->first('produto_id') }}
@endif
@if($errors->has('valor'))
{{ $errors->first('valor') }}
@endif
@if($errors->has('observacao'))
{{ $errors->first('observacao') }}
@endif

ITENS

@foreach($locacao->itens as $i) @endforeach
PRODUTO VALOR OBSERVAÇÃO AÇÕES
{{$i->produto->nome}} {{ number_format($i->valor, 2, ',', '.')}} {{$i->observacao}}

Data de início: {{\Carbon\Carbon::parse($locacao->inicio)->format('d/m/Y')}}

Data de término: @if($locacao->fim != '1969-12-31') {{ \Carbon\Carbon::parse($locacao->fim)->format('d/m/Y')}} @else -- @endif

Cliente: {{$locacao->cliente->razao_social}}

Total: R$ {{number_format($locacao->total, 2, ',', '.')}}

Observação: {{$locacao->observacao}}

@if($locacao->status == 0) Alterar para finalizado @endif Comprovante
@section('javascript') @endsection @endsection