{{ $books->title }}
@if($books->image != '') {{ $books->title }} @else {{ $books->title }} @endif
Book Code:
{{ $books->code }}
Book Category:
{{ ViewHelper::getBookCategoryById($books->categories) }}
Author:
{{ $books->author }}
Publisher:
{{ $books->publisher }}
Edition:
{{ $books->edition }}
Rack Location:
{{ $books->rack_location }}
Quantity:
{{ $books->bookCollection()->count() }}
Available:
{{ $books->bookCollection()->where('book_status','=',1)->count() }}
{!! Form::Label('book_id', 'Available Copies', ['class' => 'col-sm-3 control-label', "required"]) !!} {{----}} @php($availableCopies = $books->bookCollection()->where('book_status','=',1)->get()->pluck('book_code','id')->toArray()) {!! Form::select('book_id[]', $availableCopies, null, ['class' => 'form-control chosen-select', 'required']) !!}