Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Mar 19, 2024
1 parent c6361c4 commit 9ebf833
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Widgets/OrdersCount.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,22 @@

namespace Cone\Bazar\Widgets;

use App\Models\Order;
use Cone\Root\Widgets\Value;
use Illuminate\Database\Eloquent\Builder;

class OrdersCount extends Value
{
/**
* The widget icon.
*/
protected ?string $icon = 'archive';

/**
* Create a new Eloquent query.
*/
public function query(): Builder
{
return Order::query()->status(Order::FULFILLED);
}
}

0 comments on commit 9ebf833

Please sign in to comment.