better structure for views

blade templating and changed the date format for created_at field from
post model.