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

53 lines
1.4 KiB
PHP
Raw Normal View History

2024-05-05 04:47:49 +00:00
@if(isset($show))
<div class="{{$css}}">
<div class="row">
@php
$Countries = MPCMS::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 = MPCMS::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