mirror of
https://github.com/Bigherollc/wticreatorstudio.git
synced 2026-01-16 19:05:08 -05:00
78 lines
2.2 KiB
PHP
78 lines
2.2 KiB
PHP
<?php
|
|
|
|
namespace Modules\Subscription\Services;
|
|
|
|
use Illuminate\Support\Facades\Validator;
|
|
use Modules\Subscription\Repositories\RestrictedLocationRepository;
|
|
|
|
class RestrictedLocationService
|
|
{
|
|
protected $restrictedLocationRepository;
|
|
|
|
public function __construct(RestrictedLocationRepository $restrictedLocationRepository)
|
|
{
|
|
$this->restrictedLocationRepository= $restrictedLocationRepository;
|
|
}
|
|
|
|
public function getActiveAll()
|
|
{
|
|
return $this->restrictedLocationRepository->getActiveAll();
|
|
}
|
|
|
|
public function getActiveAllWithoutColor()
|
|
{
|
|
return $this->restrictedLocationRepository->getActiveAllWithoutColor();
|
|
}
|
|
|
|
public function getColorAttr()
|
|
{
|
|
return $this->restrictedLocationRepository->getColorAttr();
|
|
}
|
|
|
|
public function save($data)
|
|
{
|
|
return $this->restrictedLocationRepository->create($data);
|
|
}
|
|
|
|
public function update($data,$id)
|
|
{
|
|
return $this->restrictedLocationRepository->update($data,$id);
|
|
}
|
|
|
|
public function getAll()
|
|
{
|
|
return $this->restrictedLocationRepository->getAll();
|
|
}
|
|
|
|
public function deleteById($id)
|
|
{
|
|
return $this->restrictedLocationRepository->delete($id);
|
|
}
|
|
|
|
public function findById($id)
|
|
{
|
|
return $this->restrictedLocationRepository->find($id);
|
|
}
|
|
|
|
public function getAttributeForSpecificCategory($category_id, $category_ids)
|
|
{
|
|
return $this->restrictedLocationRepository->getAttributeForSpecificCategory($category_id, $category_ids);
|
|
}
|
|
|
|
public function getColorAttributeForSpecificCategory($category_id, $category_ids)
|
|
{
|
|
return $this->restrictedLocationRepository->getColorAttributeForSpecificCategory($category_id, $category_ids);
|
|
}
|
|
|
|
public function getColorAttributeForSpecificBrand($brand_id)
|
|
{
|
|
return $this->restrictedLocationRepository->getColorAttributeForSpecificBrand($brand_id);
|
|
}
|
|
|
|
public function getAttributeForSpecificBrand($brand_id)
|
|
{
|
|
return $this->restrictedLocationRepository->getAttributeForSpecificBrand($brand_id);
|
|
}
|
|
|
|
}
|