Blog | @if(Session::has('success')) @endif

Blog List

@foreach($langs as $lang) @endforeach @foreach($blogs as $blog) @foreach($langs as $lang) @php $getLang = false; foreach($blog->blog_detail as $detail){ if($lang->id == $detail->language_option_id){ $getLang = true; break; } } @endphp @endforeach @endforeach
Name Category Owner Language Publish Status Action
{{ $lang->nation }}
{{ str_replace('-',' ',$blog->code) }} {{ $blog->blog_category->name }} {{ $blog->user->name }} @if($getLang == true) @else Create @endif {{ date('d F Y H:i:s',strtotime($blog->publish_time)) }} Detail