src/ApplicationBundle/Modules/HoneybeeWeb/Resources/views/pages/hire.html.twig line 1

Open in your IDE?
  1. {% include '@Application/inc/central_header.html.twig' %}
  2. <section class="section hire-page">
  3.     <div class="container">
  4.         <div class="row">
  5.             <div class="col-md-12 d-flex justify-content-center align-items-center">
  6.                 <div class="search-area">
  7.                     <h1 class="section-title">Hire Professionals to Do Your Job</h1>
  8.                     <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>
  9.                     {# Search Input for Live Search #}
  10.                     <div class="search-bar-container d-flex justify-content-center">
  11.                         <input
  12.                                 type="text"
  13.                                 id="freelancer-search-input"
  14.                                 name="q"
  15.                                 value="{{ searchValue|default('') }}"
  16.                                 class="form-control"
  17.                                 placeholder="Who are you looking for?"
  18.                         >
  19.                         <button class="search-btn" type="button">
  20.                             <img src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/icons/search.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}" alt="">
  21.                             Search
  22.                         </button>
  23.                     </div>
  24.                 </div>
  25.             </div>
  26.         </div>
  27.         <!-- Profiles Grid -->
  28.         <div class="row main-profile-container">
  29.             <div class="profile-container" id="freelancer-results">
  30.                 {% if freelancersData is empty %}
  31.                     <div class="col-12 text-center mt-4">
  32.                         <p>No professionals found matching your search.</p>
  33.                     </div>
  34.                 {% else %}
  35.                     {% for data in freelancersData %}
  36.                         <div class="profile">
  37.                             <div class="profile-card">
  38.                                 <div class="profile-image"
  39.                                         {% if data.image != '' and not data.image is null %}
  40.                                             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;"
  41.                                         {% else %}
  42.                                             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;"
  43.                                         {% endif %}
  44.                                 ></div>
  45.                                 <div class="rating">
  46.                                     <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
  47.                                 </div>
  48.                                 <div class="available">Available</div>
  49.                                 <div class="profile-info">
  50.                                     <h5>{{ data.firstname }} {{ data.lastname }}</h5>
  51.                                     <p><strong>Expertise:</strong> {{ data.skillsText }}</p>
  52.                                     <p><strong>Experience:</strong> {{ data.workexperienceyear }} Years</p>
  53.                                     <p><strong>Country:</strong> Bangladesh</p>
  54.                                     <p><strong>Language:</strong> Bengali, English, Hindi</p>
  55.                                     <div class="button-group mt-3 gap-3">
  56.                                         <a class="btn profile-btn" href="{{ path('honeybee_freelancer_profile') }}/{{ data.applicantId }}">View</a>
  57.                                         <a class="btn hire-btn">Hire Now</a>
  58.                                     </div>
  59.                                 </div>
  60.                             </div>
  61.                         </div>
  62.                     {% endfor %}
  63.                 {% endif %}
  64.             </div>
  65.         </div>
  66.         <div class="row">
  67.             <div class="col-12 text-center">
  68.                 <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>
  69.             </div>
  70.         </div>
  71.     </div>
  72. </section>
  73. {% include '@HoneybeeWeb/footer/central_footer.html.twig' %}
  74. {# Live Search AJAX Script #}
  75. <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
  76. <script>
  77.     $(document).ready(function() {
  78.         var typingTimer;
  79.         var doneTypingInterval = 500; // delay in ms
  80.         $('#freelancer-search-input').on('keyup', function() {
  81.             clearTimeout(typingTimer);
  82.             var query = $(this).val();
  83.             typingTimer = setTimeout(function() {
  84.                 $.ajax({
  85.                     url: "{{ path('honeybee_hire') }}", // your route name
  86.                     type: 'GET',
  87.                     data: { q: query },
  88.                     success: function(data) {
  89.                         var newContent = $(data).find('#freelancer-results').html();
  90.                         $('#freelancer-results').html(newContent);
  91.                     },
  92.                     error: function() {
  93.                         console.log('Error loading search results.');
  94.                     }
  95.                 });
  96.             }, doneTypingInterval);
  97.         });
  98.     });
  99. </script>
  100. {#{% include '@Application/inc/central_header.html.twig' %}#}
  101. {# <style>#}
  102. {#    .profile-card .profile-image#}
  103. {#    {#}
  104. {#        background-size: cover !important;#}
  105. {#        background-position: center !important;#}
  106. {#        height: 221px;#}
  107. {#        background-repeat: no-repeat;#}
  108. {#    }#}
  109. {#</style> #}
  110. {#<section class="section hire-page">#}
  111. {#    <div class="container">#}
  112. {#        <div class="row">#}
  113. {#            <div class="col-md-12 d-flex justify-content-center align-items-center">#}
  114. {#                <div class="search-area">#}
  115. {#                    <h1 class="section-title">Hire Professionals to Do Your Job</h1>#}
  116. {#                    <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>#}
  117. {#                    <div class="search-bar-container d-flex justify-content-center">#}
  118. {#                        <div class="input-group search-bar">#}
  119. {#                            <input type="text" class="form-control" placeholder="Who are you looking for?" aria-label="Search">#}
  120. {#                            <button class="search-btn" type="button">#}
  121. {#                                <img src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/icons/search.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}" alt=""> Search#}
  122. {#                            </button>#}
  123. {#                        </div>#}
  124. {#                    </div>#}
  125. {#                </div>#}
  126. {#            </div>#}
  127. {#        </div>#}
  128. {#        #}{#{{ dump(freelancersData) }}#}
  129. {#        <!-- Profiles Grid -->#}
  130. {#        <div class="row main-profile-container">#}
  131. {#            <div class="profile-container">#}
  132. {#                {% for data in freelancersData %}#}
  133. {#                <div class="profile">#}
  134. {#                    <div class="profile-card">#}
  135. {#                        <div class="profile-image "#}
  136. {#                                {% if data.image  !='' and not data.image is null   %}#}
  137. {#                                    style="height:200px;background:url('{{ url('dashboard') }}{{ data.image }}?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}');background-size: cover;#}
  138. {#                                            background-repeat: no-repeat"#}
  139. {#                                {% else %}#}
  140. {#                                    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;#}
  141. {#                                            background-repeat: no-repeat"#}
  142. {#                                {% endif %}#}
  143. {#                        >#}
  144. {#                                                       </div>#}
  145. {#                        <div class="rating">#}
  146. {#                            <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#}
  147. {#                        </div>#}
  148. {#                        <div class="available ">Available</div>#}
  149. {#                        <div class="profile-info">#}
  150. {#                            <h5>{{ data.firstname }} {{ data.lastname }}</h5>#}
  151. {#                            <p><strong>Expertise:</strong> {{ data.skillsText }}</p>#}
  152. {#                            <p><strong>Experience:</strong> {{ data.workexperienceyear }} Years</p>#}
  153. {#                            <p><strong>Country:</strong> Bangladesh</p>#}
  154. {#                            <p><strong>Language:</strong> Bengali, English, Hindi</p>#}
  155. {#                            <div class="button-group mt-3 gap-3">#}
  156. {#                                <a class="btn profile-btn" href="{{ path('honeybee_freelancer_profile') }}/{{ data.applicantId }}" >View </a>#}
  157. {#                                <a class="btn hire-btn" >Hire Now</a>#}
  158. {#                            </div>#}
  159. {#                        </div>#}
  160. {#                    </div>#}
  161. {#                </div>#}
  162. {#                {% endfor %}#}
  163. {#            </div>#}
  164. {#        </div>#}
  165. {#        <div class="row">#}
  166. {#            <div class="col-12 text-center ">#}
  167. {#                <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>#}
  168. {#            </div>#}
  169. {#        </div>#}
  170. {#    </div>#}
  171. {#</section>#}
  172. {#{% include '@HoneybeeWeb/footer/central_footer.html.twig' %}#}