New-OMIS/Modules/Admin/app/Services/AdminService.php
2024-04-11 16:44:09 +05:45

52 lines
1000 B
PHP

<?php
namespace Modules\Admin\Services;
use Modules\Admin\Models\Castes;
use Modules\Admin\Models\Cities;
use Modules\Admin\Models\Country;
use Modules\Admin\Models\Districts;
use Modules\Admin\Models\Genders;
use Modules\Admin\Models\Nationalities;
use Modules\Admin\Models\Province;
final class AdminService
{
function pluckCountries()
{
return Country::pluck('title', 'country_id');
}
function pluckProvinces()
{
return Province::pluck('title', 'province_id');
}
function pluckDistricts()
{
return Districts::pluck('title', 'district_id');
}
function pluckCities()
{
return Cities::pluck('title', 'city_id');
}
function pluckCastes()
{
return Castes::pluck('title', 'caste_id');
}
function pluckGenders()
{
return Genders::pluck('title', 'gender_id');
}
function pluckNationalities()
{
return Nationalities::pluck('title', 'nationality_id');
}
}