@extends('layouts.heading-page')
@section('title')
News -
@endsection
@section('seo_keywords')
{{ $dataRow->seo_keyword }}
@endsection
@section('seo_description')
{{ $dataRow->seo_description }}
@endsection
@section('css')
@endsection
@section('breadcrumbs')
News
@endsection
@section('page-main')
News
{{ $dataRow->title }}
@php
$img_memo = '';
$img_src = '/assets/img/news-item-a01.jpg';
$imgs = $dataRow->photos;
// $imgs = array_filter($row['photos'], function($v) {
// return $v['is_selected'] == true;
// });
if (count($imgs) > 0)
{
foreach($imgs as $img)
{
//$img_memo = $img['comment'];
$img_src = URL::asset('/storage/'.$img['file_path']);
}
}
@endphp
{!! $dataRow->body !!}
@php
$items = json_decode($dataRow->source_links, true);
@endphp
@if (!$items || count($items) < 1)
@else
Source:
@foreach($items as $item)
@foreach($item as $key => $value)
@endforeach
@endforeach
@endif
@endsection
@section('script')
@endsection