{% include '@Application/inc/central_header.html.twig' %}
<section class="section hire-page">
<div class="container">
<div class="row">
<div class="col-md-12 d-flex justify-content-center align-items-center">
<div class="search-area">
<h1 class="section-title">Hire Professionals to Do Your Job</h1>
<p class="mb-4">Access top freelance professionals within our Honeybee Ecosystem to handle tasks efficiently and affordably. Save on hiring costs while gaining expert support from skilled individuals eager to contribute – the perfect way to keep your business lean and sales strong.</p>
{# Search Input for Live Search #}
<div class="search-bar-container d-flex justify-content-center">
<input
type="text"
id="freelancer-search-input"
name="q"
value="{{ searchValue|default('') }}"
class="form-control"
placeholder="Who are you looking for?"
>
<button class="search-btn" type="button">
<img src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/icons/search.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}" alt="">
Search
</button>
</div>
</div>
</div>
</div>
<!-- Profiles Grid -->
<div class="row main-profile-container">
<div class="profile-container" id="freelancer-results">
{% if freelancersData is empty %}
<div class="col-12 text-center mt-4">
<p>No professionals found matching your search.</p>
</div>
{% else %}
{% for data in freelancersData %}
<div class="profile">
<div class="profile-card">
<div class="profile-image"
{% if data.image != '' and not data.image is null %}
style="height:200px;background:url('{{ url('dashboard') }}{{ data.image }}?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}');background-size: cover; background-repeat: no-repeat; background-position: center;"
{% else %}
style="height:200px;background:url('{{ url('dashboard') }}honeybee_web_assets/images/hire-page/hire1.png?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}');background-size: cover; background-repeat: no-repeat; background-position: center;"
{% endif %}
></div>
<div class="rating">
<img src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/hire-page/star.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}" alt=""> 4.5
</div>
<div class="available">Available</div>
<div class="profile-info">
<h5>{{ data.firstname }} {{ data.lastname }}</h5>
<p><strong>Expertise:</strong> {{ data.skillsText }}</p>
<p><strong>Experience:</strong> {{ data.workexperienceyear }} Years</p>
<p><strong>Country:</strong> Bangladesh</p>
<p><strong>Language:</strong> Bengali, English, Hindi</p>
<div class="button-group mt-3 gap-3">
<a class="btn profile-btn" href="{{ path('honeybee_freelancer_profile') }}/{{ data.applicantId }}">View</a>
<a class="btn hire-btn">Hire Now</a>
</div>
</div>
</div>
</div>
{% endfor %}
{% endif %}
</div>
</div>
<div class="row">
<div class="col-12 text-center">
<button class="see-more-btn"><img src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/icons/caret-down.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}" alt=""> See More</button>
</div>
</div>
</div>
</section>
{% include '@HoneybeeWeb/footer/central_footer.html.twig' %}
{# Live Search AJAX Script #}
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
$(document).ready(function() {
var typingTimer;
var doneTypingInterval = 500; // delay in ms
$('#freelancer-search-input').on('keyup', function() {
clearTimeout(typingTimer);
var query = $(this).val();
typingTimer = setTimeout(function() {
$.ajax({
url: "{{ path('honeybee_hire') }}", // your route name
type: 'GET',
data: { q: query },
success: function(data) {
var newContent = $(data).find('#freelancer-results').html();
$('#freelancer-results').html(newContent);
},
error: function() {
console.log('Error loading search results.');
}
});
}, doneTypingInterval);
});
});
</script>
{#{% include '@Application/inc/central_header.html.twig' %}#}
{# <style>#}
{# .profile-card .profile-image#}
{# {#}
{# background-size: cover !important;#}
{# background-position: center !important;#}
{# height: 221px;#}
{# background-repeat: no-repeat;#}
{# }#}
{#</style> #}
{#<section class="section hire-page">#}
{# <div class="container">#}
{# <div class="row">#}
{# <div class="col-md-12 d-flex justify-content-center align-items-center">#}
{# <div class="search-area">#}
{# <h1 class="section-title">Hire Professionals to Do Your Job</h1>#}
{# <p class="mb-4">Access top freelance professionals within our Honeybee Ecosystem to handle tasks efficiently and affordably. Save on hiring costs while gaining expert support from skilled individuals eager to contribute – the perfect way to keep your business lean and sales strong.</p>#}
{# <div class="search-bar-container d-flex justify-content-center">#}
{# <div class="input-group search-bar">#}
{# <input type="text" class="form-control" placeholder="Who are you looking for?" aria-label="Search">#}
{# <button class="search-btn" type="button">#}
{# <img src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/icons/search.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}" alt=""> Search#}
{# </button>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# #}{#{{ dump(freelancersData) }}#}
{# <!-- Profiles Grid -->#}
{# <div class="row main-profile-container">#}
{# <div class="profile-container">#}
{# {% for data in freelancersData %}#}
{# <div class="profile">#}
{# <div class="profile-card">#}
{# <div class="profile-image "#}
{# {% if data.image !='' and not data.image is null %}#}
{# style="height:200px;background:url('{{ url('dashboard') }}{{ data.image }}?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}');background-size: cover;#}
{# background-repeat: no-repeat"#}
{# {% else %}#}
{# style="height:200px;background:url('{{ url('dashboard') }}honeybee_web_assets/images/hire-page/hire1.png?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}');background-size: cover;#}
{# background-repeat: no-repeat"#}
{# {% endif %}#}
{# >#}
{# </div>#}
{# <div class="rating">#}
{# <img src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/hire-page/star.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}" alt=""> 4.5#}
{# </div>#}
{# <div class="available ">Available</div>#}
{# <div class="profile-info">#}
{# <h5>{{ data.firstname }} {{ data.lastname }}</h5>#}
{# <p><strong>Expertise:</strong> {{ data.skillsText }}</p>#}
{# <p><strong>Experience:</strong> {{ data.workexperienceyear }} Years</p>#}
{# <p><strong>Country:</strong> Bangladesh</p>#}
{# <p><strong>Language:</strong> Bengali, English, Hindi</p>#}
{# <div class="button-group mt-3 gap-3">#}
{# <a class="btn profile-btn" href="{{ path('honeybee_freelancer_profile') }}/{{ data.applicantId }}" >View </a>#}
{# <a class="btn hire-btn" >Hire Now</a>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# </div>#}
{# {% endfor %}#}
{# </div>#}
{# </div>#}
{# <div class="row">#}
{# <div class="col-12 text-center ">#}
{# <button class="see-more-btn"><img src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/icons/caret-down.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}" alt=""> See More</button>#}
{# </div>#}
{# </div>#}
{# </div>#}
{#</section>#}
{#{% include '@HoneybeeWeb/footer/central_footer.html.twig' %}#}