Files
portal-api/app/View/Components/Order/Customer.php
T
2025-07-24 16:18:27 +07:00

31 lines
680 B
PHP

<?php
namespace App\View\Components\Order;
use App\Repositories\Customer\CustomerRepositoryInterface;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class Customer extends Component
{
/**
* Create a new component instance.
*/
public function __construct(
public CustomerRepositoryInterface $customerRepository
)
{
//
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
$customers = $this->customerRepository->filter([],[],[]);
return view('components.order.customer',compact('customers'));
}
}