Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 18 additions & 11 deletions app/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,26 @@ public static function translated()

public static function withActualYearEvents()
{
$year = request()->input('year', Carbon::now('Europe/Brussels')->year);

$isos = DB::table('events')
->select(['country_iso'])
->where('status', "=", "APPROVED")
->whereYear('end_date', '>=', Carbon::now('Europe/Brussels')->year)
$countries = DB::table('events')
->select('country_iso as iso', DB::raw('COUNT(*) as total'))
->where('status', '=', 'APPROVED')
->whereYear('end_date', '>=', $year)
->whereNotNull('geoposition')
->groupBy('country_iso')
->get()
->pluck('country_iso');

$countries = Country::findMany($isos)->sortBy('name');

return $countries;

->get();

$result = $countries->map(function ($row) {
$country = Country::find($row->iso);
return [
'iso' => $row->iso,
'name' => $country ? __('countries.' . $country->name) : $row->iso,
'total' => $row->total,
];
})->sortBy('name')->values();

return $result;
}


Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/build/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"isEntry": true
},
"resources/js/app.js": {
"file": "assets/app-BDqdE4NN.js",
"file": "assets/app-CDEsVgo7.js",
"name": "app",
"src": "resources/js/app.js",
"isEntry": true,
Expand Down
55 changes: 26 additions & 29 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# Navigation
Default Navigation
Transparent Navigation

# Home Banner Styles
Common Banner Style
Home 1 Banner
Expand All @@ -48,12 +48,12 @@
listing Category Style 1
listing Category Style 2
listing Category Style 3

# Popular Cities Style
# Testimonial Styles
Testimonial Styles 1
Testimonial Styles 2

# Pricing Table Style
# Services Style
# Features Style
Expand All @@ -69,10 +69,10 @@
Component: Tab Style 1
Component: Tab Style 2
Component: Notify Style
Component: Alert Style
Component: Alert Style

# Footer Styles

# Dropper Settings

# Slick Slider
Expand All @@ -90,9 +90,9 @@
Filter Option
TranslateY
Manage Listing

# Sidebar Style
Opening hour
Opening hour
Listing In Sidebar
Gallery Style
Pages Settings
Expand All @@ -104,12 +104,10 @@
Blogs Comment Styl
Blog Sidebar
# Icons Style
# Login And SignUp Style
# Login And SignUp Style
# Bottom To top Scroll

-----------------------------------------------*/


/* ==========================================================================
Font Links
========================================================================== */
Expand Down Expand Up @@ -161,7 +159,6 @@ p a{
a{
color:#334e6f;
}

a,
a:active,
a:focus,
Expand Down Expand Up @@ -440,7 +437,7 @@ button.btn.dropdown-toggle.btn-default {
color: #445461;
height: 50px;
line-height: 50px;
margin-bottom:10px;
margin-bottom:10px;
}
.chosen-container-single .chosen-single div {
top: 8px;
Expand Down Expand Up @@ -601,7 +598,7 @@ button.btn.dropdown-toggle.btn-default {
.btn.theme-btn-outlined, a.theme-btn-outlined{
background:transparent;
border:1px solid #3E7FC1;
color:#3E7FC1;
color:#3E7FC1;
}
.btn.theme-btn-outlined:hover, a.theme-btn-outlined:hover, .btn.theme-btn-outlined:focus, a.theme-btn-outlined:focus{
background:#3E7FC1;
Expand Down Expand Up @@ -980,7 +977,7 @@ html body .normal-height{
}
html body .height-10{
height:10px;
}
}
html body .height-20{
height:20px;
}
Expand Down Expand Up @@ -1168,7 +1165,7 @@ html body .width-300{
/*---------- Global Settings: Line Height ---------*/
html body .line-height-10{
line-height:10px;
}
}
html body .line-height-12{
line-height:12px;
}
Expand Down Expand Up @@ -1409,7 +1406,7 @@ html body .label-default{
.custom-checkbox {
position: relative;
}
.custom-checkbox input[type="checkbox"] {
.custom-checkbox input[type="checkbox"] {
opacity: 0;
position: absolute;
margin: 5px 0 0 3px;
Expand Down Expand Up @@ -1853,7 +1850,7 @@ a.pulse.btn-banner-link {
margin-bottom: 20px;
}
.banner h1 span{
color:#3E7FC1;
color:#3E7FC1;
}
.banner p {
font-family: 'Montserrat', sans-serif;
Expand All @@ -1865,7 +1862,7 @@ color:#3E7FC1;
line-height: 1.8;
}
.banner .no-padd{
padding:0 0px;
padding:0 0px;
}
.banner .btn {
margin: 5px;
Expand Down Expand Up @@ -1906,7 +1903,7 @@ color:#3E7FC1;
width: 280px !important;
}
.custom-tooltip > div:nth-child(4) {
border: medium none !important;
border: medium none !important;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
-ms-box-shadow: none !important;
Expand All @@ -1919,7 +1916,7 @@ color:#3E7FC1;
}
.custom-tooltip > div:nth-child(4) > div > div > div:nth-child(2) {
background: rgba(0, 0, 0, 0) none repeat scroll 0 0 !important;
border: medium none !important;
border: medium none !important;
-webkit-box-shadow: none !important;
-moz-box-shadow: none !important;
-ms-box-shadow: none !important;
Expand Down Expand Up @@ -2175,7 +2172,7 @@ a.btn.contact-btn {
a.btn.contact-btn:hover, a.btn.contact-btn:focus{
background:#ffffff;
border-color:#ffffff;
color:#3E7FC1;
color:#3E7FC1;
}
a.btn.contact-btn:hover i, a.btn.contact-btn:focus i{
color:#3E7FC1;
Expand Down Expand Up @@ -2503,7 +2500,7 @@ listing Category Style
/*----------- listing Category Style 1 -----------*/
.category-boxs {
height: 100%;

}
.category-box-full{
position: relative;
Expand Down Expand Up @@ -2660,7 +2657,7 @@ listing Category Style
transition: transform 0.35s ease-out;
transform: translate3d(0,0,0) scale(1);
image-rendering: -webkit-optimize-contrast;

}
.cat-box-name {
padding: 4em 0 2em 0;
Expand Down Expand Up @@ -2942,7 +2939,7 @@ Testimonial Styles
height: 12px;
border-radius: 50%;
background: transparent;
border: 2px solid #3E7FC1;
border: 2px solid #3E7FC1;
}
.testimonials-2 .owl-theme .owl-controls .owl-page.active span,
.testimonials-2 .owl-theme .owl-controls.clickable .owl-page:hover span{
Expand Down Expand Up @@ -3026,7 +3023,7 @@ button.btn.btn-package {
margin-top:30px;
}
button.btn.btn-package:hover, button.btn.btn-package:focus{
background:#2a3646;
background:#2a3646;
}

/*========================================================
Expand Down Expand Up @@ -3352,7 +3349,7 @@ Page Title Settings
background-position:center !important;
position:relative;
height:320px;

}
.page-title:before {
content: "";
Expand Down Expand Up @@ -3991,7 +3988,7 @@ span.category-tag {
border: 1px solid #eaeff5;
box-shadow: 0px 0px 10px 1px rgba(71, 85, 95,0.08);
-webkit-box-shadow: 0px 0px 10px 1px rgba(71, 85, 95,0.08);
-moz-box-shadow: 0px 0px 10px 1px rgba(71, 85, 95,0.08);
-moz-box-shadow: 0px 0px 10px 1px rgba(71, 85, 95,0.08);
}
button.btn.remove-field.light-gray-btn {
margin-left: 15px;
Expand Down Expand Up @@ -5128,7 +5125,7 @@ Login And SignUp Style
background: transparent;
border-bottom: 1px solid #dbe0e6;
transition:all ease-in-out 0.4s;

}

.log-box .form-control {
Expand Down
7 changes: 4 additions & 3 deletions resources/js/components/CountrySelect.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<template>
<div>

<select v-model="selected_country" class="codeweek-input-select" id="id_country" name="country_iso"
@change="newCountry()">
<select v-model="selected_country" class="codeweek-input-select" id="id_country" name="country_iso" @change="newCountry()">
<option value=""> All countries</option>
<option disabled value="---">-&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;</option>
<option v-for="country in countries" v-bind:value="country.iso">{{ country.name }} ({{ country.total }})</option>
<option v-for="country in countries" :value="country.iso">
{{ country.name }} ({{ country.total }})
</option>
</select>
</div>
</template>
Expand Down