master_template/resources/views/shortcodes/demands.blade.php

53 lines
1.4 KiB
PHP
Raw Permalink Normal View History

2024-06-10 12:21:58 +00:00
@if(isset($show))
<div class="{{$css}}">
<div class="row">
@php
$Countries = CCMS::getDemandCountries();
@endphp
@if ($Countries && count($Countries) > 0)
@foreach ($Countries as $Country)
<div class="col-md-3 text-center">
<a href="{{site_url('country/'.$Country->alias)}}">
<img class="img-fluid" src="{{site_url($Country->image_thumb)}}" alt="">
</a>
<a href="{{site_url('country/'.$Country->alias)}}">
<p class="custom-text2 mt-3 text-center">{!! $Country->title !!}</p>
</a>
</div>
@endforeach
@else
Country not added or published.
@endif
</div>
</div>
@else
<div class="{{$css}}">
<div class="row">
@php
$JobDemands = CCMS::getPaperDemands();
@endphp
@if ($JobDemands && count($JobDemands) > 0)
@foreach ($JobDemands as $JobDemand)
<div class="col-md-3 text-center">
<a href="{{site_url('demand/'.$JobDemand->alias)}}">
<img class="img-fluid" src="{{site_url($JobDemand->thumb)}}" alt="">
</a>
<a href="{{site_url('demand/'.$JobDemand->alias)}}">
<p class="custom-text2 mt-3 text-center">{!! $JobDemand->title !!}</p>
</a>
</div>
@endforeach
@else
Country not added or published.
@endif
</div>
</div>
@endif