public function watch($id) { $video = DB::table('katalog')->leftjoin('publisher', 'katalog.publisher', '=', 'publisher.id')->where('katalog.id', '=', $id)->get(array('katalog.id', 'katalog.title', 'katalog.release', 'katalog.numpage', 'publisher.publishername', 'katalog.file', 'katalog.ISBN')); $authors = AuthorKatalog::get_author_katalog($id); $katalog = Katalog::find($id); $katalog->view++; $katalog->save(); return View::make('front.watch', compact('video', 'authors')); }
... @endif </h5></a> @if($value->category!=3) <div class="result-img"> @if($value->img!=null || $value->img!='') <img src="{{ 'http://localhost/repository-djpbn-master/public/image/cover/'.$value->img }}"> @else <img src="http://localhost/repository-djpbn-master/public/image/nopict.jpg"> @endif </div> @endif <div class="result-content" > <?php $author = AuthorKatalog::get_author_katalog($value->id); ?> <span> @foreach($author as $k=>$v) <a href="{{ URL::to('author/'.$v->id)}}">{{ $v->authorname }}</a>, @endforeach </span> <p>{{ substr($value->summary,0,200).' ...' }}</p> </div> </li> @endforeach </ul> @else <div style="text-align:right"> <img src="http://localhost/repository-djpbn-master/public/image/empty-box.jpg"> <h3>ZOONKK...</h3>