@extends('layouts.app') @section('title', 'Contas Bancárias') @section('header')
Gerencie suas contas e acompanhe saldos
|
Nome
|
Banco
|
Tipo
|
Número
|
Saldo
|
Transações
|
Status
|
Ações |
|---|---|---|---|---|---|---|---|
|
{{ $account->name }}
Criada em {{ $account->created_at->format('d/m/Y') }} |
{{ $account->bank_name }}
@if($account->bank_code)
Código: {{ $account->bank_code }} @endif |
@php $typeConfig = [ 'checking' => ['class' => 'primary', 'icon' => 'credit-card', 'text' => 'Corrente'], 'savings' => ['class' => 'success', 'icon' => 'piggy-bank', 'text' => 'Poupança'], 'investment' => ['class' => 'warning', 'icon' => 'chart-line', 'text' => 'Investimento'], ]; $config = $typeConfig[$account->type] ?? ['class' => 'secondary', 'icon' => 'question', 'text' => $account->type_name]; @endphp {{ $config['text'] }} |
{{ $account->account_number ?? 'N/A' }}
@if($account->agency)
Ag: {{ $account->agency }} @endif |
@if($account->balance >= 0) @else @endif R$ {{ number_format(abs($account->balance), 2, ',', '.') }} |
{{ $account->transactions_count }}
transações |
{{ $account->active ? 'Ativa' : 'Inativa' }} | |