Files
wticreatorstudio/Modules/FooterSetting/Services/FooterWidgetService.php
Fritz Ramirez 10d0c477c8 Initial commit
2024-02-12 22:54:20 -05:00

58 lines
1.3 KiB
PHP

<?php
namespace Modules\FooterSetting\Services;
use Illuminate\Support\Facades\Validator;
use \Modules\FooterSetting\Repositories\FooterWidgetRepository;
class FooterWidgetService{
protected $footerWidgetRepository;
public function __construct(FooterWidgetRepository $footerWidgetRepository)
{
$this->footerWidgetRepository = $footerWidgetRepository;
}
public function getAll()
{
return $this->footerWidgetRepository->getAll();
}
public function getAllCompany()
{
return $this->footerWidgetRepository->getAllCompany();
}
public function getAllAccount()
{
return $this->footerWidgetRepository->getAllAccount();
}
public function getAllService()
{
return $this->footerWidgetRepository->getAllService();
}
public function save($data){
return $this->footerWidgetRepository->save($data);
}
public function statusUpdate($data, $id){
return $this->footerWidgetRepository->statusUpdate($data, $id);
}
public function update($data,$id)
{
return $this->footerWidgetRepository->update($data, $id);
}
public function editById($id)
{
return $this->footerWidgetRepository->edit($id);
}
public function delete($id){
return $this->footerWidgetRepository->delete($id);
}
}