@php
$newsurl = '';
@endphp
@if(isset($data['news']) && !empty($data['news']) && count($data['news']) > 0)
@php
$cols = 'col-md-4 col-sm-4 col-xs-12';
$grid = '3';
if($data['cols'] == 'grid_2_col'){
$cols = 'col-xl-6';
$grid = '2';
}elseif ($data['cols'] == 'grid_3_col') {
$cols = 'col-xl-4';
$grid = '3';
}elseif ($data['cols'] == 'grid_4_col') {
$cols = 'col-xl-3';
$grid = '4';
}
if(isset($data['class'])){
$class = $data['class'];
}
if(isset($data['paginatehrml']) && $data['paginatehrml'] == true){
$pcol = $cols;
}else{
$pcol = 'item';
}
@endphp
@if(isset($data['desc']) && $data['desc'] != '')
@foreach($data['news'] as $news)
@php
if(isset(App\Helpers\MyLibrary::getFront_Uri('news')['uri'])){
$moduelFrontPageUrl = App\Helpers\MyLibrary::getFront_Uri('news')['uri'];
$moduleFrontWithCatUrl = ($news->varAlias != false ) ? $moduelFrontPageUrl . '/' . $news->varAlias : $moduelFrontPageUrl;
$categoryRecordAlias = App\Helpers\Mylibrary::getRecordAliasByModuleNameRecordId('news',$news->txtCategories);
$recordLinkUrl = $moduleFrontWithCatUrl.'/'.$news->alias->varAlias;
} else {
$recordLinkUrl = '';
}
@endphp
@if(isset($news->custom['img']))
@php
$itemImg = App\Helpers\resize_image::resize($news->custom['img']);
@endphp
@else
@php
$itemImg = App\Helpers\resize_image::resize($news->fkIntImgId);
@endphp
@endif
@if(isset($news->custom['description']))
@php
$description = $news->custom['description'];
@endphp
@else
@php
$description = $news->varShortDescription;
@endphp
@endif
@if($data['cols'] == 'list')
@else
@endif
-
ICT
@if(isset($news->dtDateTime) && $news->dtDateTime != '')
-
{{ date('M',strtotime($news->dtDateTime)) }} {{ date('d',strtotime($news->dtDateTime)) }}, {{ date('Y',strtotime($news->dtDateTime)) }}
@endif
{{ $news->varTitle }}
@if(isset($description) && $description != '')
@endif
{{--
--}}
@endforeach
@if(Request::segment(1) != '' && isset($data['paginatehrml']) && $data['paginatehrml'] == true)
@if($data['news']->total() > $data['news']->perPage())
{{-- {{ $data['news']->links() }} --}}
@endif
@endif
@endif