new_sky.blade.php
3.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
@extends('layout.frontend', ['title' => 'Вакансии РекаМоре'])
@section('scripts')
<script>
$(document).on('change', '.jobs', function() {
var val = $(this).val();
console.log('Click change...');
$.ajax({
type: "GET",
url: "{{ route('vacancies') }}",
data: "job="+val,
success: function (data) {
console.log('Выбор должности');
console.log(data);
$('#block_ajax').html(data);
},
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
error: function (data) {
data = JSON.stringify(data);
console.log('Error: ' + data);
}
});
});
</script>
@endsection
@section('content')
<section class="thing">
<div class="container">
<form class="thing__body">
<ul class="breadcrumbs thing__breadcrumbs">
<li><a href="{{ route('index') }}">Главная</a></li>
<li><b>Вакансии</b></li>
</ul>
<h1 class="thing__title">Вакансии</h1>
<p class="thing__text">С другой стороны, социально-экономическое развитие не оставляет шанса для
существующих финансовых и административных условий.</p>
<div class="select select_search thing__select">
<div class="select__icon">
<svg>
<use xlink:href="{{ asset('images/sprite.svg#search') }}"></use>
</svg>
</div>
<select class="js-select2 jobs" id="jobs" name="jobs">
<option value="0">Выберите должность</option>
@if ($Job_title->count())
@foreach($Job_title as $JT)
<option value="{{ $JT->id }}" @if ((isset($_GET['job'])) && ($_GET['job'] == $JT->id)) selected @endif>{{ $JT->name }}</option>
@endforeach
@endif
</select>
</div>
</form>
</div>
</section>
<main class="main">
<div class="container">
<div class="main__vacancies">
<h2 class="main__vacancies-title">Категории вакансий</h2>
<div class="vacancies__body">
<!--<button class="vacancies__more button button_more button_light js-toggle js-parent-toggle">
<span>Показать ещё</span>
<span>Скрыть</span>
</button>-->
<div class="vacancies__list" id="block_ajax" name="block_ajax">
@foreach($Main_Job as $key => $it_main)
<div class="vacancies__list-col">
@include('block_real_new', ['it_main' => $it_main, 'category' => $key])
</div>
@endforeach
<!--_foreach (BigFlot as $key => $flot)
<div class="vacancies__list-col">
_include('block_real', ['flot' => $flot, 'position' => $Position[$key]])
</div>
_endforeach-->
</div>
</div>
</div>
</div>
</main>
</div>
@endsection