@extends('layouts.app') @section('title', 'Dashboard de Contabilidad') @section('content')
Visión general y gestión del módulo contable
| N° Asiento | Período | Fecha | Referencia | Descripción | Total | Estado | Creado por |
|---|---|---|---|---|---|---|---|
| {{ $entry->entry_number }} | {{ $entry->period->name ?? 'N/A' }} | {{ $entry->entry_date ? $entry->entry_date->format('d/m/Y') : 'N/A' }} | {{ Str::limit($entry->reference, 30) }} |
{{ Str::limit($entry->description, 50) }}
|
${{ number_format($entry->total_debit ?? 0, 2) }} | @php $statusConfig = [ 'draft' => ['class' => 'warning', 'icon' => 'edit', 'label' => 'Borrador'], 'posted' => ['class' => 'success', 'icon' => 'check-circle', 'label' => 'Registrado'], 'cancelled' => ['class' => 'danger', 'icon' => 'times-circle', 'label' => 'Cancelado'] ]; $status = $statusConfig[$entry->status] ?? ['class' => 'secondary', 'icon' => 'circle', 'label' => ucfirst($entry->status)]; @endphp {{ $status['label'] }} | {{ $entry->createdBy->name ?? 'N/A' }} |