@extends('layouts.layoutMaster') @section('title', 'Detalhes do Cliente - ' . ($cliente->nome ?? 'Cliente')) @section('content')
Cliente: {{ $cliente->nome }}
@if($cliente->foto_url)
Foto do Cliente
@endif
Dados Básicos
{{ $cliente->nome }}
{{ $cliente->razao_social ?? '-' }}
@if($cliente->id_tipo_pessoa == 1) Pessoa Física @else Pessoa Jurídica @endif
{{ $cliente->cpf_cnpj_formatado }}
{{ $cliente->rg_ie ?? '-' }}
{{ $cliente->email ?? '-' }}
{{ $cliente->telefone_formatado }}
{{ $cliente->data_nascimento ? $cliente->data_nascimento->format('d/m/Y') : '-' }}
@if($cliente->status === 'ativo') Ativo @elseif($cliente->status === 'inativo') Inativo @elseif($cliente->status === 'bloqueado') Bloqueado @else Indefinido @endif
Endereço
{{ $cliente->cep_formatado }}
{{ $cliente->endereco ?? '-' }}
{{ $cliente->numero ?? '-' }}
{{ $cliente->complemento ?? '-' }}
{{ $cliente->bairro ?? '-' }}
@if($cliente->endereco_entrega || $cliente->cep_entrega)
Endereço de Entrega
{{ $cliente->cep_entrega ? preg_replace('/(\d{5})(\d{3})/', '$1-$2', preg_replace('/[^0-9]/', '', $cliente->cep_entrega)) : '-' }}
{{ $cliente->endereco_entrega ?? '-' }}
{{ $cliente->numero_entrega ?? '-' }}
{{ $cliente->complemento_entrega ?? '-' }}
@endif
Informações do Sistema
{{ $cliente->created_at ? $cliente->created_at->format('d/m/Y H:i') : '-' }}
{{ $cliente->updated_at ? $cliente->updated_at->format('d/m/Y H:i') : '-' }}
{{ $cliente->empresa->nome_empresa ?? '-' }}
@endsection