akaunting/app/Widgets/Currencies.php
2021-03-18 13:03:13 +03:00

21 lines
380 B
PHP

<?php
namespace App\Widgets;
use App\Abstracts\Widget;
use App\Models\Setting\Currency;
class Currencies extends Widget
{
public $default_name = 'widgets.currencies';
public function show()
{
$currencies = Currency::enabled()->take(5)->get();
return $this->view('widgets.currencies', [
'currencies' => $currencies,
]);
}
}