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

Plan de Cuentas

Nueva Cuenta
@if(request()->hasAny(['search', 'type', 'is_active'])) Limpiar @endif
@forelse($accounts as $account) @empty @endforelse
Código Nombre Tipo Categoría Nivel Estado Acciones
{{ $account->code }}
@if($account->level > 1) @endif {{ $account->name }}
@php $typeColors = [ 'asset' => 'success', 'liability' => 'danger', 'equity' => 'info', 'revenue' => 'warning', 'expense' => 'secondary' ]; $color = $typeColors[$account->type] ?? 'secondary'; @endphp {{ ucfirst($account->type) }} {{ $account->category ? ucfirst(str_replace('_', ' ', $account->category)) : 'N/A' }} {{ $account->level }} {{ $account->is_active ? 'Activo' : 'Inactivo' }}
@csrf

No se encontraron cuentas

@if($accounts->hasPages()) @else @endif
@endsection @push('styles') @endpush