akaunting/app/Widgets/Currencies.php

21 lines
380 B
PHP
Raw Normal View History

2021-03-18 13:03:13 +03:00
<?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,
]);
}
}