Update source into github

This commit is contained in:
pbao9
2025-07-24 16:18:27 +07:00
parent 41419358dd
commit 69851ac7bc
2642 changed files with 284095 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\View\Components\Order;
use App\Repositories\Discount\DiscountRepositoryInterface;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class Discount extends Component
{
/**
* Create a new component instance.
*/
public function __construct(
public DiscountRepositoryInterface $discountRepository
)
{
//
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
$discounts = $this->discountRepository->filter();
return view('components.order.discount',compact('discounts'));
}
}