Raffales-LMS/resources/views/shortcodes/demands.blade.php
2024-04-16 15:43:24 +05:45

53 lines
1.4 KiB
PHP

@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