@extends('admin.layouts.index') @section('content')
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Post List
@foreach($alldata as $key => $post) @endforeach
SL ID Post Date Title Category Class Name Created By File Status Action
{{$key+1}} {{$post->id}} {{date('d-M-Y',strtotime($post->post_date))}} {!!$post->title!!} {{$post['category']['category_name']}} {{$post['class_name']['name']}} {{$post['user']['name']}} @if($post->status==1) Active @else Inactive @endif @if($post->status==1) @else @endif
{{-- Add Color --}} @foreach($alldata as $key => $post) @endforeach @foreach($alldata as $key => $post) @endforeach @endsection