{% extends 'base.html.twig' %}
{% block title %}{% endblock %}
{% block body %}
{% include ("pages/job/header.html.twig") %}
<div id="listOffres">
<div class="container-fluid bg-light overflow-hidden" >
<div class="container">
<div class="row">
<div class="col-lg-9 pr-lg-4">
<div class="row">
<div class="col-md-12" v-for="item in missions">
${item.nomSpecialite}
<div class="job-post-item p-4 d-block d-lg-flex align-items-center">
<div class="one-third mb-4 mb-md-0">
<div class="job-post-item-header align-items-center">
<span class="subadge">Intérim</span>
<h2 class="mr-3 text-black"><a :href="'/job-single/'+item.reference">
<span class="badge badge-info">
${item.nomSpecialite}
(${item.totalPlanning})
</span></a></h2>
</div>
<div class="job-post-item-body d-block d-md-flex">
<div class="mr-3"><span class="icon-calendar"></span> <a href="#">
${formatDate(item.createAt.date)}
</a></div>
<div><span class="icon-hospital-o"></span> <span>${item.departement}</span>
</div>
</div>
</div>
<div class="one-forth ml-auto d-flex align-items-center mt-4 md-md-0">
<a :href="'/job-single/'+item.reference" class="btn btn-primary py-2">Voir l'offre</a>
</div>
</div>
</div><!-- end -->
</div>
<div class="row mt-5">
<div class="col text-center">
<div class="block-27">
<b-pagination
v-model="currentPage"
:total-rows="rows"
:per-page="perPage"
aria-controls="my-table"
></b-pagination>
{# <paginate :pageCount="20" :prevText="'Prev'" :nextText="'Next'">#}
{# </paginate>#}
{# <ul>#}
{# <li><a href="#"><</a></li>#}
{# <li class="active"><span>1</span></li>#}
{# <li><a href="#">2</a></li>#}
{# <li><a href="#">3</a></li>#}
{# <li><a href="#">4</a></li>#}
{# <li><a href="#">5</a></li>#}
{# <li><a href="#">></a></li>#}
{# </ul>#}
</div>
</div>
</div>
</div>
<div class="col-lg-3 sidebar">
<div class="sidebar-box bg-white p-4">
<h3 class="heading-sidebar">Parcourir les emplois</h3>
<form action="#" class="search-form mb-3">
<div class="form-group">
<span class="icon icon-search"></span>
<input @keyup="filterAction()" type="text" class="form-control" placeholder="Search..." v-model="form.inputFilter">
</div>
</form>
{# v-on:change="filterAction(item.specialite)"#}
<form action="#" class="browse-form">
<div v-for="item in filterSpecialite">
<label for="option-job-1">
<input type="checkbox"
v-model="form.specialite"
:value="item.specialite"
@change="filterAction()"
>
<span class="badge badge-info" style="width: 25px">${item.missions}</span>
${item.specialite}
</label><br>
</div>
</form>
</div>
<div class="sidebar-box bg-white p-4">
<h3 class="heading-sidebar">Selectionner un lieu</h3>
<form action="#" class="browse-form">
<div v-for="item in filterDept">
<label for="option-location-1" v-if="item.missions > 0">
<input type="checkbox" id="option-location-1"
v-model="form.dept"
:value="item.dept"
@change="filterAction()"
>
<span class="badge badge-info">${item.missions}</span>
${item.dept}
</label><br>
</div>
</form>
</div>
<div class="sidebar-box bg-white p-4 ">
<h3 class="heading-sidebar">Offre Par Mois</h3>
<form action="#" class="browse-form">
<div v-for="item in filterMois">
<label for="option-location-1">
<input type="checkbox" id="option-location-1"
v-model="form.mois"
:value="item.mois"
@change="filterAction()"
>
<span class="badge badge-info" style="width: 25px">${item.missions}</span>
${item.mois}
</label><br>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}