@extends('adminlte.app') @section('content')

Cliente

@if ($message = Session::get('success'))

{{ $message }}

@elseif($message = Session::get('danger'))

{{ $message }}

@endif
Novo Relacionamento
@csrf
Dados do Cliente - {{$cliente->id}}
{{-- --}}
Nome :
{{$cliente->nome}}
Telefone :
{{$cliente->telefone}}
Telemóvel :
{{$cliente->telemovel}}
E-mail :
{{$cliente->email_cliente}}
TFuel - Plafond :
{{$cliente->tfuel_plafond}}
IM - Plafond :
{{$cliente->im_plafond}}
Dados Relacionamento
{{--
--}} {{-- --}}
@error('data_interacao') {{ $message }} @enderror
@error('data_promessa_pagamento') {{ $message }} @enderror

{{--
--}}
0%
@error('data_proxima_interacao') {{ $message }} @enderror {{-- @if($cliente->data_proxima_interacao!= "") Mínimo {{$cliente->data_proxima_interacao}} @endif --}}

{{--
--}}
0%
Associar Fatura
@error('mao__obras_id') {{ $message }} @enderror
@error('faturas_id') {{ $message }} @enderror
0
ID Canal Fatura Valor Emissão Vencimento Status Remover
@error('descricao_interacao') {{ $message }} @enderror

@foreach ($registro_relacionamento as $fatura) @endforeach
Ações
Data Interação
Próxima Interação
Tipo Interação
Descrição Interação
Usuário da Interação
{{--
--}}
@csrf @method('DELETE')
{{$fatura->data_interacao}} - {{ date( 'd', strtotime( $fatura->data_interacao ) ).'/'.date( 'm', strtotime( $fatura->data_interacao ) ).'/'.date( 'Y', strtotime( $fatura->data_interacao ) )}} {{$fatura->data_proxima_interacao}} - {{ date( 'd', strtotime( $fatura->data_proxima_interacao ) ).'/'.date( 'm', strtotime( $fatura->data_proxima_interacao ) ).'/'.date( 'Y', strtotime( $fatura->data_proxima_interacao ) )}} {{$fatura->tipo_interacao }} {{$fatura->descricao_interacao }} {{ $vendedor_interacao[$fatura->user_id]->name}}
{{-- --}} @foreach ($faturas as $item) @if($fatura->faturas_id != null) {{-- @if (in_array($item->id, $fatura->faturas_id ) ) --}} @if(str_contains($fatura->faturas_id,$item->faturas_id)) {{----}} @if ($item->status == "Pendente") @if($item->dt_vencimento < \Carbon\Carbon::now()) @else @endif @else @endif @if ($cliente->sinistro == "Sim") @else @endif @endif @endif @endforeach
Canal Fatura ValorMvalorEmissão Vencimento Idade Vencido Atraso Status Data Promessa de Pagamento Anexo Promessa de Pagamento Comprovativo
@if(isset($item->canal->nome_canal)){{ $item->canal->nome_canal }}@endif {{ $item->num_documento }} {{ number_format($item->valor_total, 2, ',', '.') }} Perguntar o que é mvalor, se é calculado {{ date('d/m/Y', strtotime($item->dt_emissao)) }} {{ date('d/m/Y', strtotime($item->dt_vencimento)) }} {{ \Carbon\Carbon::now()->diffInDays($item->dt_emissao) }} Sim Não @if ($item->status == "Pendente") @if(\Carbon\Carbon::parse($item->dt_vencimento)->diffInDays(null, false) < 1) @elseif(\Carbon\Carbon::parse($item->dt_vencimento)->diffInDays(null, false) < 30) @else @endif {{ \Carbon\Carbon::parse($item->dt_vencimento)->diffInDays(null, false) }} {{-- @if(\Carbon\Carbon::now()->diffInDays($item->dt_vencimento) < 1) --}} {{-- {{ \Carbon\Carbon::now()->diffInDays($item->dt_vencimento) }} --}} @else @endif Sinistrado status == "Paga") class="bg-success" @elseif ($item->status == "PPago") style="background-color: #ffc000;" @endif> {{ $item->status }} @if($item->data_promessa_pagamento) {{date('d/m/Y', strtotime($item->data_promessa_pagamento))}} @endif @if($item->cheque_transferencia and $item->cheque_transferencia != "noimage.png" ) @endif @if($item->comprovante_pagamento and $item->comprovante_pagamento != "noimage.png" ) @endif
{{-- fim modal --}} {{-- // Anexo 2 --}} @endsection