{{-- Book data --}}
@if ($product->book == 1)
<div id="author" class="collapse  " aria-labelledby="headingThrees" data-parent="#accordion">
    <div class="card-body">
        <div class="row">
            <div class="col-md-2">
                <img style="width: 100px;height: 100px;border-radius: 50%;object-fit: cover;" src="@if (file_exists(public_path() . '/uploads/admin/' . $product->author->img)){{ asset('/') }}uploads/admin/{{ $product->author->img }}@else{{ asset('/icon/no-img-cat.png') }}@endif">
            </div>
            <div class="col-md-9">
                <h4>{{ $product->author->name }}</h4>
                {!! $product->author->bio !!}
            </div>
        </div>
    </div>
</div>
<div id="specification" class="collapse" aria-labelledby="headingThree" data-parent="#accordion">
    <div class="card-body">
        <table class="table">
            <tr>
                <th>Title</th>
                <td>{{ $product->title }}</td>
            </tr>
            <tr>
                <th>Author</th>
                <td> <a style="font-size:14px"
                        href="{{ route('author.product', ['slug' => $product->author_id]) }}">{{ $product->author->name }}</a>
                </td>
            </tr>
            <tr>
                <th>Publisher</th>
                <td> <a style="font-size: 17px"
                        href="{{ route('vendor', $product->user->shop_info->slug) }}">{{ $product->user->shop_info->name }}</a>
                </td>
            </tr>
            <tr>
                <th>ISBN</th>
                <td>{{ $product->isbn }}</td>
            </tr>
            <tr>
                <th>Edition</th>
                <td>{{ $product->edition }}</td>
            </tr>
            <tr>
                <th>Number of Pages</th>
                <td>{{ $product->pages }}</td>
            </tr>
            <tr>
                <th>Country</th>
                <td>{{ $product->country }}</td>
            </tr>
            <tr>
                <th>Language</th>
                <td>{{ $product->language }}</td>
            </tr>

        </table>
    </div>
</div>
@endif
{{-- /Book data --}}