@php $currency = \App\Models\Currency::orderByDesc('created_at')->first(); $date = is_null($currency) ? 'Error' : $currency->created_at->diffForHumans(); @endphp @if (session()->has('fetch_status'))
session('fetch_status') === 'error', 'alert-success' => session('fetch_status') !== 'error', ])> {{ session('fetch_status') === 'error' ? 'No se pudo obtener la tasa del día' : "La tasa del día ha sido registrada. Última actualización: $date" }}
@php session()->forget('fetch_status'); @endphp @endif @yield('content')
@include('layouts.theme.footer')