@extends('home') @section('css') @endsection @section('content')
@php // Definir los meses en español $meses = [ 1 => 'ENERO', 2 => 'FEBRERO', 3 => 'MARZO', 4 => 'ABRIL', 5 => 'MAYO', 6 => 'JUNIO', 7 => 'JULIO', 8 => 'AGOSTO', 9 => 'SEPTIEMBRE', 10 => 'OCTUBRE', 11 => 'NOVIEMBRE', 12 => 'DICIEMBRE', ]; // Obtén el mes actual $currentMonth = now()->month; // Calcula el mes anterior $previousMonth = $currentMonth - 1; // Si el mes actual es enero (1), el mes anterior es diciembre (12) if ($previousMonth < 1) { $previousMonth = 12; } @endphp
@endsection @section('js') @endsection