@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
{{$created_by}}