mirror of
https://github.com/openclassify/openclassify.git
synced 2026-04-14 11:12:09 -05:00
Merge branch 'basetheme' of https://github.com/openclassify/openclassify into basetheme
This commit is contained in:
commit
62273c7d5d
@ -27,6 +27,9 @@ OpenClassify is the extensible and most advanced open source classified app buil
|
||||
|
||||
{{ addBlock('ad-detail/title/action',{'adv':adv})|raw }}
|
||||
|
||||
- profile-module/profile/partials/navigation
|
||||
|
||||
{{ addBlock('profile/navigation')|raw }}
|
||||
|
||||
## Server Requirements
|
||||
|
||||
|
||||
@ -1,7 +1,6 @@
|
||||
<div class="description-info">
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-md-12">
|
||||
<nav>
|
||||
<div class="nav nav-tabs nav-fill ad-detail-tabs" id="nav-tab" role="tablist">
|
||||
@ -12,7 +11,7 @@
|
||||
aria-selected="true">{{ trans('visiosoft.module.advs::field.description.name') }}</a>
|
||||
|
||||
<!-- Content Tab With Block -->
|
||||
{{ addBlock('ad-detail/content-tab')|raw }}
|
||||
{{ addBlock('ad-detail/content-tab',{'features':features})|raw }}
|
||||
<!-- Content Tab With Block -->
|
||||
</div>
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
{{ addBlock('list/row')|raw }}
|
||||
{{ addBlock('ads-list/row',{'topfields':topfields})|raw }}
|
||||
<div class="row">
|
||||
{% block listContent %}
|
||||
{% include "visiosoft.module.advs::list/partials/ads" %}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
<nav aria-label="breadcrumb">
|
||||
<nav aria-label="breadcrumb" class="d-none d-sm-block">
|
||||
<ol class="breadcrumb">
|
||||
<li class="breadcrumb-item">
|
||||
<a href="{{ url('') }}" class="text-dark">
|
||||
|
||||
@ -6,7 +6,18 @@
|
||||
<div class="row">
|
||||
<div id="filter" class="w-100 mb-3">
|
||||
|
||||
{{ addBlock('ads-list/partials/list-filter',{'mainCats':mainCats,'subCats':subCats})|raw }}
|
||||
{{ addBlock('ads-list/partials/list-filter',{
|
||||
'mainCats':mainCats,
|
||||
'subCats':subCats,
|
||||
'ranges':ranges,
|
||||
'checkboxes':checkboxes,
|
||||
'radio':radio,
|
||||
'countries':countries,
|
||||
'cities':cities,
|
||||
'districts':districts,
|
||||
'neighborhoods':neighborhoods,
|
||||
'villages':villages
|
||||
})|raw }}
|
||||
|
||||
<div class="card mb-3">
|
||||
<div class="card-header breadcrumb mb-0" id="priceHeading">
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
<th scope="col"
|
||||
class="text-center align-middle">{{ trans('visiosoft.module.advs::field.advs_list_table_thead.location_city') }}
|
||||
/ {{ trans('visiosoft.module.advs::field.advs_list_table_thead.location_country') }}</th>
|
||||
{{ addBlock('ads-list/table-column',{'seenList':seenList})|raw }}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -43,6 +44,7 @@
|
||||
<small>{{ adv.city_name }} / {{ adv.country_name }}</small>
|
||||
</td>
|
||||
{% endif %}
|
||||
{{ addBlock('ads-list/table-row',{'seenList':seenList,'adv':adv})|raw }}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
@ -154,7 +154,7 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
||||
|
||||
public function popularAdvs()
|
||||
{
|
||||
return $this->getAdv()->where('popular_adv', 1)->paginate(9);
|
||||
return $this->getAdv()->orderBy('count_show_ad', 'desc')->limit(10)->get();
|
||||
}
|
||||
|
||||
public function advsofDay()
|
||||
@ -230,12 +230,12 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
||||
$id = $object->id;
|
||||
$seo = str_slug($object->name);
|
||||
$seo = str_replace('_', '-', $seo);
|
||||
return \route('adv_detail_seo', [$id, $seo]);
|
||||
return \route('adv_detail_seo', [$seo, $id]);
|
||||
}
|
||||
$id = $object->getObject()->id;
|
||||
$seo = str_slug($object->getObject()->name);
|
||||
$seo = str_replace('_', '-', $seo);
|
||||
return \route('adv_detail_seo', [$id, $seo]);
|
||||
return \route('adv_detail_seo', [$seo, $id]);
|
||||
}
|
||||
|
||||
public function getAdvDetailLinkByAdId($id)
|
||||
@ -245,7 +245,7 @@ class AdvModel extends AdvsAdvsEntryModel implements AdvInterface
|
||||
$id = $adv->id;
|
||||
$seo = str_slug($adv->name);
|
||||
$seo = str_replace('_', '-', $seo);
|
||||
return \route('adv_detail_seo', [$id, $seo]);
|
||||
return \route('adv_detail_seo', [$seo, $id]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -80,7 +80,11 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
|
||||
}
|
||||
if (!empty($param['cat'])) {
|
||||
$cat = new CategoryModel();
|
||||
$catLevel = $cat->getCatLevel($param['cat']);
|
||||
$cat_d = $cat->find($param['cat']);
|
||||
if ($cat_d->parent_category_id == null)
|
||||
$catLevel = 1;
|
||||
else
|
||||
$catLevel = $cat->getCatLevel($param['cat']);
|
||||
$catLevel = "cat" . $catLevel;
|
||||
$query = $query->where($catLevel, $param['cat']);
|
||||
}
|
||||
|
||||
@ -1,63 +1,13 @@
|
||||
<?php namespace Visiosoft\AdvsModule;
|
||||
|
||||
use Anomaly\FilesModule\Disk\Contract\DiskRepositoryInterface;
|
||||
use Anomaly\FilesModule\Folder\Contract\FolderRepositoryInterface;
|
||||
use Anomaly\Streams\Platform\Database\Seeder\Seeder;
|
||||
use Anomaly\Streams\Platform\Model\Options\OptionsAdvertisementEntryModel;
|
||||
use Chumper\Zipper\Zipper;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Visiosoft\AdvsModule\Seed\BlockSeeder;
|
||||
|
||||
class AdvsModuleSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* The disk repository.
|
||||
*
|
||||
* @var DiskRepositoryInterface
|
||||
*/
|
||||
protected $disks;
|
||||
|
||||
/**
|
||||
* The folder repository.
|
||||
*
|
||||
* @var FolderRepositoryInterface
|
||||
*/
|
||||
protected $folders;
|
||||
|
||||
/**
|
||||
* Create a new FolderSeeder instance.
|
||||
*
|
||||
* @param DiskRepositoryInterface $disks
|
||||
* @param FolderRepositoryInterface $folders
|
||||
*/
|
||||
public function __construct(DiskRepositoryInterface $disks, FolderRepositoryInterface $folders)
|
||||
{
|
||||
$this->disks = $disks;
|
||||
$this->folders = $folders;
|
||||
}
|
||||
|
||||
/**
|
||||
* Run the seeder.
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
//Download demo SQL
|
||||
$repository = "https://raw.githubusercontent.com/openclassify/Openclassify-Demo-Data/master/";
|
||||
file_put_contents(__DIR__."/demo.sql", fopen($repository."demo.sql", 'r'));
|
||||
//Download demo Files and Extract to Files
|
||||
file_put_contents("advs-files.zip", fopen($repository."advs-files.zip", 'r'));
|
||||
$zipper = new Zipper();
|
||||
$zipper->make('advs-files.zip')->folder('advs-files')->extractTo(base_path().'/public/app/default/files-module/local/images/');
|
||||
$zipper->close();
|
||||
|
||||
$this->call(BlockSeeder::class);
|
||||
|
||||
/* Demo Start */
|
||||
DB::table('files_files')->truncate();
|
||||
Model::unguard();
|
||||
DB::unprepared(file_get_contents(__DIR__.'/demo.sql'));
|
||||
Model::reguard();
|
||||
/* Demo Stop*/
|
||||
}
|
||||
}
|
||||
@ -118,15 +118,23 @@ class AdvsModuleServiceProvider extends AddonServiceProvider
|
||||
'as' => 'adv_detail_seo',
|
||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\advsController@view'
|
||||
],
|
||||
'ad/{id}' => [
|
||||
'as' => 'adv_detail',
|
||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\advsController@view'
|
||||
],
|
||||
'ad/{seo}/{id}' => [
|
||||
'as' => 'adv_detail_seo',
|
||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\advsController@view'
|
||||
],
|
||||
'advs/map?country={country}&city[]={city}&district={districts}' => [
|
||||
'as' => 'visiosoft.module.advs::show_ad_map_location',
|
||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\advsController@map'
|
||||
],
|
||||
'advs/categories' => 'Visiosoft\AdvsModule\Http\Controller\CategoriesController@index',
|
||||
'advs/categories/{cat}' => 'Visiosoft\AdvsModule\Http\Controller\CategoriesController@listByCat',
|
||||
'advs/c/{cat}' => 'Visiosoft\AdvsModule\Http\Controller\CategoriesController@listByCat',
|
||||
'advs/module_active' => 'Visiosoft\AdvsModule\Http\Controller\advsController@index',
|
||||
'advs/create_adv' => [
|
||||
'as' => "create_adv",
|
||||
'as' => "advs::create_adv",
|
||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\advsController@cats',
|
||||
],
|
||||
'advs/create_adv/post_cat' => [
|
||||
|
||||
@ -83,8 +83,14 @@ class AdvsController extends AdminController
|
||||
|
||||
$table->setColumns([
|
||||
'cover_photo' => [
|
||||
'wrapper' => '<img width="64" src="{value.cover_photo}">',
|
||||
'value' => ['cover_photo' => 'entry.cover_photo']
|
||||
'wrapper' => function (EntryInterface $entry, Request $request) {
|
||||
if (strpos($entry->cover_photo, 'http') === 0) {
|
||||
$wrapper = '<img width="64" src="'.$entry->cover_photo.'">';
|
||||
} else {
|
||||
$wrapper = '<img width="64" src="'.$request->root().'/'.$entry->cover_photo.'">';
|
||||
}
|
||||
return $wrapper;
|
||||
},
|
||||
],
|
||||
'entry.id',
|
||||
'name' => [
|
||||
@ -183,6 +189,7 @@ class AdvsController extends AdminController
|
||||
|
||||
$default_adv_publish = $settings->value('visiosoft.module.advs::default_published_time');
|
||||
$adv->finish_at = date('Y-m-d H:i:s', strtotime(date('Y-m-d H:i:s') . ' + ' . $default_adv_publish . ' day'));
|
||||
$adv->publish_at = date('Y-m-d H:i:s');
|
||||
|
||||
//algolia Search Module
|
||||
$isActiveAlgolia = new AdvModel();
|
||||
|
||||
@ -8,12 +8,24 @@ class CategoriesController extends PublicController {
|
||||
|
||||
public function listByCat($cat) {
|
||||
$advs = DB::table('advs_advs')
|
||||
->where('category_id', $cat)
|
||||
->where('cat1', $cat)
|
||||
->orwhere('cat2', $cat)
|
||||
->orwhere('cat3', $cat)
|
||||
->orwhere('cat4', $cat)
|
||||
->orwhere('cat5', $cat)
|
||||
->orwhere('cat6', $cat)
|
||||
->orwhere('cat7', $cat)
|
||||
->leftJoin('users_users as u1', 'advs_advs.created_by_id', '=', 'u1.id')
|
||||
->leftJoin('advs_advs_translations as t1', 'advs_advs.id', '=', 't1.id')
|
||||
->select('advs_advs.*','u1.username as owner', 't1.name as name')
|
||||
->get();
|
||||
|
||||
foreach ($advs as $adv) {
|
||||
if (strpos($adv->cover_photo, 'http') !== 0 && strpos($adv->cover_photo, '/') !== 0) {
|
||||
$adv->cover_photo = "/$adv->cover_photo";
|
||||
}
|
||||
}
|
||||
|
||||
return $this->view->make('visiosoft.module.advs::list/list', compact('advs'));
|
||||
}
|
||||
}
|
||||
|
||||
@ -146,6 +146,18 @@ class AdvsController extends PublicController
|
||||
$subCats = array();
|
||||
|
||||
$param = $this->requestHttp->toArray();
|
||||
if (!isset($param['country'])) {
|
||||
if (is_null(Cookie::get('country'))) {
|
||||
$param['country'] = setting_value('visiosoft.module.advs::default_country');
|
||||
} else {
|
||||
$param['country'] = Cookie::get('country');
|
||||
}
|
||||
} else {
|
||||
if ($param['country'] != setting_value('visiosoft.module.advs::default_country')) {
|
||||
Cookie::queue(Cookie::make('country', $param['country'], 84000));
|
||||
}
|
||||
}
|
||||
$searchedCountry = $param['country'];
|
||||
|
||||
$countries = $this->country_repository->viewAll();
|
||||
|
||||
@ -182,6 +194,7 @@ class AdvsController extends PublicController
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (isset($param['cat']) and $param['cat'] != "") {
|
||||
$cat = $param['cat'];
|
||||
$seo_keywords = $this->category_model->getMeta_keywords($param['cat']);
|
||||
@ -192,7 +205,12 @@ class AdvsController extends PublicController
|
||||
$this->template->set('meta_description', $seo_description);
|
||||
$this->template->set('meta_title', $seo_title);
|
||||
|
||||
$mainCats = $this->category_model->getParentCats($cat, 'category_ids');
|
||||
$mainCats = $this->category_model->getMains($cat);
|
||||
$current_cat = $this->category_model->getCat($cat);
|
||||
$mainCats[] = [
|
||||
'id' => $current_cat->id,
|
||||
'val' => $current_cat->name,
|
||||
];
|
||||
$subCats = $this->category_repository->getSubCatById($cat);
|
||||
} else {
|
||||
$cat = null;
|
||||
@ -202,9 +220,9 @@ class AdvsController extends PublicController
|
||||
if ($isActiveCustomFields) {
|
||||
$returnvalues = app('Visiosoft\CustomfieldsModule\Http\Controller\cfController')->index($mainCats, $subCats);
|
||||
$checkboxes = $returnvalues['checkboxes'];
|
||||
$textfields = $returnvalues['textfields'];
|
||||
$topfields = $returnvalues['topfields'];
|
||||
$ranges = $returnvalues['ranges'];
|
||||
$radio = $returnvalues['radio'];
|
||||
}
|
||||
|
||||
if (!empty($param['user'])) {
|
||||
@ -212,8 +230,8 @@ class AdvsController extends PublicController
|
||||
$userProfile = $this->profile_repository->getProfile($user->id);
|
||||
}
|
||||
|
||||
$compact = compact('advs', 'countries', 'mainCats', 'subCats', 'textfields', 'checkboxes', 'request',
|
||||
'user', 'userProfile', 'featured_advs', 'type', 'topfields', 'ranges', 'seenList');
|
||||
$compact = compact('advs', 'countries', 'mainCats', 'subCats', 'checkboxes', 'request',
|
||||
'user', 'userProfile', 'featured_advs', 'type', 'topfields', 'ranges', 'seenList', 'searchedCountry', 'radio');
|
||||
|
||||
Cookie::queue(Cookie::make('last_search', $this->requestHttp->getRequestUri(), 84000));
|
||||
|
||||
@ -233,8 +251,10 @@ class AdvsController extends PublicController
|
||||
return redirect($this->request->headers->get('referer'));
|
||||
}
|
||||
|
||||
public function view($id)
|
||||
public function view($seo, $id = null)
|
||||
{
|
||||
$id = is_null($id) ? $seo : $id;
|
||||
|
||||
$categories = array();
|
||||
$categories_id = array();
|
||||
$isActiveComplaints = $this->adv_model->is_enabled('complaints');
|
||||
|
||||
@ -1,208 +0,0 @@
|
||||
<?php namespace Visiosoft\AdvsModule\Seed;
|
||||
|
||||
use Anomaly\Streams\Platform\Database\Seeder\Seeder;
|
||||
use Anomaly\Streams\Platform\Model\Blocks\BlocksAreasEntryModel;
|
||||
use Anomaly\Streams\Platform\Model\Blocks\BlocksBlocksEntryModel;
|
||||
use Anomaly\Streams\Platform\Model\HtmlBlock\HtmlBlockBlocksEntryModel;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class BlockSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Run the seeder.
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
DB::table('blocks_areas')
|
||||
->where('slug', 'left-home-banner-area')
|
||||
->orWhere('slug', 'middle-home-banner-area')
|
||||
->orWhere('slug', 'right-home-banner-area')
|
||||
->orWhere('slug', 'list-item-right-sidebar')
|
||||
->orWhere('slug', 'center-add-ad-banner-area')
|
||||
->orWhere('slug', 'profile-right-sidebar')
|
||||
->delete();
|
||||
|
||||
// Add Ad Center Banner Area
|
||||
$center_add_ad_banner_area = BlocksAreasEntryModel::create([
|
||||
'en' => [
|
||||
'name' => 'Center Add Ad Banner Area',
|
||||
],
|
||||
'tr' => [
|
||||
'name' => 'İlan Ver Orta Reklam Alanı',
|
||||
],
|
||||
'slug' => 'center-add-ad-banner-area',
|
||||
]);
|
||||
|
||||
$center_add_ad_banner_html = HtmlBlockBlocksEntryModel::create([
|
||||
'en' => [
|
||||
'html' => file_get_contents(__DIR__ . '/Blocks/middle-home-banner-area.twig'),
|
||||
],
|
||||
'tr' => [
|
||||
'html' => file_get_contents(__DIR__ . '/Blocks/middle-home-banner-area.twig'),
|
||||
],
|
||||
]);
|
||||
|
||||
BlocksBlocksEntryModel::create([
|
||||
'area_id' => $center_add_ad_banner_area->id,
|
||||
'area_type' => 'Anomaly\BlocksModule\Area\AreaModel',
|
||||
'field_id' => 52,
|
||||
'extension' => 'anomaly.extension.html_block',
|
||||
'display_title' => 0,
|
||||
'entry_type' => 'Anomaly\HtmlBlockExtension\Block\BlockModel',
|
||||
'entry_id' => $center_add_ad_banner_html->id,
|
||||
]);
|
||||
|
||||
// left Home Banner Area
|
||||
$left_home_banner_area = BlocksAreasEntryModel::create([
|
||||
'en' => [
|
||||
'name' => 'Left Home Banner Area',
|
||||
],
|
||||
'tr' => [
|
||||
'name' => 'Anasayfa Sol reklam alanı',
|
||||
],
|
||||
'slug' => 'left-home-banner-area',
|
||||
]);
|
||||
|
||||
$left_home_banner_html = HtmlBlockBlocksEntryModel::create([
|
||||
'en' => [
|
||||
'html' => file_get_contents(__DIR__ . '/Blocks/left-home-banner-area.twig'),
|
||||
],
|
||||
'tr' => [
|
||||
'html' => file_get_contents(__DIR__ . '/Blocks/left-home-banner-area.twig'),
|
||||
],
|
||||
]);
|
||||
|
||||
BlocksBlocksEntryModel::create([
|
||||
'area_id' => $left_home_banner_area->id,
|
||||
'area_type' => 'Anomaly\BlocksModule\Area\AreaModel',
|
||||
'field_id' => 52,
|
||||
'extension' => 'anomaly.extension.html_block',
|
||||
'display_title' => 0,
|
||||
'entry_type' => 'Anomaly\HtmlBlockExtension\Block\BlockModel',
|
||||
'entry_id' => $left_home_banner_html->id,
|
||||
]);
|
||||
|
||||
// middle Home Banner Area
|
||||
$middle_home_banner_area = BlocksAreasEntryModel::create([
|
||||
'en' => [
|
||||
'name' => 'Middle Home Banner Area',
|
||||
],
|
||||
'tr' => [
|
||||
'name' => 'Anasayfa Orta reklam alanı',
|
||||
],
|
||||
'slug' => 'middle-home-banner-area',
|
||||
]);
|
||||
|
||||
$middle_home_banner_html = HtmlBlockBlocksEntryModel::create([
|
||||
'en' => [
|
||||
'html' => file_get_contents(__DIR__ . '/Blocks/middle-home-banner-area.twig'),
|
||||
],
|
||||
'tr' => [
|
||||
'html' => file_get_contents(__DIR__ . '/Blocks/middle-home-banner-area.twig'),
|
||||
],
|
||||
]);
|
||||
BlocksBlocksEntryModel::create([
|
||||
'area_id' => $middle_home_banner_area->id,
|
||||
'area_type' => 'Anomaly\BlocksModule\Area\AreaModel',
|
||||
'field_id' => 52,
|
||||
'extension' => 'anomaly.extension.html_block',
|
||||
'display_title' => 0,
|
||||
'entry_type' => 'Anomaly\HtmlBlockExtension\Block\BlockModel',
|
||||
'entry_id' => $middle_home_banner_html->id,
|
||||
]);
|
||||
|
||||
// right Home Banner Area
|
||||
$right_home_banner_area = BlocksAreasEntryModel::create([
|
||||
'en' => [
|
||||
'name' => 'Right Home Banner Area',
|
||||
],
|
||||
'tr' => [
|
||||
'name' => 'Anasayfa Sağ reklam alanı',
|
||||
],
|
||||
'slug' => 'right-home-banner-area',
|
||||
]);
|
||||
|
||||
$right_home_banner_html = HtmlBlockBlocksEntryModel::create([
|
||||
'en' => [
|
||||
'html' => file_get_contents(__DIR__ . '/Blocks/right-home-banner-area.twig'),
|
||||
|
||||
],
|
||||
'tr' => [
|
||||
'html' => file_get_contents(__DIR__ . '/Blocks/right-home-banner-area.twig'),
|
||||
|
||||
],
|
||||
]);
|
||||
|
||||
BlocksBlocksEntryModel::create([
|
||||
'area_id' => $right_home_banner_area->id,
|
||||
'area_type' => 'Anomaly\BlocksModule\Area\AreaModel',
|
||||
'field_id' => 52,
|
||||
'extension' => 'anomaly.extension.html_block',
|
||||
'display_title' => 0,
|
||||
'entry_type' => 'Anomaly\HtmlBlockExtension\Block\BlockModel',
|
||||
'entry_id' => $right_home_banner_html->id,
|
||||
]);
|
||||
|
||||
// List item Right Sidebar
|
||||
$list_item_right_sidebar_area = BlocksAreasEntryModel::create([
|
||||
'en' => [
|
||||
'name' => 'List item Right Sidebar',
|
||||
],
|
||||
'tr' => [
|
||||
'name' => 'ilan Detay Sağ Alan',
|
||||
],
|
||||
'slug' => 'list-item-right-sidebar',
|
||||
]);
|
||||
|
||||
$list_item_right_sidebar_html = HtmlBlockBlocksEntryModel::create([
|
||||
'en' => [
|
||||
'html' => file_get_contents(__DIR__ . '/Blocks/list-item-right-sidebar-en.twig'),
|
||||
],
|
||||
'tr' => [
|
||||
'html' => file_get_contents(__DIR__ . '/Blocks/list-item-right-sidebar-tr.twig'),
|
||||
],
|
||||
]);
|
||||
BlocksBlocksEntryModel::create([
|
||||
'area_id' => $list_item_right_sidebar_area->id,
|
||||
'area_type' => 'Anomaly\BlocksModule\Area\AreaModel',
|
||||
'field_id' => 52,
|
||||
'extension' => 'anomaly.extension.html_block',
|
||||
'display_title' => 0,
|
||||
'entry_type' => 'Anomaly\HtmlBlockExtension\Block\BlockModel',
|
||||
'entry_id' => $list_item_right_sidebar_html->id,
|
||||
]);
|
||||
|
||||
// Profile Right Sidebar
|
||||
|
||||
$profile_right_sidebar_area = BlocksAreasEntryModel::create([
|
||||
'en' => [
|
||||
'name' => 'Profile Right Sidebar',
|
||||
],
|
||||
'tr' => [
|
||||
'name' => 'Profil Sağ Alan',
|
||||
],
|
||||
'slug' => 'profile-right-sidebar',
|
||||
]);
|
||||
|
||||
$profile_right_sidebar_html = HtmlBlockBlocksEntryModel::create([
|
||||
'en' => [
|
||||
'html' => file_get_contents(__DIR__ . '/Blocks/list-item-right-sidebar-en.twig'),
|
||||
],
|
||||
'tr' => [
|
||||
'html' => file_get_contents(__DIR__ . '/Blocks/list-item-right-sidebar-tr.twig'),
|
||||
],
|
||||
]);
|
||||
BlocksBlocksEntryModel::create([
|
||||
'area_id' => $profile_right_sidebar_area->id,
|
||||
'area_type' => 'Anomaly\BlocksModule\Area\AreaModel',
|
||||
'field_id' => 52,
|
||||
'extension' => 'anomaly.extension.html_block',
|
||||
'display_title' => 0,
|
||||
'entry_type' => 'Anomaly\HtmlBlockExtension\Block\BlockModel',
|
||||
'entry_id' => $profile_right_sidebar_html->id,
|
||||
]);
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
<div class="advertisement">
|
||||
<a href="#"><img src="{{ img('theme::images/ads/2.jpg').url }}" alt="Images" class="img-responsive"></a>
|
||||
</div>
|
||||
@ -1,45 +0,0 @@
|
||||
<div class="cta">
|
||||
<!-- single-cta -->
|
||||
<div class="single-cta">
|
||||
<!-- cta-icon -->
|
||||
<div class="cta-icon icon-secure">
|
||||
<img src="{{ img('theme::images/icon/13.png').url }}" alt="Icon"
|
||||
class="img-responsive">
|
||||
</div><!-- cta-icon -->
|
||||
|
||||
<h4>Secure Trading</h4>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit</p>
|
||||
</div><!-- single-cta -->
|
||||
|
||||
<!-- single-cta -->
|
||||
<div class="single-cta">
|
||||
<!-- cta-icon -->
|
||||
<div class="cta-icon icon-support">
|
||||
<img src="{{ img('theme::images/icon/14.png').url }}" alt="Icon"
|
||||
class="img-responsive">
|
||||
</div><!-- cta-icon -->
|
||||
|
||||
<h4>24/7 Support</h4>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit</p>
|
||||
</div><!-- single-cta -->
|
||||
|
||||
|
||||
<!-- single-cta -->
|
||||
<div class="single-cta">
|
||||
<!-- cta-icon -->
|
||||
<div class="cta-icon icon-trading">
|
||||
<img src="{{ img('theme::images/icon/15.png').url }}" alt="Icon"
|
||||
class="img-responsive">
|
||||
</div><!-- cta-icon -->
|
||||
|
||||
<h4>Easy Trading</h4>
|
||||
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit</p>
|
||||
</div><!-- single-cta -->
|
||||
|
||||
<!-- single-cta -->
|
||||
<div class="single-cta">
|
||||
<h5>Need help?</h5>
|
||||
<p><span>Give a call on</span><a
|
||||
href="tellto:08048100000"> 08048100000</a></p>
|
||||
</div><!-- single-cta -->
|
||||
</div>
|
||||
@ -1,50 +0,0 @@
|
||||
<div class="cta">
|
||||
<!-- single-cta -->
|
||||
<div class="single-cta">
|
||||
<!-- cta-icon -->
|
||||
<div class="cta-icon icon-secure">
|
||||
<img src="{{ img('theme::images/icon/13.png').url }}" alt="Icon"
|
||||
class="img-responsive">
|
||||
</div><!-- cta-icon -->
|
||||
|
||||
<h4>Güvenli Ticaret</h4>
|
||||
<p>Kolay, Güvenli ve Avantajlı Alışveriş için</p>
|
||||
</div><!-- single-cta -->
|
||||
|
||||
<!-- single-cta -->
|
||||
<div class="single-cta">
|
||||
<!-- cta-icon -->
|
||||
<div class="cta-icon icon-support">
|
||||
<img src="{{ img('theme::images/icon/14.png').url }}" alt="Icon"
|
||||
class="img-responsive">
|
||||
</div><!-- cta-icon -->
|
||||
|
||||
<h4>7/24 Saat Destek</h4>
|
||||
<p>Hızlı ve Kolay çözüm imkanı</p>
|
||||
</div><!-- single-cta -->
|
||||
|
||||
|
||||
<!-- single-cta -->
|
||||
<div class="single-cta">
|
||||
<!-- cta-icon -->
|
||||
<div class="cta-icon icon-trading">
|
||||
<img src="{{ img('theme::images/icon/15.png').url }}" alt="Icon"
|
||||
class="img-responsive">
|
||||
</div><!-- cta-icon -->
|
||||
|
||||
<h4>Kolay Alışveriş</h4>
|
||||
<p>Çoklu dil desteği ve Çoklu Para Birimi</p>
|
||||
</div><!-- single-cta -->
|
||||
|
||||
<!-- single-cta -->
|
||||
<div class="single-cta">
|
||||
<!-- cta-icon -->
|
||||
<div class="cta-icon icon-trading">
|
||||
<img src="{{ img('theme::images/icon/14.png').url }}" alt="Icon"
|
||||
class="img-responsive">
|
||||
</div><!-- cta-icon -->
|
||||
<h5>Yardıma mı ihtiyacınız var?</h5>
|
||||
<p><span>Hemen Arayın</span><a
|
||||
href="tellto:08048100000"> 08048100000</a></p>
|
||||
</div><!-- single-cta -->
|
||||
</div>
|
||||
@ -1,3 +0,0 @@
|
||||
<div class="ad-section text-center">
|
||||
<a href="#"><img src="{{ img('theme::images/ads/3.jpg').url }}" alt="Image" class="img-responsive"></a>
|
||||
</div>
|
||||
@ -1,3 +0,0 @@
|
||||
<div class="advertisement text-center">
|
||||
<a href="#"><img src="{{ img('theme::images/ads/1.jpg').url }}" alt="Images" class="img-responsive"></a>
|
||||
</div>
|
||||
473
addons/default/visiosoft/base-theme/resources/css/select2.css
Normal file
473
addons/default/visiosoft/base-theme/resources/css/select2.css
Normal file
@ -0,0 +1,473 @@
|
||||
.select2-container {
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
vertical-align: middle; }
|
||||
.select2-container .select2-selection--single {
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
height: 28px;
|
||||
user-select: none;
|
||||
-webkit-user-select: none; }
|
||||
.select2-container .select2-selection--single .select2-selection__rendered {
|
||||
display: block;
|
||||
padding-left: 8px;
|
||||
padding-right: 20px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap; }
|
||||
.select2-container .select2-selection--single .select2-selection__clear {
|
||||
position: relative; }
|
||||
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
|
||||
padding-right: 8px;
|
||||
padding-left: 20px; }
|
||||
.select2-container .select2-selection--multiple {
|
||||
box-sizing: border-box;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
min-height: 32px;
|
||||
user-select: none;
|
||||
-webkit-user-select: none; }
|
||||
.select2-container .select2-search--inline {
|
||||
float: left; }
|
||||
.select2-container .select2-search--inline .select2-search__field {
|
||||
box-sizing: border-box;
|
||||
border: none;
|
||||
font-size: 100%;
|
||||
margin-top: 5px;
|
||||
padding: 0; }
|
||||
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none; }
|
||||
|
||||
.select2-dropdown {
|
||||
background-color: white;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
box-sizing: border-box;
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: -100000px;
|
||||
width: 100%;
|
||||
z-index: 1051; }
|
||||
|
||||
.select2-results {
|
||||
display: block; }
|
||||
|
||||
.select2-results__options {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0; }
|
||||
|
||||
.select2-results__option {
|
||||
padding: 6px;
|
||||
user-select: none;
|
||||
-webkit-user-select: none; }
|
||||
.select2-results__option[aria-selected] {
|
||||
cursor: pointer; }
|
||||
|
||||
.select2-container--open .select2-dropdown {
|
||||
left: 0; }
|
||||
|
||||
.select2-container--open .select2-dropdown--above {
|
||||
border-bottom: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0; }
|
||||
|
||||
.select2-container--open .select2-dropdown--below {
|
||||
border-top: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0; }
|
||||
|
||||
.select2-search--dropdown {
|
||||
display: block;
|
||||
padding: 4px; }
|
||||
.select2-search--dropdown .select2-search__field {
|
||||
padding: 4px;
|
||||
width: 100%;
|
||||
box-sizing: border-box; }
|
||||
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none; }
|
||||
.select2-search--dropdown.select2-search--hide {
|
||||
display: none; }
|
||||
|
||||
.select2-close-mask {
|
||||
border: 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: block;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
min-height: 100%;
|
||||
min-width: 100%;
|
||||
height: auto;
|
||||
width: auto;
|
||||
opacity: 0;
|
||||
z-index: 99;
|
||||
background-color: #fff;
|
||||
filter: alpha(opacity=0); }
|
||||
|
||||
.select2-hidden-accessible {
|
||||
border: 0 !important;
|
||||
clip: rect(0 0 0 0) !important;
|
||||
height: 1px !important;
|
||||
margin: -1px !important;
|
||||
overflow: hidden !important;
|
||||
padding: 0 !important;
|
||||
position: absolute !important;
|
||||
width: 1px !important; }
|
||||
|
||||
.select2-container--default .select2-selection--single {
|
||||
background-color: #fff;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
||||
color: #444;
|
||||
line-height: 28px; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__clear {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
font-weight: bold; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__placeholder {
|
||||
color: #999; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
||||
height: 26px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
right: 1px;
|
||||
width: 20px; }
|
||||
.select2-container--default .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: #888 transparent transparent transparent;
|
||||
border-style: solid;
|
||||
border-width: 5px 4px 0 4px;
|
||||
height: 0;
|
||||
left: 50%;
|
||||
margin-left: -4px;
|
||||
margin-top: -2px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 0; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
||||
float: left; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
||||
left: 1px;
|
||||
right: auto; }
|
||||
|
||||
.select2-container--default.select2-container--disabled .select2-selection--single {
|
||||
background-color: #eee;
|
||||
cursor: default; }
|
||||
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
|
||||
display: none; }
|
||||
|
||||
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: transparent transparent #888 transparent;
|
||||
border-width: 0 4px 5px 4px; }
|
||||
|
||||
.select2-container--default .select2-selection--multiple {
|
||||
background-color: white;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
cursor: text; }
|
||||
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
|
||||
list-style: none; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
|
||||
color: #999;
|
||||
margin-top: 5px;
|
||||
float: left; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__clear {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
font-weight: bold;
|
||||
margin-top: 5px;
|
||||
margin-right: 10px; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
||||
background-color: #e4e4e4;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
cursor: default;
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
margin-top: 5px;
|
||||
padding: 0 5px; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
|
||||
color: #999;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
margin-right: 2px; }
|
||||
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
|
||||
color: #333; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
|
||||
float: right; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
||||
margin-left: 5px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
||||
margin-left: 2px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
||||
border: solid black 1px;
|
||||
outline: 0; }
|
||||
|
||||
.select2-container--default.select2-container--disabled .select2-selection--multiple {
|
||||
background-color: #eee;
|
||||
cursor: default; }
|
||||
|
||||
.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
|
||||
display: none; }
|
||||
|
||||
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0; }
|
||||
|
||||
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0; }
|
||||
|
||||
.select2-container--default .select2-search--dropdown .select2-search__field {
|
||||
border: 1px solid #aaa; }
|
||||
|
||||
.select2-container--default .select2-search--inline .select2-search__field {
|
||||
background: transparent;
|
||||
border: none;
|
||||
outline: 0;
|
||||
box-shadow: none;
|
||||
-webkit-appearance: textfield; }
|
||||
|
||||
.select2-container--default .select2-results > .select2-results__options {
|
||||
max-height: 200px;
|
||||
overflow-y: auto; }
|
||||
|
||||
.select2-container--default .select2-results__option[role=group] {
|
||||
padding: 0; }
|
||||
|
||||
.select2-container--default .select2-results__option[aria-disabled=true] {
|
||||
color: #999; }
|
||||
|
||||
.select2-container--default .select2-results__option[aria-selected=true] {
|
||||
background-color: #ddd; }
|
||||
|
||||
.select2-container--default .select2-results__option .select2-results__option {
|
||||
padding-left: 1em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
|
||||
padding-left: 0; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -1em;
|
||||
padding-left: 2em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -2em;
|
||||
padding-left: 3em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -3em;
|
||||
padding-left: 4em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -4em;
|
||||
padding-left: 5em; }
|
||||
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
||||
margin-left: -5em;
|
||||
padding-left: 6em; }
|
||||
|
||||
.select2-container--default .select2-results__option--highlighted[aria-selected] {
|
||||
background-color: #5897fb;
|
||||
color: white; }
|
||||
|
||||
.select2-container--default .select2-results__group {
|
||||
cursor: default;
|
||||
display: block;
|
||||
padding: 6px; }
|
||||
|
||||
.select2-container--classic .select2-selection--single {
|
||||
background-color: #f7f7f7;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
outline: 0;
|
||||
background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
|
||||
background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
|
||||
background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
||||
.select2-container--classic .select2-selection--single:focus {
|
||||
border: 1px solid #5897fb; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__rendered {
|
||||
color: #444;
|
||||
line-height: 28px; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__clear {
|
||||
cursor: pointer;
|
||||
float: right;
|
||||
font-weight: bold;
|
||||
margin-right: 10px; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__placeholder {
|
||||
color: #999; }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__arrow {
|
||||
background-color: #ddd;
|
||||
border: none;
|
||||
border-left: 1px solid #aaa;
|
||||
border-top-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
height: 26px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
right: 1px;
|
||||
width: 20px;
|
||||
background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
||||
background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
||||
background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); }
|
||||
.select2-container--classic .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: #888 transparent transparent transparent;
|
||||
border-style: solid;
|
||||
border-width: 5px 4px 0 4px;
|
||||
height: 0;
|
||||
left: 50%;
|
||||
margin-left: -4px;
|
||||
margin-top: -2px;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
width: 0; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
||||
float: left; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
||||
border: none;
|
||||
border-right: 1px solid #aaa;
|
||||
border-radius: 0;
|
||||
border-top-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px;
|
||||
left: 1px;
|
||||
right: auto; }
|
||||
|
||||
.select2-container--classic.select2-container--open .select2-selection--single {
|
||||
border: 1px solid #5897fb; }
|
||||
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
|
||||
background: transparent;
|
||||
border: none; }
|
||||
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
||||
border-color: transparent transparent #888 transparent;
|
||||
border-width: 0 4px 5px 4px; }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
|
||||
border-top: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
|
||||
background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
|
||||
background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
|
||||
border-bottom: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
|
||||
background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
|
||||
background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
|
||||
background-repeat: repeat-x;
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); }
|
||||
|
||||
.select2-container--classic .select2-selection--multiple {
|
||||
background-color: white;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
cursor: text;
|
||||
outline: 0; }
|
||||
.select2-container--classic .select2-selection--multiple:focus {
|
||||
border: 1px solid #5897fb; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__rendered {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0 5px; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__clear {
|
||||
display: none; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__choice {
|
||||
background-color: #e4e4e4;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 4px;
|
||||
cursor: default;
|
||||
float: left;
|
||||
margin-right: 5px;
|
||||
margin-top: 5px;
|
||||
padding: 0 5px; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
|
||||
color: #888;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
margin-right: 2px; }
|
||||
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
|
||||
color: #555; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
||||
float: right; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
||||
margin-left: 5px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
||||
margin-left: 2px;
|
||||
margin-right: auto; }
|
||||
|
||||
.select2-container--classic.select2-container--open .select2-selection--multiple {
|
||||
border: 1px solid #5897fb; }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
|
||||
border-top: none;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0; }
|
||||
|
||||
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
|
||||
border-bottom: none;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0; }
|
||||
|
||||
.select2-container--classic .select2-search--dropdown .select2-search__field {
|
||||
border: 1px solid #aaa;
|
||||
outline: 0; }
|
||||
|
||||
.select2-container--classic .select2-search--inline .select2-search__field {
|
||||
outline: 0;
|
||||
box-shadow: none; }
|
||||
|
||||
.select2-container--classic .select2-dropdown {
|
||||
background-color: white;
|
||||
border: 1px solid transparent; }
|
||||
|
||||
.select2-container--classic .select2-dropdown--above {
|
||||
border-bottom: none; }
|
||||
|
||||
.select2-container--classic .select2-dropdown--below {
|
||||
border-top: none; }
|
||||
|
||||
.select2-container--classic .select2-results > .select2-results__options {
|
||||
max-height: 200px;
|
||||
overflow-y: auto; }
|
||||
|
||||
.select2-container--classic .select2-results__option[role=group] {
|
||||
padding: 0; }
|
||||
|
||||
.select2-container--classic .select2-results__option[aria-disabled=true] {
|
||||
color: grey; }
|
||||
|
||||
.select2-container--classic .select2-results__option--highlighted[aria-selected] {
|
||||
background-color: #3875d7;
|
||||
color: white; }
|
||||
|
||||
.select2-container--classic .select2-results__group {
|
||||
cursor: default;
|
||||
display: block;
|
||||
padding: 6px; }
|
||||
|
||||
.select2-container--classic.select2-container--open .select2-dropdown {
|
||||
border-color: #5897fb; }
|
||||
24
addons/default/visiosoft/base-theme/resources/js/params.js
Normal file
24
addons/default/visiosoft/base-theme/resources/js/params.js
Normal file
@ -0,0 +1,24 @@
|
||||
function getQueryParams(qs) {
|
||||
qs = qs.split("+").join(" ");
|
||||
|
||||
var params = [], tokens,
|
||||
re = /[?&]?([^=]+)=([^&]*)/g;
|
||||
|
||||
while (tokens = re.exec(qs)) {
|
||||
params.push({k: decodeURIComponent(tokens[1]), v: decodeURIComponent(tokens[2])});
|
||||
}
|
||||
|
||||
return params;
|
||||
}
|
||||
|
||||
function findParam(fp) {
|
||||
var request = getQueryParams(document.location.search);
|
||||
request = request.filter(function (item) {
|
||||
return item.k === fp;
|
||||
});
|
||||
var res = [];
|
||||
$.each(request, function (index, value) {
|
||||
res[index] = value.v;
|
||||
});
|
||||
return res;
|
||||
}
|
||||
5725
addons/default/visiosoft/base-theme/resources/js/select2.js
Normal file
5725
addons/default/visiosoft/base-theme/resources/js/select2.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'description' => 'الوصف',
|
||||
'post_ad' => 'انشر إعلانك',
|
||||
'profile' => 'الملف الشخصي',
|
||||
'my_messages' => 'رسائلي',
|
||||
'my_ads' => 'إعلاناتي',
|
||||
'login' => 'تسجيل الدخول',
|
||||
'logout' => 'تسجيل الخروج',
|
||||
'chose_language' => 'اختر اللغة',
|
||||
|
||||
'privacy_and_use' => 'الخصوصية والاستخدام',
|
||||
'sell_fast' => 'البيع السريع',
|
||||
'cloudsite' => 'موقع السحابة',
|
||||
'banner_advertising' => 'راية الإعلان',
|
||||
'trade_delivers' => 'أدوات التجارة',
|
||||
'promote_your_ad' => 'تعزيز إعلانك',
|
||||
'faq' => 'الأسئلة المتكررة',
|
||||
'follow_us_on' => 'تابعنا على',
|
||||
'newsletter' => 'النشرة الإخبارية',
|
||||
'subscribe' => 'اشترك!',
|
||||
'your_email' => 'بريدك الإلكتروني',
|
||||
'sign_up' => 'التسجيل',
|
||||
'copyright' => 'حقوق الطبع والنشر 2019. | طورت بواسطة',
|
||||
'cart' => 'سلتي',
|
||||
'search' => 'بحث',
|
||||
'type_your_keyword' => 'اكتب كلمتك المفتاحية',
|
||||
'categories' => 'الفئات',
|
||||
'contact_us' => '24/7 دعم العملاء',
|
||||
'help_center' => 'مركز المساعدة',
|
||||
'find_your_ad' => 'ابحث عن إعلانك',
|
||||
'vehicle_type' => 'نوع السيارة',
|
||||
'select_makes' => 'اختر الصانع',
|
||||
'browse_cars_by_makes'=> 'تصفح السيارات حسب الصانع',
|
||||
'featured_car_deals'=> 'عروض السيارات المميزة',
|
||||
'learn_more'=> 'تعلم المزيد',
|
||||
'advs_default_theme_homepage_mobile_app_title' => 'تنزيل من متجر التطبيقات',
|
||||
'advs_default_theme_homepage_mobile_app_available_on' => 'متوفر في',
|
||||
'all'=>'الكل',
|
||||
'trend_ads'=>'الإعلانات الشائعة',
|
||||
'single_cta1'=>'التداول الآمن',
|
||||
'single_cta2'=>'احصل على راحة البال مع زيادة الحماية للتداول الآمن.',
|
||||
'single_cta3'=>'دعم 24/7',
|
||||
'single_cta4'=>'خدمة العملاء 212 555 55 55',
|
||||
'single_cta5'=>'التجارة السهلة',
|
||||
'single_cta6'=>'مع خدمات الدفع الآمنة ، يمكن تنفيذ معاملاتك بشكل مريح.',
|
||||
'welcome'=> 'مرحبًا',
|
||||
];
|
||||
|
||||
@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'send' => [
|
||||
'name' => 'إرسال',
|
||||
],
|
||||
];
|
||||
|
||||
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'post_ad' => 'انشر إعلانك',
|
||||
'featured_ads' => "الإعلانات المميزة",
|
||||
'recent_ads' => "الإعلانات الحديثة",
|
||||
'trending_ads' => 'الإعلانات الشائعة',
|
||||
'search_map' => 'البحث على الخريطة',
|
||||
'search' => 'بحث',
|
||||
'categories' => 'الفئات',
|
||||
'city' => 'المدينة',
|
||||
'last_search' => 'لمواصلة البحث الأخير',
|
||||
'join-us' => 'انضم إلينا',
|
||||
'sign-in' => 'تسجيل الدخول',
|
||||
'new-here' => 'جديد هنا؟',
|
||||
'scroll-screen-for-details' => 'مرر الشاشة لعرض الجدول',
|
||||
'close' => 'إغلاق',
|
||||
|
||||
|
||||
'login' => 'تسجيل الدخول',
|
||||
'email' => [
|
||||
'name' => 'عنوان البريد الإلكتروني',
|
||||
],
|
||||
'name' => [
|
||||
'name' => 'الاسم',
|
||||
],
|
||||
'subject' => [
|
||||
'name' => 'العنوان',
|
||||
],
|
||||
'content' => [
|
||||
'name' => 'المحتوى',
|
||||
],
|
||||
];
|
||||
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
return [];
|
||||
|
||||
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'meta_tags' => [
|
||||
'name' => 'كلمات ميتا المفتاحية',
|
||||
],
|
||||
'template' => [
|
||||
'name' => 'القالب',
|
||||
],
|
||||
's-type-latest-limit' => [
|
||||
'name' => 'الحد الأقصى من نوع-اس',
|
||||
],
|
||||
's-type-showcase' => [
|
||||
'name' => 'اسم حد عرض S-type',
|
||||
],
|
||||
's-type-banner-code' => [
|
||||
'name' => 'رمز شعار نوع-اس',
|
||||
],
|
||||
|
||||
's-type-banner-mobile-code' => [
|
||||
'name' => 'رمز الجوال لراية نوع-اس',
|
||||
],
|
||||
|
||||
'show_post_your_add_btn' => [
|
||||
'name' => 'أظهر زر "انشر اعلانك"',
|
||||
],
|
||||
|
||||
'show_home_search_on_map_btn' => [
|
||||
'name' => 'أظهر زر "على الخريطة" في البحث في الصفحة الرئيسية',
|
||||
],
|
||||
|
||||
'show_last_search_btn' => [
|
||||
'name' => 'أظهر زر "آخر عملية بحث"',
|
||||
],
|
||||
];
|
||||
@ -6,6 +6,8 @@
|
||||
{{ asset_add("theme.js", "theme::js/popper.min.js") }}
|
||||
{{ asset_add("theme.js", "theme::js/bootstrap.min.js") }}
|
||||
{{ asset_add("theme.js", "theme::js/modal_include.js") }}
|
||||
{{ asset_add("theme.js", "theme::js/select2.js") }}
|
||||
{{ asset_add("theme.js", "theme::js/params.js") }}
|
||||
|
||||
{# Theme Scripts #}
|
||||
{#{{ asset_add("theme.js", "theme::js/plugins/*") }}#}
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
{# Base Theme Components #}
|
||||
{{ asset_add("theme.css", "theme::css/bootstrap.min.css") }}
|
||||
{{ asset_add("theme.css", "theme::css/theme.css") }}
|
||||
{{ asset_add("theme.css", "theme::css/select2.css") }}
|
||||
{{ asset_add("theme.css", "theme::css/font-awesome.min.css") }}
|
||||
<script src="{{ asset_path('theme::js/jquery.min.js') }}"></script>
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ return [
|
||||
'name' => 'Seo Description'
|
||||
],
|
||||
'icon' => [
|
||||
' name' => 'ICON'
|
||||
'name' => 'Icon'
|
||||
],
|
||||
|
||||
'please_wait' => 'Please wait.Deleting Sub Categories',
|
||||
|
||||
@ -5,6 +5,6 @@ return [
|
||||
'title' => 'Category',
|
||||
],
|
||||
'placeholderforsearch' => [
|
||||
'title' => 'Placeholderforsearch',
|
||||
'title' => 'Placeholder',
|
||||
],
|
||||
];
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'clean_subcategories' => 'Clean Subcategories',
|
||||
];
|
||||
@ -1,8 +1,8 @@
|
||||
{% if app.request.get('cat') %}
|
||||
{% for category_breadcrumbs in params.mainCats.first.getMains(app.request.get('cat')) %}
|
||||
{% for category_breadcrumbs in params.mainCats %}
|
||||
<li class="breadcrumb-item">
|
||||
<a href="{{ url_route('visiosoft.module.advs::list_cat', [category_breadcrumbs.id]) }}"
|
||||
class="text-dark font-weight-bold">{{ category_breadcrumbs.val }}
|
||||
<a href="{{ url_route('visiosoft.module.advs::list_cat', [category_breadcrumbs['id']]) }}"
|
||||
class="text-dark font-weight-bold">{{ category_breadcrumbs['val'] }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
@ -13,14 +13,14 @@
|
||||
style="max-height: 300px;">
|
||||
<div class="list-group">
|
||||
{% for maincat in params.mainCats %}
|
||||
<a href="{% if(type == "list") %}{{ url_route('visiosoft.module.advs::list') }}{% else %}{{ url_route('advs_map_list') }}{% endif %}?cat={{ maincat.id }}"
|
||||
<a href="{% if(type == "list") %}{{ url_route('visiosoft.module.advs::list') }}{% else %}{{ url_route('advs_map_list') }}{% endif %}?cat={{ maincat['id'] }}"
|
||||
class="list-group-item list-group-item-action text-truncate">
|
||||
<i class="fas fa-dot-circle"></i>
|
||||
{{ maincat.name }}
|
||||
{{ maincat['val'] }}
|
||||
</a>
|
||||
{% for subcat in params.subCats %}
|
||||
<div class="list-group pl-3 bg-light">
|
||||
{% if subcat.parent_category_id == maincat.id %}
|
||||
{% if subcat.parent_category_id == maincat['id'] %}
|
||||
<a href="{% if(type == "list") %}{{ url_route('visiosoft.module.advs::list') }}{% else %}{{ url_route('advs_map_list') }}{% endif %}?cat={{ subcat.id }}"
|
||||
class="list-group-item list-group-item-action
|
||||
text-truncate">{{ subcat.name }}</a>
|
||||
|
||||
@ -9,7 +9,10 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
|
||||
|
||||
public function getCat($id)
|
||||
{
|
||||
return CategoryModel::query()->where('cats_category.id', $id)->first();
|
||||
return CategoryModel::query()
|
||||
->where('cats_category.id', $id)
|
||||
->whereRaw('deleted_at IS NULL')
|
||||
->first();
|
||||
}
|
||||
|
||||
public function getParentCats($id, $type = null)
|
||||
@ -23,18 +26,24 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
|
||||
if ($subCat != null) {
|
||||
for ($i = 0; $i < 7; $i++) {
|
||||
$parCat = $this->getCat($subCat);
|
||||
if ($parCat->parent_category_id == "") {
|
||||
if ($type == "add_main")
|
||||
$catNames[] = $parCat->name;
|
||||
break;
|
||||
if (isset($parCat)) {
|
||||
if ($parCat->parent_category_id == "") {
|
||||
if ($type == "add_main")
|
||||
$catNames[] = $parCat->name;
|
||||
break;
|
||||
}
|
||||
$catNames[] = $parCat->name;
|
||||
$cat_ids[] = $parCat->id;
|
||||
$subCat = $parCat->parent_category_id;
|
||||
}
|
||||
$catNames[] = $parCat->name;
|
||||
$cat_ids[] = $parCat->id;
|
||||
$subCat = $parCat->parent_category_id;
|
||||
}
|
||||
}
|
||||
if ($type == 'category_ids') {
|
||||
return CategoryModel::query()->whereIn('cats_category.id', $cat_ids)->orderBy('cats_category.id', 'asc')->get();
|
||||
return CategoryModel::query()
|
||||
->whereIn('cats_category.id', $cat_ids)
|
||||
->whereRaw('deleted_at IS NULL')
|
||||
->orderBy('cats_category.id', 'asc')
|
||||
->get();
|
||||
}
|
||||
if ($type == "parent_id") {
|
||||
$cat_ids = array_reverse($cat_ids);
|
||||
@ -92,11 +101,12 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
|
||||
$cats = $cats->where('cats_category.id', '!=', $selected);
|
||||
}
|
||||
}
|
||||
$cats = $cats->where('name', 'like', $keyword . '%');
|
||||
$cats = $cats->where('name', 'like', $keyword . '%')
|
||||
->whereRaw('deleted_at IS NULL');
|
||||
|
||||
$cats = $cats->leftJoin('cats_category_translations', function ($join) {
|
||||
$join->on('cats_category.id', '=', 'cats_category_translations.entry_id');
|
||||
$join->where('cats_category_translations.locale', '=', Request()->session()->get('_locale'));
|
||||
$join->where('cats_category_translations.locale', '=', Request()->session()->get('_locale', setting_value('streams::default_locale')));
|
||||
});
|
||||
$cats = $cats->select('cats_category.*', 'cats_category_translations.name as name');
|
||||
$cats = $cats->orderBy('id', 'DESC')
|
||||
@ -140,4 +150,24 @@ class CategoryModel extends CatsCategoryEntryModel implements CategoryInterface
|
||||
{
|
||||
return $this->find($cat_id)->name;
|
||||
}
|
||||
|
||||
public function getMains($id)
|
||||
{
|
||||
$categories = array();
|
||||
$z = 1;
|
||||
for ($i = 1; $i <= $z; $i++) {
|
||||
$main = $this->find($id);
|
||||
$new = array();
|
||||
$new['id'] = $main->id;
|
||||
$new['val'] = $main->name;
|
||||
$categories[] = $new;
|
||||
if ($main->parent_category_id != null) {
|
||||
$id = $main->parent_category_id;
|
||||
$z++;
|
||||
}
|
||||
}
|
||||
$categories = array_reverse($categories);
|
||||
unset($categories[count($categories) - 1]);
|
||||
return $categories;
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,8 +5,9 @@ use Anomaly\Streams\Platform\Model\Cats\CatsCategoryEntryModel;
|
||||
|
||||
class CategoryPresenter extends EntryPresenter
|
||||
{
|
||||
public function getAdvsListUrl($attributes) {
|
||||
return \route('visiosoft.module.advs::list', "cat=".$attributes);
|
||||
public function getAdvsListUrl($attributes)
|
||||
{
|
||||
return \route('visiosoft.module.advs::list', "cat=" . $attributes);
|
||||
}
|
||||
|
||||
public function getCategoryName($id)
|
||||
@ -23,23 +24,7 @@ class CategoryPresenter extends EntryPresenter
|
||||
|
||||
public function getMains($id)
|
||||
{
|
||||
$categories = array();
|
||||
$z = 1;
|
||||
for($i = 1; $i <= $z; $i++)
|
||||
{
|
||||
$main = $this->find($id);
|
||||
$new = array();
|
||||
$new['id'] = $main->id;
|
||||
$new['val'] = $this->getname($main->id);
|
||||
$categories[] = $new;
|
||||
if($main->parent_category_id != null)
|
||||
{
|
||||
$id = $main->parent_category_id;
|
||||
$z++;
|
||||
}
|
||||
}
|
||||
$categories = array_reverse($categories);
|
||||
unset($categories[count($categories)-1]);
|
||||
return $categories;
|
||||
$category_model = new CategoryModel();
|
||||
return $category_model->getMains($id);
|
||||
}
|
||||
}
|
||||
|
||||
@ -66,12 +66,6 @@ class CategoryRepository extends EntryRepository implements CategoryRepositoryIn
|
||||
|
||||
public function DeleteCategories($id)
|
||||
{
|
||||
$sub_categories = $this->model->getAllSubCategories($id);
|
||||
if (count($sub_categories)) {
|
||||
$this->model
|
||||
->whereIn('id', array_merge($sub_categories, [$id]))
|
||||
->delete();
|
||||
} else
|
||||
$this->model->find($id)->delete();
|
||||
$this->model->find($id)->delete();
|
||||
}
|
||||
}
|
||||
|
||||
@ -10,7 +10,13 @@ class CategoryTableBuilder extends TableBuilder
|
||||
*
|
||||
* @var array|string
|
||||
*/
|
||||
protected $views = [];
|
||||
protected $views = [
|
||||
'all',
|
||||
'trash',
|
||||
'clean_subcategories' => [
|
||||
'href' => '/admin/cats/clean_subcats',
|
||||
],
|
||||
];
|
||||
|
||||
/**
|
||||
* The table filters.
|
||||
|
||||
@ -1,9 +1,6 @@
|
||||
<?php namespace Visiosoft\CatsModule;
|
||||
|
||||
use Anomaly\Streams\Platform\Database\Seeder\Seeder;
|
||||
use Chumper\Zipper\Zipper;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Visiosoft\CatsModule\Category\CategorySeeder;
|
||||
use Visiosoft\CatsModule\Placeholderforsearch\PlaceholderforsearchSeeder;
|
||||
|
||||
class CatsModuleSeeder extends Seeder
|
||||
@ -13,22 +10,6 @@ class CatsModuleSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$this->call(CategorySeeder::class);
|
||||
|
||||
//Download demo SQL
|
||||
$repository = "https://raw.githubusercontent.com/openclassify/Openclassify-Demo-Data/master/";
|
||||
file_put_contents(__DIR__."/categories.sql", fopen($repository."categories.sql", 'r'));
|
||||
file_put_contents(__DIR__."/categoryTransEn.sql", fopen($repository."categoryTransEn.sql", 'r'));
|
||||
//Download demo Files and Extract to Files
|
||||
file_put_contents("category-files.zip", fopen($repository."category-files.zip", 'r'));
|
||||
$zipper = new Zipper();
|
||||
$zipper->make('category-files.zip')->folder('category-files')->extractTo(base_path().'/public/app/default/files-module/local/images/');
|
||||
$zipper->close();
|
||||
|
||||
$this->call(PlaceholderforsearchSeeder::class);
|
||||
Model::unguard();
|
||||
DB::unprepared(file_get_contents(__DIR__.'/categories.sql'));
|
||||
DB::unprepared(file_get_contents(__DIR__.'/categoryTransEn.sql'));
|
||||
Model::reguard();
|
||||
}
|
||||
}
|
||||
@ -50,6 +50,7 @@ class CatsModuleServiceProvider extends AddonServiceProvider
|
||||
* @type array|null
|
||||
*/
|
||||
protected $routes = [
|
||||
'admin/cats/clean_subcats' => 'Visiosoft\CatsModule\Http\Controller\Admin\CategoryController@cleanSubcats',
|
||||
'admin/cats/placeholderforsearch' => 'Visiosoft\CatsModule\Http\Controller\Admin\PlaceholderforsearchController@index',
|
||||
'admin/cats/placeholderforsearch/create' => 'Visiosoft\CatsModule\Http\Controller\Admin\PlaceholderforsearchController@create',
|
||||
'admin/cats/placeholderforsearch/edit/{id}' => 'Visiosoft\CatsModule\Http\Controller\Admin\PlaceholderforsearchController@edit',
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
<?php namespace Visiosoft\CatsModule\Http\Controller\Admin;
|
||||
|
||||
use Anomaly\Streams\Platform\Image\Command\MakeImageInstance;
|
||||
use Anomaly\Streams\Platform\Model\Cats\CatsCategoryEntryModel;
|
||||
use Anomaly\Streams\Platform\Model\Cats\CatsCategoryEntryTranslationsModel;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Str;
|
||||
use Sunra\PhpSimple\HtmlDomParser;
|
||||
use Visiosoft\CatsModule\Category\CategoryCollection;
|
||||
use Visiosoft\CatsModule\Category\CategoryModel;
|
||||
use Visiosoft\CatsModule\Category\Contract\CategoryRepositoryInterface;
|
||||
use Visiosoft\CatsModule\Category\Form\CategoryFormBuilder;
|
||||
@ -13,6 +13,22 @@ use Anomaly\Streams\Platform\Http\Controller\AdminController;
|
||||
|
||||
class CategoryController extends AdminController
|
||||
{
|
||||
private $categoryRepository;
|
||||
private $categoryEntryTranslationsModel;
|
||||
private $str;
|
||||
|
||||
public function __construct(
|
||||
CategoryRepositoryInterface $categoryRepository,
|
||||
CatsCategoryEntryTranslationsModel $categoryEntryTranslationsModel,
|
||||
Str $str
|
||||
)
|
||||
{
|
||||
$this->categoryRepository = $categoryRepository;
|
||||
$this->categoryEntryTranslationsModel = $categoryEntryTranslationsModel;
|
||||
$this->str = $str;
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function index(CategoryTableBuilder $table, Request $request)
|
||||
{
|
||||
if ($this->request->action == "delete") {
|
||||
@ -55,10 +71,77 @@ class CategoryController extends AdminController
|
||||
return $this->redirect->back();
|
||||
}
|
||||
|
||||
$form->make();
|
||||
if ($form->hasFormErrors()) {
|
||||
return $this->redirect->to('/admin/cats/create');
|
||||
$locale = $this->getRequestLang($all);
|
||||
|
||||
$translatable = array();
|
||||
foreach ($all as $key => $value) {
|
||||
foreach ($locale as $lang) {
|
||||
if ($this->endsWith($key, "_$lang") && !in_array(substr($key, 0, -3), $translatable)) {
|
||||
$translatable[] = substr($key, 0, -3);
|
||||
}
|
||||
}
|
||||
}
|
||||
$translatableEntries = array();
|
||||
foreach ($locale as $lang) {
|
||||
$translatableEntries[$lang] = array();
|
||||
foreach ($translatable as $translatableEntry) {
|
||||
$translatableEntries[$lang][$translatableEntry] = $all[$translatableEntry . '_' . $lang];
|
||||
}
|
||||
}
|
||||
|
||||
// Check if there is multiple categories in the name filed
|
||||
$isMultiCat = array();
|
||||
foreach ($translatableEntries as $key => $translatableEntry) {
|
||||
$multiCat = explode(",", $translatableEntry['name']);
|
||||
if (count($multiCat) > 1) {
|
||||
$firstArray = array();
|
||||
foreach ($multiCat as $cat) {
|
||||
$secondArray = array();
|
||||
foreach ($locale as $lang) {
|
||||
if ($key === $lang) {
|
||||
$secondArray[$key]['name'] = trim($cat);
|
||||
}
|
||||
}
|
||||
array_push($firstArray, $secondArray);
|
||||
}
|
||||
array_push($isMultiCat, $firstArray);
|
||||
}
|
||||
}
|
||||
if (empty($isMultiCat)) {
|
||||
$this->categoryRepository->create(array_merge($translatableEntries, [
|
||||
'slug' => $all['slug'],
|
||||
'parent_category' => $all['parent_category'] === "" ? null : $all['parent_category'],
|
||||
'icon' => $all['icon'],
|
||||
'seo_keyword' => $all['seo_keyword'],
|
||||
'seo_description' => $all['seo_description'],
|
||||
]));
|
||||
} else {
|
||||
for ($i = 0; $i < count($isMultiCat[0]); $i++) {
|
||||
foreach ($isMultiCat as $cat) {
|
||||
$translatableEntries = array_merge($translatableEntries, $cat[$i]);
|
||||
}
|
||||
$this->categoryRepository->create(array_merge($translatableEntries, [
|
||||
'slug' => $this->str->slug(reset($translatableEntries)['name'], '_'),
|
||||
'parent_category' => $all['parent_category'] === "" ? null : $all['parent_category'],
|
||||
'icon' => $all['icon'],
|
||||
'seo_keyword' => $all['seo_keyword'],
|
||||
'seo_description' => $all['seo_description'],
|
||||
]));
|
||||
}
|
||||
};
|
||||
|
||||
// $this->categoryRepository->create(array_merge($translatableEntries, [
|
||||
// 'slug' => $all['slug'],
|
||||
// 'parent_category' => $all['parent_category'],
|
||||
// 'icon' => $all['icon'],
|
||||
// 'seo_keyword' => $all['seo_keyword'],
|
||||
// 'seo_description' => $all['seo_description'],
|
||||
// ]));
|
||||
|
||||
// $form->make();
|
||||
// if ($form->hasFormErrors()) {
|
||||
// return $this->redirect->to('/admin/cats/create');
|
||||
// }
|
||||
if ($parent_id != "") {
|
||||
return $this->redirect->to('/admin/cats?cat=' . $parent_id);
|
||||
}
|
||||
@ -81,6 +164,37 @@ class CategoryController extends AdminController
|
||||
return $this->view->make('visiosoft.module.cats::cats/admin-cat', compact('nameField', 'formBuilder'));
|
||||
}
|
||||
|
||||
public function endsWith($string, $test) {
|
||||
$strlen = strlen($string);
|
||||
$testlen = strlen($test);
|
||||
if ($testlen > $strlen) return false;
|
||||
return substr_compare($string, $test, $strlen - $testlen, $testlen) === 0;
|
||||
}
|
||||
|
||||
public function getRequestLang($request) {
|
||||
$locale = array();
|
||||
foreach ($request as $key => $field) {
|
||||
$locale[] = substr($key, 0, -2);
|
||||
}
|
||||
$notTrans = array();
|
||||
$trans = array();
|
||||
foreach ($locale as $translatable) {
|
||||
if (!in_array($translatable, $notTrans)) {
|
||||
$notTrans[] = $translatable;
|
||||
} else {
|
||||
$trans[] = $translatable;
|
||||
}
|
||||
}
|
||||
$locale = array();
|
||||
foreach ($request as $key => $field) {
|
||||
foreach (array_unique($trans) as $entry) {
|
||||
if (strpos($key, $entry) === 0) {
|
||||
$locale[] = substr($key, -2);
|
||||
}
|
||||
}
|
||||
}
|
||||
return $locale;
|
||||
}
|
||||
|
||||
public function edit(CategoryFormBuilder $form, Request $request, $id)
|
||||
{
|
||||
@ -111,23 +225,28 @@ class CategoryController extends AdminController
|
||||
|
||||
public function delete(CategoryRepositoryInterface $categoryRepository, Request $request, CategoryModel $categoryModel, $id)
|
||||
{
|
||||
ini_set('max_execution_time', 0);
|
||||
echo "<div style='background-image:url(" . $this->dispatch(new MakeImageInstance('visiosoft.theme.base::images/loading_anim.gif', 'img'))->url() . ");
|
||||
background-repeat:no-repeat;
|
||||
background-size: 300px;
|
||||
background-position:center;
|
||||
text-align:center;
|
||||
width:98%;
|
||||
height:100%;
|
||||
padding-left: 20px;'><h3>" . trans('visiosoft.module.cats::field.please_wait') . "</h3></div>";
|
||||
|
||||
$categoryRepository->DeleteCategories($id);
|
||||
|
||||
if ($request->parent == "")
|
||||
return redirect('admin/cats')->with('success', ['Category and related sub-categories deleted successfully.']);
|
||||
else
|
||||
return redirect('admin/cats?cat=' . $request->parent)->with('success', ['Category and related sub-categories deleted successfully.']);
|
||||
}
|
||||
|
||||
public function cleanSubcats()
|
||||
{
|
||||
$cats = $this->categoryRepository->all();
|
||||
$deletedCatsCount = 0;
|
||||
foreach ($cats as $cat) {
|
||||
$parentCatId = $cat->parent_category_id;
|
||||
$parentCat = $this->categoryRepository->find($parentCatId);
|
||||
if (is_null($parentCat) && !is_null($parentCatId)) {
|
||||
$this->categoryEntryTranslationsModel->where('entry_id', $cat->id)->delete();
|
||||
$this->categoryRepository->DeleteCategories($cat->id);
|
||||
$deletedCatsCount++;
|
||||
}
|
||||
}
|
||||
return redirect('admin/cats')->with('success', [$deletedCatsCount . ' categories has been deleted.']);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
#location .select2-selection__rendered {
|
||||
display: inline-block;
|
||||
padding-left: 4px;
|
||||
}
|
||||
@ -0,0 +1,155 @@
|
||||
let searchParams = new URLSearchParams(window.location.search);
|
||||
|
||||
//Set Select2 Type for Location Fields
|
||||
$('#cities, #countries, #districts, #neighborhoods, #village').select2({
|
||||
placeholder: select_trans
|
||||
});
|
||||
|
||||
|
||||
FindLocations = (id, table, typeDb, divId, paramName = null) => {
|
||||
$.ajax({
|
||||
type: 'get',
|
||||
url: '/getlocations',
|
||||
data: {
|
||||
id: id,
|
||||
table: table,
|
||||
typeDb: typeDb,
|
||||
},
|
||||
success: function (response) {
|
||||
setLocations(response, id, table, typeDb, divId, paramName);
|
||||
return response;
|
||||
},
|
||||
error: function (err) {
|
||||
reject(Error("It broke"));
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
setLocations = (response, id, table, typeDb, divId, paramName) => {
|
||||
|
||||
//Add Options
|
||||
if(divId != "#cities")
|
||||
{
|
||||
$(divId).append("<option value></option>")
|
||||
}
|
||||
response.forEach(function (options) {
|
||||
$(divId).append("<option value=" + options.id + ">" + options.name + "</option>")
|
||||
});
|
||||
|
||||
//Set Selected Option
|
||||
if (paramName != null) {
|
||||
if (divId == "#cities") {
|
||||
$('#countries').val(searchParams.get('country'));
|
||||
$('#countries').select2();
|
||||
$('#cities').val(findParam("city[]"));
|
||||
} else {
|
||||
$(divId).val(searchParams.get(paramName));
|
||||
}
|
||||
$(divId).select2();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
//Category Change
|
||||
$('#countries').on('change', function () {
|
||||
$('#cities').empty();
|
||||
var table = "cities";
|
||||
var typeDb = 'parent_country_id';
|
||||
var id = $('#countries').val();
|
||||
var divId = "#cities";
|
||||
|
||||
FindLocations(id, table, typeDb, divId);
|
||||
});
|
||||
|
||||
//City Change
|
||||
$('#cities, .select2-selection__choice__remove').on('change', function () {
|
||||
$('#districts').empty();
|
||||
var table = "districts";
|
||||
var typeDb = 'parent_city_id';
|
||||
var id = $('#cities').val();
|
||||
var divId = "#districts";
|
||||
|
||||
FindLocations(id, table, typeDb, divId);
|
||||
});
|
||||
|
||||
//Districts Change
|
||||
$('#districts').on('change', function () {
|
||||
var table = "neighborhoods";
|
||||
var typeDb = 'parent_district_id';
|
||||
var id = $('#districts').val();
|
||||
var divId = "#neighborhoods";
|
||||
|
||||
FindLocations(id, table, typeDb, divId);
|
||||
});
|
||||
|
||||
//Neighborhoods Change
|
||||
$('#neighborhoods').on('change', function () {
|
||||
var table = "village";
|
||||
var typeDb = 'parent_neighborhood_id';
|
||||
var id = $('#neighborhoods').val();
|
||||
var divId = "#village";
|
||||
|
||||
FindLocations(id, table, typeDb, divId);
|
||||
});
|
||||
|
||||
|
||||
jQuery(document).ready(function ($) {
|
||||
|
||||
}).promise().done(function () {
|
||||
|
||||
//Get City && Set Country
|
||||
if (searchParams.get('country') != '') {
|
||||
$('#cities').empty();
|
||||
var table = "cities";
|
||||
var typeDb = 'parent_country_id';
|
||||
var id = searchParams.get('country');
|
||||
var divId = "#cities";
|
||||
var paramName = 'city';
|
||||
|
||||
FindLocations(id, table, typeDb, divId, paramName);
|
||||
}
|
||||
|
||||
}).promise().done(function () {
|
||||
|
||||
//get District && set city
|
||||
if (findParam('city[]').length) {
|
||||
$('#districts').empty();
|
||||
var table = "districts";
|
||||
var typeDb = 'parent_city_id';
|
||||
var id = findParam('city[]');
|
||||
var divId = "#districts";
|
||||
var paramName = 'district';
|
||||
|
||||
FindLocations(id, table, typeDb, divId, paramName);
|
||||
}
|
||||
|
||||
}).promise().done(function () {
|
||||
|
||||
//get neighborhood && set districts
|
||||
if (searchParams.get('district') != '') {
|
||||
$('#neighborhoods').empty();
|
||||
var table = "neighborhoods";
|
||||
var typeDb = 'parent_district_id';
|
||||
var id = searchParams.get('district');
|
||||
var divId = "#neighborhoods";
|
||||
var paramName = 'neighborhood';
|
||||
|
||||
FindLocations(id, table, typeDb, divId, paramName);
|
||||
}
|
||||
|
||||
}).promise().done(function () {
|
||||
|
||||
//get village && set neighborhoods
|
||||
if (searchParams.get('neighborhood') != '') {
|
||||
$('#village').empty();
|
||||
var table = "village";
|
||||
var typeDb = 'parent_neighborhood_id';
|
||||
var id = searchParams.get('neighborhood');
|
||||
var divId = "#village";
|
||||
var paramName = 'village';
|
||||
|
||||
FindLocations(id, table, typeDb, divId, paramName);
|
||||
}
|
||||
|
||||
});
|
||||
@ -28,4 +28,7 @@ return [
|
||||
'description' => [
|
||||
'name' => 'Description'
|
||||
],
|
||||
'pick_option' => [
|
||||
'name' => 'Pick an option',
|
||||
],
|
||||
];
|
||||
|
||||
@ -0,0 +1,61 @@
|
||||
<div class="card mb-3">
|
||||
<div class="card-header breadcrumb mb-0" id="locationHeading">
|
||||
<h5 class="mb-0">
|
||||
<button class="btn btn-link text-dark" data-toggle="collapse" data-target="#location"
|
||||
aria-expanded="true" aria-controls="location">
|
||||
<i class="fas fa-location-arrow"></i>
|
||||
{{ trans("visiosoft.module.location::addon.title") }}
|
||||
</button>
|
||||
</h5>
|
||||
</div>
|
||||
<div id="location" class="collapse show overflow-auto" aria-labelledby="locationHeading"
|
||||
data-parent="#filter">
|
||||
<div class="row w-100 px-2 m-0">
|
||||
<div class="col-12 px-0 py-1">
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.country.name") }}</label>
|
||||
<select class="form-control" name="country" id="countries">
|
||||
{% for country in params.countries %}
|
||||
<option value="{{ country.id }}">{{ country.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-12 px-0 py-1">
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.city.name") }}</label>
|
||||
<select class="form-control" name="city[]" id="cities" multiple>
|
||||
{% for city in params.cities %}
|
||||
<option value="{{ city.id }}">{{ city.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-12 px-0 py-1">
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.district.name") }}</label>
|
||||
<select class="form-control" name="district" id="districts">
|
||||
{% for district in params.districts %}
|
||||
<option value="{{ district.id }}">{{ district.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-12 px-0 py-1">
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.neighborhood.name") }}</label>
|
||||
<select class="form-control" name="neighborhood" id="neighborhoods">
|
||||
{% for neighborhood in params.neighborhoods %}
|
||||
<option value="{{ neighborhood.id }}">{{ neighborhood.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-12 px-0 py-1">
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.village.name") }}</label>
|
||||
<select class="form-control" name="village" id="village">
|
||||
{% for village in params.villages %}
|
||||
<option value="{{ village.id }}">{{ village.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var select_trans = "{{ trans('visiosoft.module.location::field.pick_option.name') }}";
|
||||
</script>
|
||||
{{ asset_add("scripts.js", "visiosoft.module.location::js/filterLocation.js") }}
|
||||
{{ asset_add("styles.css", "visiosoft.module.location::css/filterLocation.css") }}
|
||||
@ -1,61 +0,0 @@
|
||||
{% if setting_value('visiosoft.module.location::list_page_location') %}
|
||||
<div class="panel-default panel-faq">
|
||||
<div class="panel-heading active-faq">
|
||||
<a data-toggle="collapse" data-parent="#accordion" href="#accordion-location">
|
||||
<h4 class="panel-title">{{ trans("visiosoft.module.advs::field.location") }}
|
||||
<span class="pull-right">
|
||||
<i class="fa fa-minus"></i>
|
||||
</span>
|
||||
</h4>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div id="accordion-location" class="panel-collapse collapse in">
|
||||
<div class="panel-body">
|
||||
<ul id="list-items" class="filter-list-items">
|
||||
<li>
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.country.name") }}</label>
|
||||
<select class="form-control" name="country" id="countries">
|
||||
{% for country in countries %}
|
||||
<option value="{{ country.id }}">{{ country.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.city.name") }}</label>
|
||||
<select class="form-control" name="city[]" id="cities" multiple>
|
||||
{% for city in cities %}
|
||||
<option value="{{ city.id }}">{{ city.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.district.name") }}</label>
|
||||
<select class="form-control" name="district" id="districts">
|
||||
{% for district in districts %}
|
||||
<option value="{{ district.id }}">{{ district.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.neighborhood.name") }}</label>
|
||||
<select class="form-control" name="neighborhood" id="neighborhoods">
|
||||
{% for neighborhood in neighborhoods %}
|
||||
<option value="{{ neighborhood.id }}">{{ neighborhood.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</li>
|
||||
<li>
|
||||
<label class="label-filter-location">{{ trans("visiosoft.module.location::field.village.name") }}</label>
|
||||
<select class="form-control" name="village" id="village">
|
||||
{% for village in villages %}
|
||||
<option value="{{ village.id }}">{{ village.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{{ asset_add("scripts.js", "visiosoft.theme.base::js/filterLocation.js") }}
|
||||
@ -0,0 +1,34 @@
|
||||
<?php namespace Visiosoft\LocationModule\District\Command;
|
||||
|
||||
use Visiosoft\LocationModule\District\DistrictModel;
|
||||
|
||||
class GetDistrict
|
||||
{
|
||||
|
||||
/**
|
||||
* @var $id
|
||||
*/
|
||||
protected $id;
|
||||
|
||||
/**
|
||||
* GetProduct constructor.
|
||||
* @param $id
|
||||
*/
|
||||
public function __construct($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param DistrictModel $groups
|
||||
* @return |null
|
||||
*/
|
||||
public function handle(DistrictModel $groups)
|
||||
{
|
||||
if ($this->id) {
|
||||
return $groups->find($this->id);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
<?php namespace Visiosoft\LocationModule;
|
||||
|
||||
use Anomaly\Streams\Platform\Addon\Plugin\Plugin;
|
||||
use Visiosoft\LocationModule\District\Command\GetDistrict;
|
||||
use Visiosoft\LocationModule\Neighborhood\Command\GetNeighborhood;
|
||||
|
||||
class LocationModulePlugin extends Plugin
|
||||
{
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getFunctions()
|
||||
{
|
||||
return [
|
||||
new \Twig_SimpleFunction(
|
||||
'getDistrict',
|
||||
function ($id) {
|
||||
|
||||
if (!$ad = $this->dispatch(new GetDistrict($id))) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $ad;
|
||||
}
|
||||
),
|
||||
new \Twig_SimpleFunction(
|
||||
'getNeighborhood',
|
||||
function ($id) {
|
||||
|
||||
if (!$ad = $this->dispatch(new GetNeighborhood($id))) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $ad;
|
||||
}
|
||||
),
|
||||
];
|
||||
}
|
||||
}
|
||||
@ -17,7 +17,9 @@ class LocationModuleServiceProvider extends AddonServiceProvider
|
||||
*
|
||||
* @type array|null
|
||||
*/
|
||||
protected $plugins = [];
|
||||
protected $plugins = [
|
||||
LocationModulePlugin::class
|
||||
];
|
||||
|
||||
/**
|
||||
* The addon Artisan commands.
|
||||
@ -46,20 +48,20 @@ class LocationModuleServiceProvider extends AddonServiceProvider
|
||||
* @type array|null
|
||||
*/
|
||||
protected $routes = [
|
||||
'admin/location/village' => 'Visiosoft\LocationModule\Http\Controller\Admin\VillageController@index',
|
||||
'admin/location/village/create' => 'Visiosoft\LocationModule\Http\Controller\Admin\VillageController@create',
|
||||
'admin/location/village' => 'Visiosoft\LocationModule\Http\Controller\Admin\VillageController@index',
|
||||
'admin/location/village/create' => 'Visiosoft\LocationModule\Http\Controller\Admin\VillageController@create',
|
||||
'admin/location/village/edit/{id}' => 'Visiosoft\LocationModule\Http\Controller\Admin\VillageController@edit',
|
||||
'admin/location/' => 'Visiosoft\LocationModule\Http\Controller\Admin\CountriesController@index',
|
||||
'admin/location/create' => 'Visiosoft\LocationModule\Http\Controller\Admin\CountriesController@create',
|
||||
'admin/location/' => 'Visiosoft\LocationModule\Http\Controller\Admin\CountriesController@index',
|
||||
'admin/location/create' => 'Visiosoft\LocationModule\Http\Controller\Admin\CountriesController@create',
|
||||
'admin/location/edit/{id}' => 'Visiosoft\LocationModule\Http\Controller\Admin\CountriesController@edit',
|
||||
'admin/location/cities' => 'Visiosoft\LocationModule\Http\Controller\Admin\CitiesController@index',
|
||||
'admin/location/cities/create' => 'Visiosoft\LocationModule\Http\Controller\Admin\CitiesController@create',
|
||||
'admin/location/cities' => 'Visiosoft\LocationModule\Http\Controller\Admin\CitiesController@index',
|
||||
'admin/location/cities/create' => 'Visiosoft\LocationModule\Http\Controller\Admin\CitiesController@create',
|
||||
'admin/location/cities/edit/{id}' => 'Visiosoft\LocationModule\Http\Controller\Admin\CitiesController@edit',
|
||||
'admin/location/districts' => 'Visiosoft\LocationModule\Http\Controller\Admin\DistrictsController@index',
|
||||
'admin/location/districts/create' => 'Visiosoft\LocationModule\Http\Controller\Admin\DistrictsController@create',
|
||||
'admin/location/districts' => 'Visiosoft\LocationModule\Http\Controller\Admin\DistrictsController@index',
|
||||
'admin/location/districts/create' => 'Visiosoft\LocationModule\Http\Controller\Admin\DistrictsController@create',
|
||||
'admin/location/districts/edit/{id}' => 'Visiosoft\LocationModule\Http\Controller\Admin\DistrictsController@edit',
|
||||
'admin/location/neighborhoods' => 'Visiosoft\LocationModule\Http\Controller\Admin\NeighborhoodsController@index',
|
||||
'admin/location/neighborhoods/create' => 'Visiosoft\LocationModule\Http\Controller\Admin\NeighborhoodsController@create',
|
||||
'admin/location/neighborhoods' => 'Visiosoft\LocationModule\Http\Controller\Admin\NeighborhoodsController@index',
|
||||
'admin/location/neighborhoods/create' => 'Visiosoft\LocationModule\Http\Controller\Admin\NeighborhoodsController@create',
|
||||
'admin/location/neighborhoods/edit/{id}' => 'Visiosoft\LocationModule\Http\Controller\Admin\NeighborhoodsController@edit',
|
||||
];
|
||||
|
||||
|
||||
@ -0,0 +1,34 @@
|
||||
<?php namespace Visiosoft\LocationModule\Neighborhood\Command;
|
||||
|
||||
use Visiosoft\LocationModule\Neighborhood\NeighborhoodModel;
|
||||
|
||||
class GetNeighborhood
|
||||
{
|
||||
|
||||
/**
|
||||
* @var $id
|
||||
*/
|
||||
protected $id;
|
||||
|
||||
/**
|
||||
* GetProduct constructor.
|
||||
* @param $id
|
||||
*/
|
||||
public function __construct($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param NeighborhoodModel $groups
|
||||
* @return |null
|
||||
*/
|
||||
public function handle(NeighborhoodModel $groups)
|
||||
{
|
||||
if ($this->id) {
|
||||
return $groups->find($this->id);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -1,204 +0,0 @@
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.8.4
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: localhost
|
||||
-- Generation Time: Jan 31, 2019 at 12:18 PM
|
||||
-- Server version: 10.3.11-MariaDB
|
||||
-- PHP Version: 7.2.13
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `celep`
|
||||
--
|
||||
|
||||
--
|
||||
-- Dumping data for table `default_location_cities`
|
||||
--
|
||||
|
||||
INSERT INTO `default_location_cities` (`id`, `sort_order`, `created_at`, `created_by_id`, `updated_at`, `updated_by_id`, `slug`, `parent_country_id`, `order`) VALUES
|
||||
(1, 6, '2019-01-31 10:09:32', NULL, NULL, NULL, 'adana', 212, NULL),
|
||||
(2, 7, '2019-01-31 10:09:32', NULL, NULL, NULL, 'adiyaman', 212, NULL),
|
||||
(3, 8, '2019-01-31 10:09:32', NULL, NULL, NULL, 'afyonkarahisar', 212, NULL),
|
||||
(4, 9, '2019-01-31 10:09:32', NULL, NULL, NULL, 'agri', 212, NULL),
|
||||
(5, 10, '2019-01-31 10:09:32', NULL, NULL, NULL, 'amasya', 212, NULL),
|
||||
(6, 3, '2019-01-31 10:09:32', NULL, NULL, NULL, 'ankara', 212, NULL),
|
||||
(7, 5, '2019-01-31 10:09:32', NULL, NULL, NULL, 'antalya', 212, NULL),
|
||||
(8, 8, '2019-01-31 10:09:32', NULL, NULL, NULL, 'artvin', 212, NULL),
|
||||
(9, 9, '2019-01-31 10:09:32', NULL, NULL, NULL, 'aydin', 212, NULL),
|
||||
(10, 10, '2019-01-31 10:09:32', NULL, NULL, NULL, 'balikesir', 212, NULL),
|
||||
(11, 11, '2019-01-31 10:09:32', NULL, NULL, NULL, 'bilecik', 212, NULL),
|
||||
(12, 12, '2019-01-31 10:09:32', NULL, NULL, NULL, 'bingol', 212, NULL),
|
||||
(13, 13, '2019-01-31 10:09:32', NULL, NULL, NULL, 'bitlis', 212, NULL),
|
||||
(14, 14, '2019-01-31 10:09:32', NULL, NULL, NULL, 'bolu', 212, NULL),
|
||||
(15, 15, '2019-01-31 10:09:32', NULL, NULL, NULL, 'burdur', 212, NULL),
|
||||
(16, 16, '2019-01-31 10:09:32', NULL, NULL, NULL, 'bursa', 212, NULL),
|
||||
(17, 17, '2019-01-31 10:09:32', NULL, NULL, NULL, 'canakkale', 212, NULL),
|
||||
(18, 18, '2019-01-31 10:09:32', NULL, NULL, NULL, 'cankiri', 212, NULL),
|
||||
(19, 19, '2019-01-31 10:09:32', NULL, NULL, NULL, 'corum', 212, NULL),
|
||||
(20, 20, '2019-01-31 10:09:32', NULL, NULL, NULL, 'denizli', 212, NULL),
|
||||
(21, 21, '2019-01-31 10:09:32', NULL, NULL, NULL, 'diyarbakir', 212, NULL),
|
||||
(22, 22, '2019-01-31 10:09:32', NULL, NULL, NULL, 'edirne', 212, NULL),
|
||||
(23, 23, '2019-01-31 10:09:32', NULL, NULL, NULL, 'elazig', 212, NULL),
|
||||
(24, 24, '2019-01-31 10:09:32', NULL, NULL, NULL, 'erzincan', 212, NULL),
|
||||
(25, 25, '2019-01-31 10:09:32', NULL, NULL, NULL, 'erzurum', 212, NULL),
|
||||
(26, 26, '2019-01-31 10:09:32', NULL, NULL, NULL, 'eskisehir', 212, NULL),
|
||||
(27, 27, '2019-01-31 10:09:32', NULL, NULL, NULL, 'gaziantep', 212, NULL),
|
||||
(28, 28, '2019-01-31 10:09:32', NULL, NULL, NULL, 'giresun', 212, NULL),
|
||||
(29, 29, '2019-01-31 10:09:32', NULL, NULL, NULL, 'gumushane', 212, NULL),
|
||||
(30, 30, '2019-01-31 10:09:32', NULL, NULL, NULL, 'hakkari', 212, NULL),
|
||||
(31, 31, '2019-01-31 10:09:32', NULL, NULL, NULL, 'hatay', 212, NULL),
|
||||
(32, 32, '2019-01-31 10:09:32', NULL, NULL, NULL, 'isparta', 212, NULL),
|
||||
(33, 33, '2019-01-31 10:09:32', NULL, NULL, NULL, 'mersin', 212, NULL),
|
||||
(34, 1, '2019-01-31 10:09:32', NULL, NULL, NULL, 'istanbul-avr', 212, NULL),
|
||||
(35, 4, '2019-01-31 10:09:32', NULL, NULL, NULL, 'izmir', 212, NULL),
|
||||
(36, 37, '2019-01-31 10:09:32', NULL, NULL, NULL, 'kars', 212, NULL),
|
||||
(37, 38, '2019-01-31 10:09:32', NULL, NULL, NULL, 'kastamonu', 212, NULL),
|
||||
(38, 39, '2019-01-31 10:09:32', NULL, NULL, NULL, 'kayseri', 212, NULL),
|
||||
(39, 40, '2019-01-31 10:09:32', NULL, NULL, NULL, 'kirklareli', 212, NULL),
|
||||
(40, 41, '2019-01-31 10:09:32', NULL, NULL, NULL, 'kirsehir', 212, NULL),
|
||||
(41, 42, '2019-01-31 10:09:32', NULL, NULL, NULL, 'kocaeli', 212, NULL),
|
||||
(42, 43, '2019-01-31 10:09:32', NULL, NULL, NULL, 'konya', 212, NULL),
|
||||
(43, 44, '2019-01-31 10:09:32', NULL, NULL, NULL, 'kutahya', 212, NULL),
|
||||
(44, 45, '2019-01-31 10:09:32', NULL, NULL, NULL, 'malatya', 212, NULL),
|
||||
(45, 46, '2019-01-31 10:09:32', NULL, NULL, NULL, 'manisa', 212, NULL),
|
||||
(46, 47, '2019-01-31 10:09:32', NULL, NULL, NULL, 'kahramanmaras', 212, NULL),
|
||||
(47, 48, '2019-01-31 10:09:32', NULL, NULL, NULL, 'mardin', 212, NULL),
|
||||
(48, 49, '2019-01-31 10:09:32', NULL, NULL, NULL, 'mugla', 212, NULL),
|
||||
(49, 50, '2019-01-31 10:09:32', NULL, NULL, NULL, 'mus', 212, NULL),
|
||||
(50, 51, '2019-01-31 10:09:32', NULL, NULL, NULL, 'nevsehir', 212, NULL),
|
||||
(51, 52, '2019-01-31 10:09:32', NULL, NULL, NULL, 'nigde', 212, NULL),
|
||||
(52, 53, '2019-01-31 10:09:32', NULL, NULL, NULL, 'ordu', 212, NULL),
|
||||
(53, 54, '2019-01-31 10:09:32', NULL, NULL, NULL, 'rize', 212, NULL),
|
||||
(54, 55, '2019-01-31 10:09:32', NULL, NULL, NULL, 'sakarya', 212, NULL),
|
||||
(55, 56, '2019-01-31 10:09:32', NULL, NULL, NULL, 'samsun', 212, NULL),
|
||||
(56, 57, '2019-01-31 10:09:32', NULL, NULL, NULL, 'siirt', 212, NULL),
|
||||
(57, 58, '2019-01-31 10:09:32', NULL, NULL, NULL, 'sinop', 212, NULL),
|
||||
(58, 59, '2019-01-31 10:09:32', NULL, NULL, NULL, 'sivas', 212, NULL),
|
||||
(59, 60, '2019-01-31 10:09:32', NULL, NULL, NULL, 'tekirdag', 212, NULL),
|
||||
(60, 61, '2019-01-31 10:09:32', NULL, NULL, NULL, 'tokat', 212, NULL),
|
||||
(61, 62, '2019-01-31 10:09:32', NULL, NULL, NULL, 'trabzon', 212, NULL),
|
||||
(62, 63, '2019-01-31 10:09:32', NULL, NULL, NULL, 'tunceli', 212, NULL),
|
||||
(63, 64, '2019-01-31 10:09:32', NULL, NULL, NULL, 'sanliurfa', 212, NULL),
|
||||
(64, 65, '2019-01-31 10:09:32', NULL, NULL, NULL, 'usak', 212, NULL),
|
||||
(65, 66, '2019-01-31 10:09:32', NULL, NULL, NULL, 'van', 212, NULL),
|
||||
(66, 67, '2019-01-31 10:09:32', NULL, NULL, NULL, 'yozgat', 212, NULL),
|
||||
(67, 68, '2019-01-31 10:09:32', NULL, NULL, NULL, 'zonguldak', 212, NULL),
|
||||
(68, 69, '2019-01-31 10:09:32', NULL, NULL, NULL, 'aksaray', 212, NULL),
|
||||
(69, 70, '2019-01-31 10:09:32', NULL, NULL, NULL, 'bayburt', 212, NULL),
|
||||
(70, 71, '2019-01-31 10:09:32', NULL, NULL, NULL, 'karaman', 212, NULL),
|
||||
(71, 72, '2019-01-31 10:09:32', NULL, NULL, NULL, 'kirikkale', 212, NULL),
|
||||
(72, 73, '2019-01-31 10:09:32', NULL, NULL, NULL, 'batman', 212, NULL),
|
||||
(73, 74, '2019-01-31 10:09:32', NULL, NULL, NULL, 'sirnak', 212, NULL),
|
||||
(74, 75, '2019-01-31 10:09:32', NULL, NULL, NULL, 'bartin', 212, NULL),
|
||||
(75, 76, '2019-01-31 10:09:32', NULL, NULL, NULL, 'ardahan', 212, NULL),
|
||||
(76, 77, '2019-01-31 10:09:32', NULL, NULL, NULL, 'igdir', 212, NULL),
|
||||
(77, 78, '2019-01-31 10:09:32', NULL, NULL, NULL, 'yalova', 212, NULL),
|
||||
(78, 79, '2019-01-31 10:09:32', NULL, NULL, NULL, 'karabuk', 212, NULL),
|
||||
(79, 80, '2019-01-31 10:09:32', NULL, NULL, NULL, 'kilis', 212, NULL),
|
||||
(80, 81, '2019-01-31 10:09:32', NULL, NULL, NULL, 'osmaniye', 212, NULL),
|
||||
(81, 82, '2019-01-31 10:09:32', NULL, NULL, NULL, 'duzce', 212, NULL),
|
||||
(99, 2, '2019-01-31 10:09:32', NULL, NULL, NULL, 'istanbul-asya', 212, NULL);
|
||||
|
||||
--
|
||||
-- Dumping data for table `default_location_cities_translations`
|
||||
--
|
||||
|
||||
INSERT INTO `default_location_cities_translations` (`id`, `entry_id`, `created_at`, `created_by_id`, `updated_at`, `updated_by_id`, `locale`, `name`) VALUES
|
||||
(1, 1, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Adana'),
|
||||
(2, 2, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Adıyaman'),
|
||||
(3, 3, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Afyonkarahisar'),
|
||||
(4, 4, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Ağrı'),
|
||||
(5, 5, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Amasya'),
|
||||
(6, 6, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Ankara'),
|
||||
(7, 7, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Antalya'),
|
||||
(8, 8, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Artvin'),
|
||||
(9, 9, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Aydın'),
|
||||
(10, 10, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Balıkesir'),
|
||||
(11, 11, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Bilecik'),
|
||||
(12, 12, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Bingöl'),
|
||||
(13, 13, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Bitlis'),
|
||||
(14, 14, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Bolu'),
|
||||
(15, 15, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Burdur'),
|
||||
(16, 16, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Bursa'),
|
||||
(17, 17, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Çanakkale'),
|
||||
(18, 18, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Çankırı'),
|
||||
(19, 19, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Çorum'),
|
||||
(20, 20, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Denizli'),
|
||||
(21, 21, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Diyarbakır'),
|
||||
(22, 22, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Edirne'),
|
||||
(23, 23, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Elazığ'),
|
||||
(24, 24, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Erzincan'),
|
||||
(25, 25, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Erzurum'),
|
||||
(26, 26, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Eskişehir'),
|
||||
(27, 27, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Gaziantep'),
|
||||
(28, 28, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Giresun'),
|
||||
(29, 29, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Gümüşhane'),
|
||||
(30, 30, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Hakkari'),
|
||||
(31, 31, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Hatay'),
|
||||
(32, 32, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Isparta'),
|
||||
(33, 33, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Mersin'),
|
||||
(34, 34, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'İstanbul (Avr)'),
|
||||
(35, 35, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'İzmir'),
|
||||
(36, 36, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Kars'),
|
||||
(37, 37, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Kastamonu'),
|
||||
(38, 38, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Kayseri'),
|
||||
(39, 39, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Kırklareli'),
|
||||
(40, 40, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Kırşehir'),
|
||||
(41, 41, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Kocaeli'),
|
||||
(42, 42, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Konya'),
|
||||
(43, 43, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Kütahya'),
|
||||
(44, 44, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Malatya'),
|
||||
(45, 45, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Manisa'),
|
||||
(46, 46, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Kahramanmaraş'),
|
||||
(47, 47, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Mardin'),
|
||||
(48, 48, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Muğla'),
|
||||
(49, 49, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Muş'),
|
||||
(50, 50, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Nevşehir'),
|
||||
(51, 51, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Niğde'),
|
||||
(52, 52, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Ordu'),
|
||||
(53, 53, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Rize'),
|
||||
(54, 54, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Sakarya'),
|
||||
(55, 55, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Samsun'),
|
||||
(56, 56, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Siirt'),
|
||||
(57, 57, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Sinop'),
|
||||
(58, 58, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Sivas'),
|
||||
(59, 59, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Tekirdağ'),
|
||||
(60, 60, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Tokat'),
|
||||
(61, 61, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Trabzon'),
|
||||
(62, 62, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Tunceli'),
|
||||
(63, 63, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Şanlıurfa'),
|
||||
(64, 64, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Uşak'),
|
||||
(65, 65, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Van'),
|
||||
(66, 66, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Yozgat'),
|
||||
(67, 67, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Zonguldak'),
|
||||
(68, 68, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Aksaray'),
|
||||
(69, 69, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Bayburt'),
|
||||
(70, 70, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Karaman'),
|
||||
(71, 71, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Kırıkkale'),
|
||||
(72, 72, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Batman'),
|
||||
(73, 73, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Şırnak'),
|
||||
(74, 74, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Bartın'),
|
||||
(75, 75, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Ardahan'),
|
||||
(76, 76, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Iğdır'),
|
||||
(77, 77, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Yalova'),
|
||||
(78, 78, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Karabük'),
|
||||
(79, 79, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Kilis'),
|
||||
(80, 80, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Osmaniye'),
|
||||
(81, 81, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'Düzce'),
|
||||
(99, 99, '2019-01-31 10:11:53', NULL, NULL, NULL, 'en', 'İstanbul (Asya)');
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
@ -1,504 +0,0 @@
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.8.4
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: localhost
|
||||
-- Generation Time: Jan 31, 2019 at 12:17 PM
|
||||
-- Server version: 10.3.11-MariaDB
|
||||
-- PHP Version: 7.2.13
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `celep`
|
||||
--
|
||||
|
||||
--
|
||||
-- Dumping data for table `default_location_countries`
|
||||
--
|
||||
|
||||
INSERT INTO `default_location_countries` (`id`, `sort_order`, `created_at`, `created_by_id`, `updated_at`, `updated_by_id`, `slug`, `order`) VALUES
|
||||
(1, 1, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'afghanistan', NULL),
|
||||
(2, 2, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'albania', NULL),
|
||||
(3, 3, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'algeria', NULL),
|
||||
(4, 4, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'american_samoa', NULL),
|
||||
(5, 5, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'andorra', NULL),
|
||||
(6, 6, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'angola', NULL),
|
||||
(7, 7, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'anguilla', NULL),
|
||||
(8, 8, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'antarctica', NULL),
|
||||
(9, 9, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'antigua_and_barbuda', NULL),
|
||||
(10, 10, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'argentina', NULL),
|
||||
(11, 11, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'armenia', NULL),
|
||||
(12, 12, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'aruba', NULL),
|
||||
(13, 13, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'australia', NULL),
|
||||
(14, 14, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'austria', NULL),
|
||||
(15, 15, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'azerbaijan', NULL),
|
||||
(16, 16, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'bahamas', NULL),
|
||||
(17, 17, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'bahrain', NULL),
|
||||
(18, 18, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'bangladesh', NULL),
|
||||
(19, 19, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'barbados', NULL),
|
||||
(20, 20, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'belarus', NULL),
|
||||
(21, 21, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'belgium', NULL),
|
||||
(22, 22, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'belize', NULL),
|
||||
(23, 23, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'benin', NULL),
|
||||
(24, 24, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'bermuda', NULL),
|
||||
(25, 25, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'bhutan', NULL),
|
||||
(26, 26, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'bolivia', NULL),
|
||||
(27, 27, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'bosnia_and_herzegovina', NULL),
|
||||
(28, 28, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'botswana', NULL),
|
||||
(29, 29, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'brazil', NULL),
|
||||
(30, 30, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'british_virgin_islands', NULL),
|
||||
(31, 31, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'brunei', NULL),
|
||||
(32, 32, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'bulgaria', NULL),
|
||||
(33, 33, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'burkina_faso', NULL),
|
||||
(34, 34, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'burundi', NULL),
|
||||
(35, 35, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'cambodia', NULL),
|
||||
(36, 36, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'cameroon', NULL),
|
||||
(37, 37, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'canada', NULL),
|
||||
(38, 38, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'cape_verde', NULL),
|
||||
(39, 39, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'cayman_islands', NULL),
|
||||
(40, 40, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'central_african_republic', NULL),
|
||||
(41, 41, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'chad', NULL),
|
||||
(42, 42, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'chile', NULL),
|
||||
(43, 43, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'china', NULL),
|
||||
(44, 44, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'christmas_island', NULL),
|
||||
(45, 45, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'cocos_keeling_islands', NULL),
|
||||
(46, 46, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'colombia', NULL),
|
||||
(47, 47, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'comoros', NULL),
|
||||
(48, 48, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'congo_drc', NULL),
|
||||
(49, 49, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'congo_republic', NULL),
|
||||
(50, 50, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'cook_islands', NULL),
|
||||
(51, 51, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'costa_rica', NULL),
|
||||
(52, 52, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'croatia', NULL),
|
||||
(53, 53, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'cuba', NULL),
|
||||
(54, 54, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'cyprus', NULL),
|
||||
(55, 55, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'czech_republic', NULL),
|
||||
(56, 56, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'denmark', NULL),
|
||||
(57, 57, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'djibouti', NULL),
|
||||
(58, 58, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'dominica', NULL),
|
||||
(59, 59, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'dominican_republic', NULL),
|
||||
(60, 60, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'east_timor', NULL),
|
||||
(61, 61, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'ecuador', NULL),
|
||||
(62, 62, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'egypt', NULL),
|
||||
(63, 63, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'el_salvador', NULL),
|
||||
(64, 64, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'equatorial_guinea', NULL),
|
||||
(65, 65, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'eritrea', NULL),
|
||||
(66, 66, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'estonia', NULL),
|
||||
(67, 67, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'ethiopia', NULL),
|
||||
(68, 68, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'falkland_islands', NULL),
|
||||
(69, 69, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'faroe_islands', NULL),
|
||||
(70, 70, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'fiji', NULL),
|
||||
(71, 71, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'finland', NULL),
|
||||
(72, 72, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'france', NULL),
|
||||
(73, 73, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'french_guiana', NULL),
|
||||
(74, 74, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'french_polynesia', NULL),
|
||||
(75, 75, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'french_southern_territories', NULL),
|
||||
(76, 76, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'gabon', NULL),
|
||||
(77, 77, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'gambia', NULL),
|
||||
(78, 78, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'georgia', NULL),
|
||||
(79, 79, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'germany', NULL),
|
||||
(80, 80, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'ghana', NULL),
|
||||
(81, 81, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'gibraltar', NULL),
|
||||
(82, 82, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'greece', NULL),
|
||||
(83, 83, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'greenland', NULL),
|
||||
(84, 84, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'grenada', NULL),
|
||||
(85, 85, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'guadeloupe', NULL),
|
||||
(86, 86, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'guam', NULL),
|
||||
(87, 87, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'guatemala', NULL),
|
||||
(88, 88, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'guinea', NULL),
|
||||
(89, 89, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'guinea_bissau', NULL),
|
||||
(90, 90, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'guyana', NULL),
|
||||
(91, 91, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'haiti', NULL),
|
||||
(92, 92, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'honduras', NULL),
|
||||
(93, 93, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'hong_kong', NULL),
|
||||
(94, 94, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'hungary', NULL),
|
||||
(95, 95, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'iceland', NULL),
|
||||
(96, 96, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'india', NULL),
|
||||
(97, 97, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'indonesia', NULL),
|
||||
(98, 98, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'iran', NULL),
|
||||
(99, 99, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'iraq', NULL),
|
||||
(100, 100, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'ireland', NULL),
|
||||
(101, 101, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'isle_of_man', NULL),
|
||||
(102, 102, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'israel', NULL),
|
||||
(103, 103, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'italy', NULL),
|
||||
(104, 104, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'ivory_coast', NULL),
|
||||
(105, 105, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'jamaica', NULL),
|
||||
(106, 106, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'japan', NULL),
|
||||
(107, 107, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'jordan', NULL),
|
||||
(108, 108, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'kazakhstan', NULL),
|
||||
(109, 109, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'kenya', NULL),
|
||||
(110, 110, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'kiribati', NULL),
|
||||
(111, 111, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'kosovo', NULL),
|
||||
(112, 112, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'kuwait', NULL),
|
||||
(113, 113, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'kyrgyzstan', NULL),
|
||||
(114, 114, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'laos', NULL),
|
||||
(115, 115, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'latvia', NULL),
|
||||
(116, 116, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'lebanon', NULL),
|
||||
(117, 117, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'lesotho', NULL),
|
||||
(118, 118, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'liberia', NULL),
|
||||
(119, 119, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'libya', NULL),
|
||||
(120, 120, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'liechtenstein', NULL),
|
||||
(121, 121, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'lithuania', NULL),
|
||||
(122, 122, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'luxembourg', NULL),
|
||||
(123, 123, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'macau', NULL),
|
||||
(124, 124, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'macedonia', NULL),
|
||||
(125, 125, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'madagascar', NULL),
|
||||
(126, 126, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'malawi', NULL),
|
||||
(127, 127, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'malaysia', NULL),
|
||||
(128, 128, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'maldives', NULL),
|
||||
(129, 129, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'mali', NULL),
|
||||
(130, 130, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'malta', NULL),
|
||||
(131, 131, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'marshall_islands', NULL),
|
||||
(132, 132, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'martinique', NULL),
|
||||
(133, 133, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'mauritania', NULL),
|
||||
(134, 134, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'mauritius', NULL),
|
||||
(135, 135, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'mayotte', NULL),
|
||||
(136, 136, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'mexico', NULL),
|
||||
(137, 137, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'micronesia', NULL),
|
||||
(138, 138, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'moldova', NULL),
|
||||
(139, 139, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'monaco', NULL),
|
||||
(140, 140, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'mongolia', NULL),
|
||||
(141, 141, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'montserrat', NULL),
|
||||
(142, 142, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'morocco', NULL),
|
||||
(143, 143, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'mozambique', NULL),
|
||||
(144, 144, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'myanmar_burma', NULL),
|
||||
(145, 145, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'namibia', NULL),
|
||||
(146, 146, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'nauru', NULL),
|
||||
(147, 147, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'nepal', NULL),
|
||||
(148, 148, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'netherlands', NULL),
|
||||
(149, 149, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'netherlands_antilles', NULL),
|
||||
(150, 150, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'new_caledonia', NULL),
|
||||
(151, 151, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'new_zealand', NULL),
|
||||
(152, 152, '2019-01-31 10:27:51', NULL, '2019-01-31 10:27:51', NULL, 'nicaragua', NULL),
|
||||
(153, 153, '2019-01-31 10:27:51', NULL, '2019-01-31 10:27:51', NULL, 'niger', NULL),
|
||||
(154, 154, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'nigeria', NULL),
|
||||
(155, 155, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'niue', NULL),
|
||||
(156, 156, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'norfolk_island', NULL),
|
||||
(157, 157, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'north_korea', NULL),
|
||||
(158, 158, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'norway', NULL),
|
||||
(159, 159, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'oman', NULL),
|
||||
(160, 160, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'pakistan', NULL),
|
||||
(161, 161, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'palau', NULL),
|
||||
(162, 162, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'panama', NULL),
|
||||
(163, 163, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'papua_new_guinea', NULL),
|
||||
(164, 164, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'paraguay', NULL),
|
||||
(165, 165, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'peru', NULL),
|
||||
(166, 166, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'philippines', NULL),
|
||||
(167, 167, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'pitcairn_islands', NULL),
|
||||
(168, 168, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'poland', NULL),
|
||||
(169, 169, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'portugal', NULL),
|
||||
(170, 170, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'puerto_rico', NULL),
|
||||
(171, 171, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'qatar', NULL),
|
||||
(172, 172, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'r', NULL),
|
||||
(173, 173, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'romania', NULL),
|
||||
(174, 174, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'russia', NULL),
|
||||
(175, 175, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'rwanda', NULL),
|
||||
(176, 176, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'saint_helena', NULL),
|
||||
(177, 177, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'saint_kitts_and_nevis', NULL),
|
||||
(178, 178, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'saint_lucia', NULL),
|
||||
(179, 179, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'saint_pierre_and_miquelon', NULL),
|
||||
(180, 180, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'saint_vincent_and_the_grenadines', NULL),
|
||||
(181, 181, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'san_marino', NULL),
|
||||
(182, 182, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'sao_tome_and_principe', NULL),
|
||||
(183, 183, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'saudi_arabia', NULL),
|
||||
(184, 184, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'senegal', NULL),
|
||||
(185, 185, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'serbia', NULL),
|
||||
(186, 186, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'seychelles', NULL),
|
||||
(187, 187, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'sierra_leone', NULL),
|
||||
(188, 188, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'singapore', NULL),
|
||||
(189, 189, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'slovakia', NULL),
|
||||
(190, 190, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'slovenia', NULL),
|
||||
(191, 191, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'solomon_islands', NULL),
|
||||
(192, 192, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'somalia', NULL),
|
||||
(193, 193, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'south_africa', NULL),
|
||||
(194, 194, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'south_korea', NULL),
|
||||
(195, 195, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'spain', NULL),
|
||||
(196, 196, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'sri_lanka', NULL),
|
||||
(197, 197, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'sudan', NULL),
|
||||
(198, 198, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'suriname', NULL),
|
||||
(199, 199, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'swaziland', NULL),
|
||||
(200, 200, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'sweden', NULL),
|
||||
(201, 201, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'switzerland', NULL),
|
||||
(202, 202, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'syria', NULL),
|
||||
(203, 203, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'taiwan', NULL),
|
||||
(204, 204, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'tajikistan', NULL),
|
||||
(205, 205, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'tanzania', NULL),
|
||||
(206, 206, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'thailand', NULL),
|
||||
(207, 207, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'togo', NULL),
|
||||
(208, 208, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'tokelau', NULL),
|
||||
(209, 209, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'tonga', NULL),
|
||||
(210, 210, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'trinidad_and_tobago', NULL),
|
||||
(211, 211, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'tunisia', NULL),
|
||||
(212, 212, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'turkey', NULL),
|
||||
(213, 213, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'turkmenistan', NULL),
|
||||
(214, 214, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'turks_and_caicos_islands', NULL),
|
||||
(215, 215, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'tuvalu', NULL),
|
||||
(216, 216, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'us_virgin_islands', NULL),
|
||||
(217, 217, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'uganda', NULL),
|
||||
(218, 218, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'ukraine', NULL),
|
||||
(219, 219, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'united_arab_emirates', NULL),
|
||||
(220, 220, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'united_kingdom', NULL),
|
||||
(221, 221, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'united_states', NULL),
|
||||
(222, 222, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'uruguay', NULL),
|
||||
(223, 223, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'uzbekistan', NULL),
|
||||
(224, 224, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'vanuatu', NULL),
|
||||
(225, 225, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'vatican_city', NULL),
|
||||
(226, 226, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'venezuela', NULL),
|
||||
(227, 227, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'vietnam', NULL),
|
||||
(228, 228, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'wallis_and_futuna', NULL),
|
||||
(229, 229, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'yemen', NULL),
|
||||
(230, 230, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'zambia', NULL),
|
||||
(231, 231, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'zimbabwe', NULL),
|
||||
(232, 232, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'kktc', NULL);
|
||||
|
||||
--
|
||||
-- Dumping data for table `default_location_countries_translations`
|
||||
--
|
||||
|
||||
INSERT INTO `default_location_countries_translations` (`id`, `entry_id`, `created_at`, `created_by_id`, `updated_at`, `updated_by_id`, `locale`, `name`) VALUES
|
||||
(1, 1, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Afghanistan'),
|
||||
(2, 2, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Albania'),
|
||||
(3, 3, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Algeria'),
|
||||
(4, 4, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'American Samoa'),
|
||||
(5, 5, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Andorra'),
|
||||
(6, 6, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Angola'),
|
||||
(7, 7, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Anguilla'),
|
||||
(8, 8, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Antarctica'),
|
||||
(9, 9, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Antigua and Barbuda'),
|
||||
(10, 10, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Argentina'),
|
||||
(11, 11, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Armenia'),
|
||||
(12, 12, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Aruba'),
|
||||
(13, 13, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Australia'),
|
||||
(14, 14, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Austria'),
|
||||
(15, 15, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Azerbaijan'),
|
||||
(16, 16, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Bahamas'),
|
||||
(17, 17, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Bahrain'),
|
||||
(18, 18, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Bangladesh'),
|
||||
(19, 19, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Barbados'),
|
||||
(20, 20, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Belarus'),
|
||||
(21, 21, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Belgium'),
|
||||
(22, 22, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Belize'),
|
||||
(23, 23, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Benin'),
|
||||
(24, 24, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Bermuda'),
|
||||
(25, 25, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Bhutan'),
|
||||
(26, 26, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Bolivia'),
|
||||
(27, 27, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Bosnia and Herzegovina'),
|
||||
(28, 28, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Botswana'),
|
||||
(29, 29, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Brazil'),
|
||||
(30, 30, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'British Virgin Islands'),
|
||||
(31, 31, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Brunei'),
|
||||
(32, 32, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Bulgaria'),
|
||||
(33, 33, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Burkina Faso'),
|
||||
(34, 34, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Burundi'),
|
||||
(35, 35, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Cambodia'),
|
||||
(36, 36, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Cameroon'),
|
||||
(37, 37, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Canada'),
|
||||
(38, 38, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Cape Verde'),
|
||||
(39, 39, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Cayman Islands'),
|
||||
(40, 40, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Central African Republic'),
|
||||
(41, 41, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Chad'),
|
||||
(42, 42, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Chile'),
|
||||
(43, 43, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'China'),
|
||||
(44, 44, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Christmas Island'),
|
||||
(45, 45, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Cocos [Keeling] Islands'),
|
||||
(46, 46, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Colombia'),
|
||||
(47, 47, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Comoros'),
|
||||
(48, 48, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Congo [DRC]'),
|
||||
(49, 49, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Congo [Republic]'),
|
||||
(50, 50, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Cook Islands'),
|
||||
(51, 51, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Costa Rica'),
|
||||
(52, 52, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Croatia'),
|
||||
(53, 53, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Cuba'),
|
||||
(54, 54, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Cyprus'),
|
||||
(55, 55, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Czech Republic'),
|
||||
(56, 56, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Denmark'),
|
||||
(57, 57, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Djibouti'),
|
||||
(58, 58, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Dominica'),
|
||||
(59, 59, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Dominican Republic'),
|
||||
(60, 60, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'East Timor'),
|
||||
(61, 61, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Ecuador'),
|
||||
(62, 62, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Egypt'),
|
||||
(63, 63, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'El Salvador'),
|
||||
(64, 64, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Equatorial Guinea'),
|
||||
(65, 65, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Eritrea'),
|
||||
(66, 66, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Estonia'),
|
||||
(67, 67, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Ethiopia'),
|
||||
(68, 68, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Falkland Islands'),
|
||||
(69, 69, '2019-01-31 10:27:49', NULL, '2019-01-31 10:27:49', NULL, 'en', 'Faroe Islands'),
|
||||
(70, 70, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Fiji'),
|
||||
(71, 71, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Finland'),
|
||||
(72, 72, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'France'),
|
||||
(73, 73, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'French Guiana'),
|
||||
(74, 74, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'French Polynesia'),
|
||||
(75, 75, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'French Southern Territories'),
|
||||
(76, 76, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Gabon'),
|
||||
(77, 77, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Gambia'),
|
||||
(78, 78, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Georgia'),
|
||||
(79, 79, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Germany'),
|
||||
(80, 80, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Ghana'),
|
||||
(81, 81, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Gibraltar'),
|
||||
(82, 82, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Greece'),
|
||||
(83, 83, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Greenland'),
|
||||
(84, 84, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Grenada'),
|
||||
(85, 85, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Guadeloupe'),
|
||||
(86, 86, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Guam'),
|
||||
(87, 87, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Guatemala'),
|
||||
(88, 88, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Guinea'),
|
||||
(89, 89, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Guinea-Bissau'),
|
||||
(90, 90, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Guyana'),
|
||||
(91, 91, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Haiti'),
|
||||
(92, 92, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Honduras'),
|
||||
(93, 93, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Hong Kong'),
|
||||
(94, 94, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Hungary'),
|
||||
(95, 95, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Iceland'),
|
||||
(96, 96, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'India'),
|
||||
(97, 97, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Indonesia'),
|
||||
(98, 98, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Iran'),
|
||||
(99, 99, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Iraq'),
|
||||
(100, 100, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Ireland'),
|
||||
(101, 101, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Isle of Man'),
|
||||
(102, 102, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Israel'),
|
||||
(103, 103, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Italy'),
|
||||
(104, 104, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Ivory Coast'),
|
||||
(105, 105, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Jamaica'),
|
||||
(106, 106, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Japan'),
|
||||
(107, 107, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Jordan'),
|
||||
(108, 108, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Kazakhstan'),
|
||||
(109, 109, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Kenya'),
|
||||
(110, 110, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Kiribati'),
|
||||
(111, 111, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Kosovo'),
|
||||
(112, 112, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Kuwait'),
|
||||
(113, 113, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Kyrgyzstan'),
|
||||
(114, 114, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Laos'),
|
||||
(115, 115, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Latvia'),
|
||||
(116, 116, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Lebanon'),
|
||||
(117, 117, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Lesotho'),
|
||||
(118, 118, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Liberia'),
|
||||
(119, 119, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Libya'),
|
||||
(120, 120, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Liechtenstein'),
|
||||
(121, 121, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Lithuania'),
|
||||
(122, 122, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Luxembourg'),
|
||||
(123, 123, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Macau'),
|
||||
(124, 124, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Macedonia'),
|
||||
(125, 125, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Madagascar'),
|
||||
(126, 126, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Malawi'),
|
||||
(127, 127, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Malaysia'),
|
||||
(128, 128, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Maldives'),
|
||||
(129, 129, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Mali'),
|
||||
(130, 130, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Malta'),
|
||||
(131, 131, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Marshall Islands'),
|
||||
(132, 132, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Martinique'),
|
||||
(133, 133, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Mauritania'),
|
||||
(134, 134, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Mauritius'),
|
||||
(135, 135, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Mayotte'),
|
||||
(136, 136, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Mexico'),
|
||||
(137, 137, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Micronesia'),
|
||||
(138, 138, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Moldova'),
|
||||
(139, 139, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Monaco'),
|
||||
(140, 140, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Mongolia'),
|
||||
(141, 141, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Montserrat'),
|
||||
(142, 142, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Morocco'),
|
||||
(143, 143, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Mozambique'),
|
||||
(144, 144, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Myanmar [Burma]'),
|
||||
(145, 145, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Namibia'),
|
||||
(146, 146, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Nauru'),
|
||||
(147, 147, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Nepal'),
|
||||
(148, 148, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Netherlands'),
|
||||
(149, 149, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'Netherlands Antilles'),
|
||||
(150, 150, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'New Caledonia'),
|
||||
(151, 151, '2019-01-31 10:27:50', NULL, '2019-01-31 10:27:50', NULL, 'en', 'New Zealand'),
|
||||
(152, 152, '2019-01-31 10:27:51', NULL, '2019-01-31 10:27:51', NULL, 'en', 'Nicaragua'),
|
||||
(153, 153, '2019-01-31 10:27:51', NULL, '2019-01-31 10:27:51', NULL, 'en', 'Niger'),
|
||||
(154, 154, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'Nigeria'),
|
||||
(155, 155, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'Niue'),
|
||||
(156, 156, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'Norfolk Island'),
|
||||
(157, 157, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'North Korea'),
|
||||
(158, 158, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'Norway'),
|
||||
(159, 159, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'Oman'),
|
||||
(160, 160, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'Pakistan'),
|
||||
(161, 161, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'Palau'),
|
||||
(162, 162, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'Panama'),
|
||||
(163, 163, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'Papua New Guinea'),
|
||||
(164, 164, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'Paraguay'),
|
||||
(165, 165, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'Peru'),
|
||||
(166, 166, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'Philippines'),
|
||||
(167, 167, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'Pitcairn Islands'),
|
||||
(168, 168, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'Poland'),
|
||||
(169, 169, '2019-01-31 10:27:52', NULL, '2019-01-31 10:27:52', NULL, 'en', 'Portugal'),
|
||||
(170, 170, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'en', 'Puerto Rico'),
|
||||
(171, 171, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'en', 'Qatar'),
|
||||
(172, 172, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'en', 'R'),
|
||||
(173, 173, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'en', 'Romania'),
|
||||
(174, 174, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'en', 'Russia'),
|
||||
(175, 175, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'en', 'Rwanda'),
|
||||
(176, 176, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'en', 'Saint Helena'),
|
||||
(177, 177, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'en', 'Saint Kitts and Nevis'),
|
||||
(178, 178, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'en', 'Saint Lucia'),
|
||||
(179, 179, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'en', 'Saint Pierre and Miquelon'),
|
||||
(180, 180, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'en', 'Saint Vincent and the Grenadines'),
|
||||
(181, 181, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'en', 'San Marino'),
|
||||
(182, 182, '2019-01-31 10:27:53', NULL, '2019-01-31 10:27:53', NULL, 'en', 'Sao Tome and Principe'),
|
||||
(183, 183, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Saudi Arabia'),
|
||||
(184, 184, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Senegal'),
|
||||
(185, 185, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Serbia'),
|
||||
(186, 186, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Seychelles'),
|
||||
(187, 187, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Sierra Leone'),
|
||||
(188, 188, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Singapore'),
|
||||
(189, 189, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Slovakia'),
|
||||
(190, 190, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Slovenia'),
|
||||
(191, 191, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Solomon Islands'),
|
||||
(192, 192, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Somalia'),
|
||||
(193, 193, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'South Africa'),
|
||||
(194, 194, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'South Korea'),
|
||||
(195, 195, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Spain'),
|
||||
(196, 196, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Sri Lanka'),
|
||||
(197, 197, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Sudan'),
|
||||
(198, 198, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Suriname'),
|
||||
(199, 199, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Swaziland'),
|
||||
(200, 200, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Sweden'),
|
||||
(201, 201, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Switzerland'),
|
||||
(202, 202, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Syria'),
|
||||
(203, 203, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Taiwan'),
|
||||
(204, 204, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Tajikistan'),
|
||||
(205, 205, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Tanzania'),
|
||||
(206, 206, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Thailand'),
|
||||
(207, 207, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Togo'),
|
||||
(208, 208, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Tokelau'),
|
||||
(209, 209, '2019-01-31 10:27:54', NULL, '2019-01-31 10:27:54', NULL, 'en', 'Tonga'),
|
||||
(210, 210, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Trinidad and Tobago'),
|
||||
(211, 211, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Tunisia'),
|
||||
(212, 212, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Turkey'),
|
||||
(213, 213, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Turkmenistan'),
|
||||
(214, 214, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Turks and Caicos Islands'),
|
||||
(215, 215, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Tuvalu'),
|
||||
(216, 216, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'U.S. Virgin Islands'),
|
||||
(217, 217, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Uganda'),
|
||||
(218, 218, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Ukraine'),
|
||||
(219, 219, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'United Arab Emirates'),
|
||||
(220, 220, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'United Kingdom'),
|
||||
(221, 221, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'United States'),
|
||||
(222, 222, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Uruguay'),
|
||||
(223, 223, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Uzbekistan'),
|
||||
(224, 224, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Vanuatu'),
|
||||
(225, 225, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Vatican City'),
|
||||
(226, 226, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Venezuela'),
|
||||
(227, 227, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Vietnam'),
|
||||
(228, 228, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Wallis and Futuna'),
|
||||
(229, 229, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Yemen'),
|
||||
(230, 230, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Zambia'),
|
||||
(231, 231, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'Zimbabwe'),
|
||||
(232, 232, '2019-01-31 10:27:55', NULL, '2019-01-31 10:27:55', NULL, 'en', 'KKTC');
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@
|
||||
<nav class="profile-navigation">
|
||||
<div class="nav nav-tabs nav-fill" id="nav-tab" role="tablist">
|
||||
<a class="nav-item nav-link active"
|
||||
href="{{ url_route('visiosoft.module.profile::profile') }}">{{ trans('visiosoft.module.profile::addon.title') }}</a>
|
||||
href="{{ url_route('profile::profile') }}">{{ trans('visiosoft.module.profile::addon.title') }}</a>
|
||||
<a class="nav-item nav-link active"
|
||||
href="{{ url_route('profile::ads') }}">{{ trans('visiosoft.module.advs::addon.title') }}</a>
|
||||
<a class="nav-item nav-link active"
|
||||
|
||||
@ -73,19 +73,6 @@ class MyProfileController extends PublicController
|
||||
$isActivePackages = $isActive->is_enabled('packages');
|
||||
|
||||
|
||||
if ($isBalanceActive) {
|
||||
$balanceController = app(\Visiosoft\BalancesModule\Http\Controller\BalancesFrontController::class);
|
||||
$balanceModel = new \Visiosoft\BalancesModule\Package\PackageModel();
|
||||
$balancespackage = $balanceModel->listPackage();
|
||||
$userbalance = $balanceController->index(auth()->user()->id);
|
||||
$menu_balance = array();
|
||||
$menu_balance['href'] = "balance";
|
||||
$menu_balance['aria-controls'] = "balance";
|
||||
$menu_balance['title'] = trans('visiosoft.module.balances::field.menu_balance.name');
|
||||
$menu_fields[] = $menu_balance;
|
||||
} else {
|
||||
$userbalance = '';
|
||||
}
|
||||
if ($isActiveMessages) {
|
||||
|
||||
$myMessages = new MessageModel();
|
||||
|
||||
@ -90,7 +90,7 @@ class ProfileModuleServiceProvider extends AddonServiceProvider
|
||||
'profile/edit' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@edit',
|
||||
'profile/update' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@update',
|
||||
'profile' => [
|
||||
'as' => 'visiosoft.module.profile::profile',
|
||||
'as' => 'profile::profile',
|
||||
'uses' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@home'
|
||||
],
|
||||
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
{% for locale in locales %}
|
||||
<a href="#"
|
||||
onclick="window.location = '?_locale={{ locale.name }}'"> {{ trans('streams::locale.' ~ locale.name ~ '.name') }}
|
||||
({{ locale.name }})</a>
|
||||
{% endfor %}
|
||||
Loading…
Reference in New Issue
Block a user