@extends('layouts.admin.master') @section('head') @section('title')Bargain Book Hut — Authors@endsection @endsection @section('body')
| # | Photo | Author | Born | Languages | Actions | Status |
|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{-- PHOTO --}}
@if($Authorval->photo)
{{ strtoupper(substr($Authorval->name, 0, 1)) }}
@endif
@if($Authorval->photo)
|
{{-- AUTHOR DETAILS --}}
@if($Authorval->tagline)
@endif
@if($Authorval->bio)
@endif
|
{{-- BORN --}}
@if($Authorval->born_place)
{{ $Authorval->born_place }}
@endif
@if($Authorval->born_year)
{{ $Authorval->born_year }}
@endif
@if(!$Authorval->born_place && !$Authorval->born_year)
—
@endif
|
{{-- LANGUAGES --}}
@if($Authorval->languages_written)
@foreach(explode(',', $Authorval->languages_written) as $lang)
{{ trim($lang) }}
@endforeach
@else
—
@endif
Comma-separated
|
{{-- ACTIONS --}}
|
status == 1 ? 'checked' : '' }}
onchange="updateAuthorStatus({{ $Authorval->id }}, this.checked ? 1 : 0)">
|
|
No authors found. Add your first author above. |
||||||