@if(Session::has('success'))
{{ Session::get('success') }}
@endif
@if(Session::has('errors'))
{{ Session::get('errors') }}
@endif
{{--
Add --}}
| # |
Title |
Description |
Image |
video url type |
status |
|
@foreach($articleList as $key=>$val)
| {{$key+1}} |
{{$val->title}} |
{{str_limit(strip_tags($val->description), $limit = 15, $end = '...')}} |
 ? url('storage/articles/images/'.$val->image) : url('storage/articles/images/no_image.png'))}}) |
@php
$type = '';
if($val->video_type == 1){
$type = 'Embedded';
}
else if($val->video_type == 2){
$type = 'Url';
}
else{
$type = 'No video';
}
@endphp
{{$type}} |
{{(($val->status == 1) ? "Active" : "Inactive")}} |
@if($val->status==2)
@elseif($val->status==1)
@endif
|
@endforeach