@extends('elibrary.student.layouts.app') @section('content') @forelse($books as $book) @php $created_by = \App\Models\Staff::where('id' , $book->created_by)->pluck('name')->first(); @endphp

{{$book->name}}

{{$created_by}}

@empty

No Books found.

@endforelse @endsection