@extends('layouts.app') @section('title', $customer->name . ' - Sistema de Gestão') @section('page-title', 'Detalhes do Cliente') @section('content')
{{ $customer->name }}
@if($customer->active) Ativo @else Inativo @endif
Saldo Atual: @php $class = $balance >= 0 ? 'text-success' : 'text-danger'; @endphp
R$ {{ number_format(abs($balance), 2, ',', '.') }} @if($balance < 0) (Devedor) @endif
@if($customer->email)
{{ $customer->email }}
@endif @if($customer->phone)
{{ $customer->phone }}
@endif @if($customer->cpf_cnpj)
{{ $customer->cpf_cnpj }}
@endif @if($customer->address)
{{ $customer->address }}
@endif
Limite de Crédito: R$ {{ number_format($customer->credit_limit, 2, ',', '.') }}
Novo Lançamento
@csrf
R$
Últimos Lançamentos
@if($entries->count() > 0)
@foreach($entries as $entry) @endforeach
Data Descrição Categoria Débito Crédito
{{ $entry->entry_date->format('d/m/Y') }} {{ $entry->description }} @if($entry->notes)
{{ $entry->notes }} @endif
@if($entry->category) {{ $entry->category->name }} @else - @endif @if($entry->type === 'debit') R$ {{ number_format($entry->amount, 2, ',', '.') }} @endif @if($entry->type === 'credit') R$ {{ number_format($entry->amount, 2, ',', '.') }} @endif
{{ $entries->links() }} @else
Nenhum lançamento encontrado

Adicione o primeiro lançamento para este cliente.

@endif
Voltar para Lista
@endsection