<?php $user = Auth::user(); $st = $user->isStoryteller(); $query = $st ? HandbookPage::orderBy('created_at', 'DESC') : HandbookPage::where('created_by', $user->id); $pagination = $query->paginate(15); ?> @extends('layout') @section('title', 'Handbook Directory') @section('includes') <style type="text/css"> .handbook-pagination { float: right; margin-top: -40px; } .handbook-page { padding: 10px 10px; border: 1px solid #c0c0c0; border-radius: 3px; margin-bottom: 10px; } .handbook-title { font-size: 1.3em; } .handbook-preview { overflow: hidden; font-size: 0.9em;