@extends('layouts.admin') @section('content')

Blog Post

All Blog Post

@if(Session::has('success_soft')) @endif @if(Session::has('error')) @endif
@foreach($all as $data) @endforeach
Post Title Post Category Author View Comments Status Manage
{{Str::words($data->post_title,10)}} @php $cate=$data->post_category; $allBlogCate=explode(',',$cate); @endphp @foreach($allBlogCate as $pcate) @php $category=App\BlogCategory::where('bcate_status',1)->where('bcate_id',$pcate)->firstOrFail(); @endphp {{$category->bcate_name}}, @endforeach {{$data->creator->name}}
@endsection