localization turkmen on event
This commit is contained in:
parent
b1970ec679
commit
5d49c3ab81
|
|
@ -106,9 +106,10 @@ class PublicController extends Controller
|
|||
|
||||
public function search(SearchRequest $request){
|
||||
//todo implement with elastick search and scout
|
||||
$query = $request->get('q');
|
||||
$query = sanitise($request->get('q'));
|
||||
$events = Event::onLive()
|
||||
->where('title','like',"%{$query}%")
|
||||
->where('title_ru','like',"%{$query}%")
|
||||
->orWhere('title_tk','like',"%{$query}%")
|
||||
->paginate(10);
|
||||
|
||||
return view('Bilettm.Public.SearchResults')
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ namespace App\Models;
|
|||
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Str;
|
||||
use URL;
|
||||
|
|
@ -217,6 +218,15 @@ class Event extends MyBaseModel
|
|||
return $this->belongsTo(Category::class,'sub_category_id');
|
||||
}
|
||||
|
||||
public function getTitleAttribute(){
|
||||
|
||||
return $this->{'title_'.Config::get('app.locale')};
|
||||
}
|
||||
|
||||
public function getDescriptionAttribute(){
|
||||
|
||||
return $this->{'description_'.Config::get('app.locale')};
|
||||
}
|
||||
/**
|
||||
* Get the embed url.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -17,14 +17,14 @@ return array (
|
|||
'delete?' => 'Delete?',
|
||||
'enter_existing' => 'Select From Existing Venues',
|
||||
'enter_manual' => 'Enter Address Manually',
|
||||
'event_description' => 'Event Description ru',
|
||||
'event_description_ru' => 'Event Description ru',
|
||||
'event_description_tk' => 'Event Description tk',
|
||||
'event_end_date' => 'Event End Date',
|
||||
'event_flyer' => 'Event Flyer',
|
||||
'event_image' => 'Event Image (Flyer or Graphic etc.)',
|
||||
'event_orders' => 'Event Orders',
|
||||
'event_start_date' => 'Event Start Date',
|
||||
'event_title' => 'Event Title ru',
|
||||
'event_title_ru' => 'Event Title ru',
|
||||
'event_title_tk' => 'Event Title tk',
|
||||
|
||||
'event_title_placeholder' => 'E.g: :name\'s Interational Conference',
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@
|
|||
* Time: 11:09 PM
|
||||
*/
|
||||
return array (
|
||||
'category_title' => 'title_ru',
|
||||
'event_sub_category'=> 'Sub Категория события',
|
||||
'event_category' => 'Категория события'
|
||||
);
|
||||
);
|
||||
|
|
|
|||
|
|
@ -17,13 +17,15 @@ return array (
|
|||
'delete?' => 'Удалять?',
|
||||
'enter_existing' => 'Выбрать из существующих мест',
|
||||
'enter_manual' => 'Введите адрес вручную',
|
||||
'event_description' => 'Описание события',
|
||||
'event_description_ru' => 'Описание события ru',
|
||||
'event_description_tk' => 'Описание события tk',
|
||||
'event_end_date' => 'Дата окончания мероприятия',
|
||||
'event_flyer' => 'Флаер событий',
|
||||
'event_image' => 'Изображение события (флаер или графика и т. Д.)',
|
||||
'event_orders' => 'Заказы на мероприятия',
|
||||
'event_start_date' => 'Дата начала мероприятия',
|
||||
'event_title' => 'Название мероприятия',
|
||||
'event_title_ru' => 'Название мероприятия ru',
|
||||
'event_title_tk' => 'Название мероприятия tk',
|
||||
'event_title_placeholder' => 'Например: Международная конференция имени :name\'s',
|
||||
'event_visibility' => 'Видимость события',
|
||||
'go_live' => 'Событие прошло успешно! Вы можете отменить это действие на странице настроек событий.',
|
||||
|
|
@ -44,4 +46,4 @@ return array (
|
|||
'venue_name_placeholder' => 'Например: крабовая лачуга',
|
||||
'vis_hide' => 'Скрыть событие от общественности.',
|
||||
'vis_public' => 'Сделайте событие видимым для публики.',
|
||||
);
|
||||
);
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
<script src="{{asset('vendor/owlcarousel/owl.carousel.min.js')}}"></script>
|
||||
<!-- JS Unify -->
|
||||
<script src="{{ asset('assets/javascript/components/hs.select.js') }}"></script>
|
||||
<script src="{{ asset('assets/javascript/components/hs.datepicker.js') }}"></script>
|
||||
{{-- <script src="{{ asset('assets/javascript/components/hs.datepicker.js') }}"></script>--}}
|
||||
<!-- JS Plugins Init. -->
|
||||
<script>
|
||||
$.HSCore.components.HSCarousel.init('[class*="js-carousel"]');
|
||||
|
|
@ -55,7 +55,7 @@
|
|||
$.HSCore.components.HSSelect.init('.js-custom-select');
|
||||
|
||||
// initialization of forms
|
||||
$.HSCore.components.HSDatepicker.init('#datepickerInline');
|
||||
// $.HSCore.components.HSDatepicker.init('#datepickerInline');
|
||||
$('#carouselCus1').slick('setOption', 'responsive', [{
|
||||
breakpoint: 1200,
|
||||
settings: {
|
||||
|
|
@ -95,11 +95,11 @@
|
|||
$("#slide-teator-next").click(function(){
|
||||
$("#carousel-09-1 .js-next").click();
|
||||
});
|
||||
// home page teatrda ulanan sliderim un script
|
||||
// initialization of carousel
|
||||
$('#date-click').click(function () {
|
||||
$('#date-click-content').toggleClass('show-content');
|
||||
});
|
||||
// // home page teatrda ulanan sliderim un script
|
||||
// // initialization of carousel
|
||||
// $('#date-click').click(function () {
|
||||
// $('#date-click-content').toggleClass('show-content');
|
||||
// });
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@
|
|||
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
{!! Form::label('title', trans("Event.event_title"), array('class'=>'control-label required')) !!}
|
||||
{!! Form::text('title', Input::old('title'),
|
||||
{!! Form::label('title_ru', trans("Event.event_title_ru"), array('class'=>'control-label required')) !!}
|
||||
{!! Form::text('title_ru', Input::old('title_ru'),
|
||||
array(
|
||||
'class'=>'form-control',
|
||||
'placeholder'=>trans("Event.event_title_placeholder", ["name"=>Auth::user()->first_name])
|
||||
|
|
@ -52,8 +52,8 @@
|
|||
</div>
|
||||
|
||||
<div class="form-group col-md-6">
|
||||
{!! Form::label('description', trans("Event.event_description"), array('class'=>'control-label')) !!}
|
||||
{!! Form::textarea('description', Input::old('description'),
|
||||
{!! Form::label('description_ru', trans("Event.event_description_ru"), array('class'=>'control-label')) !!}
|
||||
{!! Form::textarea('description_ru', Input::old('description_ru'),
|
||||
array(
|
||||
'class'=>'form-control editable',
|
||||
'rows' => 5
|
||||
|
|
|
|||
Loading…
Reference in New Issue