@if (file_exists(public_path('build/manifest.json')) || file_exists(public_path('hot'))) @vite(['resources/css/app.css', 'resources/js/app.js']) @else @endif
Background
Truncgil Finance Logo
@if (Route::has('login')) @endif
@php $response = file_get_contents('https://finance.truncgil.com/api/today.json'); $data = json_decode($response, true); $currencies = ['USD', 'EUR', 'GBP', 'GRA', 'BTC', 'ETH', 'XRP', 'LTC']; $rates = []; foreach ($currencies as $currency) { $rates[$currency] = $data['Rates'][$currency] ?? null; } @endphp
@foreach($rates AS $currencyName => $rate)
@include('currency', [ 'currencyName' => $currencyName, 'rate' => $rate ])
@endforeach