first commit
This commit is contained in:
22
resources/views/shortcodes/companies.blade.php
Normal file
22
resources/views/shortcodes/companies.blade.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<div class="{{$css}}">
|
||||
<div class="row">
|
||||
@php
|
||||
|
||||
$Companies = CCMS::getCompanies();
|
||||
@endphp
|
||||
|
||||
@if ($Companies && count($Companies) > 0)
|
||||
@foreach ($Companies as $Company)
|
||||
<div class="col-md-3">
|
||||
<a href="{{site_url($Company->logo)}}" data-fancybox="gallery1">
|
||||
<img class="img-fluid" src="{{site_url($Company->logo)}}" alt="">
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
|
||||
Company not added or published.
|
||||
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
22
resources/views/shortcodes/countries.blade.php
Normal file
22
resources/views/shortcodes/countries.blade.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<div class="{{$css}}">
|
||||
<div class="row">
|
||||
@php
|
||||
|
||||
$Countries = CCMS::getCountries();
|
||||
@endphp
|
||||
|
||||
@if ($Countries && count($Countries) > 0)
|
||||
@foreach ($Countries as $Country)
|
||||
<div class="col-md-3">
|
||||
<a href="{{site_url($Country->image_thumb)}}" data-fancybox="gallery1">
|
||||
<img class="img-fluid" src="{{site_url($Country->image_thumb)}}" alt="">
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
|
||||
Country not added or published.
|
||||
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
53
resources/views/shortcodes/demands.blade.php
Normal file
53
resources/views/shortcodes/demands.blade.php
Normal file
@@ -0,0 +1,53 @@
|
||||
@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
|
41
resources/views/shortcodes/fb_chat.blade.php
Normal file
41
resources/views/shortcodes/fb_chat.blade.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<!-- Messenger Chat Plugin Code -->
|
||||
<!--<div id="fb-root"></div>-->
|
||||
<!--<script>(function(d, s, id) {-->
|
||||
<!-- var js, fjs = d.getElementsByTagName(s)[0];-->
|
||||
<!-- if (d.getElementById(id)) return;-->
|
||||
<!-- js = d.createElement(s); js.id = id;-->
|
||||
<!-- js.src = 'https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js#xfbml=1&version=v2.12&autoLogAppEvents=1';-->
|
||||
<!-- fjs.parentNode.insertBefore(js, fjs);-->
|
||||
<!--}(document, 'script', 'facebook-jssdk'));</script>-->
|
||||
<!-- Your customer chat code -->
|
||||
<!--<div class="fb-customerchat"-->
|
||||
<!-- attribution=install_email-->
|
||||
<!-- page_id="106003908524549">-->
|
||||
<!--</div>-->
|
||||
<!-- Messenger Chat Plugin Code -->
|
||||
<div id="fb-root"></div>
|
||||
<!-- Your Chat Plugin code -->
|
||||
<div id="fb-customer-chat" class="fb-customerchat">
|
||||
</div>
|
||||
<script>
|
||||
var chatbox = document.getElementById('fb-customer-chat');
|
||||
chatbox.setAttribute("page_id", "<?php echo $page_id; ?>");
|
||||
chatbox.setAttribute("attribution", "biz_inbox");
|
||||
</script>
|
||||
<!-- Your SDK code -->
|
||||
<script>
|
||||
window.fbAsyncInit = function() {
|
||||
FB.init({
|
||||
xfbml: true,
|
||||
version: 'v12.0'
|
||||
});
|
||||
};
|
||||
(function(d, s, id) {
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) return;
|
||||
js = d.createElement(s);
|
||||
js.id = id;
|
||||
js.src = 'https://connect.facebook.net/en_GB/sdk/xfbml.customerchat.js';
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
</script>
|
3
resources/views/shortcodes/form.blade.php
Normal file
3
resources/views/shortcodes/form.blade.php
Normal file
@@ -0,0 +1,3 @@
|
||||
<?php $alias=str_replace("&quod;","",$alias); ?>
|
||||
<?php $alias=str_replace("'","",$alias); ?>
|
||||
{{CCMS::showForm($alias)}}
|
24
resources/views/shortcodes/gallery.blade.php
Normal file
24
resources/views/shortcodes/gallery.blade.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<div class="{{$css}}">
|
||||
<div class="row">
|
||||
@php
|
||||
$alias = htmlspecialchars_decode($alias);
|
||||
$Photos = CCMS::getGalleryByAlias($alias);
|
||||
@endphp
|
||||
|
||||
@if ($Photos && count($Photos) > 0)
|
||||
@foreach ($Photos as $Photo)
|
||||
<div class="col-md-3">
|
||||
<a href="{{site_url($Photo->thumb)}}" data-fancybox="gallery1">
|
||||
<img class="img-fluid" src="{{site_url($Photo->thumb)}}" alt="">
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
@else
|
||||
@if (!$Photos)
|
||||
This gallery with alias {!! $alias !!} does not exist.
|
||||
@else
|
||||
No photos available in the gallery.
|
||||
@endif
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
42
resources/views/shortcodes/teams.blade.php
Normal file
42
resources/views/shortcodes/teams.blade.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<div class="{{$css}}">
|
||||
<div class="">
|
||||
@php
|
||||
$branch = trim($branch, '"');
|
||||
if(isset($branch) && $branch!="all"){
|
||||
$Teams=CCMS::getTeamsByBranch($branch);
|
||||
}
|
||||
else
|
||||
{
|
||||
$Teams=CCMS::getTeams($branch);
|
||||
}
|
||||
@endphp
|
||||
<div class="row" id="teams">
|
||||
|
||||
@if (isset($Teams) && count($Teams) > 0)
|
||||
@foreach ($Teams as $Team)
|
||||
<div class="col-12 col-sm-6 col-md-4 col-lg-3">
|
||||
<div class="our-team">
|
||||
<div class="picture">
|
||||
<img src="{!! site_url($Team->thumb)!!}" class=" card-img-top border border-thin" alt="{!! $Team->title!!}">
|
||||
|
||||
</div>
|
||||
<div class="team-content">
|
||||
<h3 class="name">{!! $Team->title!!}</h3>
|
||||
<h4 class="title">{!! $Team->designation!!}</h4>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
@endforeach
|
||||
@else
|
||||
Country not added or published.
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@push("js")
|
||||
@endpush
|
56
resources/views/shortcodes/testimonials.blade.php
Normal file
56
resources/views/shortcodes/testimonials.blade.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
if (isset($branch)) {
|
||||
if ($branch != "all") {
|
||||
$Testi = CCMS::getTestimonialsByBranchAlias($branch);
|
||||
} else {
|
||||
$Testi = CCMS::getTestimonials();
|
||||
}
|
||||
} else {
|
||||
$Testi = CCMS::getTestimonials();
|
||||
}
|
||||
if (isset($layout)) {
|
||||
?>
|
||||
<?php foreach ($Testi as $testimo) : ?>
|
||||
|
||||
<div class="row pb-5 mb-10" style="border-bottom: 1px solid;">
|
||||
<div class="col-12 txt-p-jssfy">
|
||||
<h6><?php echo $testimo->by; ?></h6>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<img src="<?php echo site_url($testimo->image); ?>" alt="<?php echo $testimo->by; ?>" class="logo">
|
||||
</div>
|
||||
<div class="col-8 txt-p-jssfy">
|
||||
<i class="quote-left fas fa-quote-left"></i>
|
||||
<?php echo Str::words($testimo->text, 30, " ..."); ?> <i class="quote-right fas fa-quote-right"></i>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php endforeach; ?>
|
||||
<?php
|
||||
|
||||
|
||||
} else {
|
||||
?>
|
||||
<div class="swiper-container mid-slider items" data-perview="3">
|
||||
|
||||
<div class="swiper-wrapper">
|
||||
<?php foreach ($Testi as $testimo) : ?>
|
||||
<div class="swiper-slide slide-center item">
|
||||
<div class="row card">
|
||||
<div class="col-12 txt-p-jssfy">
|
||||
<div class="cntr-img"><img src="<?php echo site_url($testimo->image); ?>" alt="<?php echo $testimo->by; ?>" class="logo"></div>
|
||||
<i class="quote-left fas fa-quote-left"></i>
|
||||
<?php echo Str::words($testimo->text, 30, " ..."); ?> <i class="quote-right fas fa-quote-right"></i>
|
||||
<h6><?php echo $testimo->by; ?></h6>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
}
|
||||
?>
|
26
resources/views/shortcodes/visaposts.blade.php
Normal file
26
resources/views/shortcodes/visaposts.blade.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<div class="swiper-container mid-slider items" data-perview="3">
|
||||
|
||||
<div class="swiper-wrapper">
|
||||
<?php
|
||||
if (isset($branch)) {
|
||||
if ($branch != "all") {
|
||||
$Testi = CCMS::getVisasByBranchAlias($branch);
|
||||
} else {
|
||||
$Testi = CCMS::getVisas();
|
||||
}
|
||||
} else {
|
||||
$Testi = CCMS::getVisas();
|
||||
}
|
||||
foreach ($Testi as $testimo) : ?>
|
||||
<div class="swiper-slide slide-center item">
|
||||
<div class="row card">
|
||||
<div class="col-12 txt-p-cntr">
|
||||
<img src="<?php echo site_url($testimo->image); ?>" alt="<?php echo $testimo->title; ?>" class="img-responsive" />
|
||||
<h6><?php echo $testimo->title; ?></h6>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user