<commit_before>@extends('connexion::templates.webpage')

@section('css')
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css">
@stop

@section('content')
<div class="container">
    <div class="top30">
        <h1>Explore our bookshop</h1>
    	<table id="bTable" class="table table-striped table-hover table-condensed table-responsive" width="100%" cellspacing="0">
            <thead>
                <tr>
                    <th></th><th>Book</th><th>Author</th><th>Copies</th><th>Average rating (1-5)</th>
                </tr>
            </thead>
            <tfoot>
                <tr>
                    <th></th><th>Book</th><th>Author</th><th>Copies</th><th>Average rating (1-5)</th>
                </tr>
            </tfoot>
            <tbody>
                @forelse ($books as $cc)
                    <tr>
                        <td><a href="{{route('webbook',$cc->slug)}}">
                            @if ($cc->image)
                                <img width="50px" class="img-responsive" src="{{url('/')}}/public/storage/books/{{$cc->image}}">
                            @else
                                <img width="50px" class="img-responsive" src="{{url('/')}}/public/vendor/bishopm/images/book.png">
                            @endif
                        </a></td>
                        <td><a href="{{route('webbook',$cc->slug)}}">{{$cc->title}}</a></td>
                        <td><a href="{{route('webbook',$cc->slug)}}">{!!$cc->author!!}</a></td>
                        <td><a href="{{route('webbook',$cc->slug)}}">{!!$cc->stock!!}</a></td>
                        <td><a href="{{route('webbook',$cc->slug)}}">{{round($cc->averageRate(),2)}} ({{count($cc->comments)}} comments)</a></td>
                    </tr>
                @empty
                    <tr><td>No books have been added yet</td></tr>
                @endforelse
            </tbody>
        </table>
    </div>
</div>
@endsection

@section('js')
<script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.12/js/dataTables.bootstrap.min.js"></script>
<script language="javascript">
$(document).ready(function() {
    $('#bTable').DataTable();
} );
</script>
@endsection<commit_msg>Summernote for courses and books<commit_after>@extends('connexion::templates.webpage')

@section('css')
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css">
@stop

@section('content')
<div class="container">
    <div class="top30">
        <h1>Explore our bookshop</h1>
    	<table id="bTable" class="table table-striped table-hover table-condensed table-responsive" width="100%" cellspacing="0">
            <thead>
                <tr>
                    <th></th><th>Book</th><th>Author</th><th>Copies</th><th>Average rating (1-5)</th>
                </tr>
            </thead>
            <tfoot>
                <tr>
                    <th></th><th>Book</th><th>Author</th><th>Copies</th><th>Average rating (1-5)</th>
                </tr>
            </tfoot>
            <tbody>
                @forelse ($books as $cc)
                    <tr>
                        <td><a href="{{route('webbook',$cc->slug)}}">
                            @if ($cc->image)
                                <img width="50px" class="img-responsive" src="{{url('/')}}/public/storage/books/{{$cc->image}}">
                            @else
                                <img width="50px" class="img-responsive" src="{{url('/')}}/public/vendor/bishopm/images/book.png">
                            @endif
                        </a></td>
                        <td><a href="{{route('webbook',$cc->slug)}}">{{$cc->title}}</a></td>
                        <td><a href="{{route('webbook',$cc->slug)}}">{!!$cc->author!!}</a></td>
                        <td><a href="{{route('webbook',$cc->slug)}}">{!!$cc->stock!!}</a></td>
                        <td><a href="{{route('webbook',$cc->slug)}}">{{round($cc->averageRate(),2)}} ({{count($cc->comments)}} comments)</a></td>
                    </tr>
                @empty
                    <tr><td>No books have been added yet</td></tr>
                @endforelse
            </tbody>
        </table>
    </div>
</div>
@endsection

@section('js')
<script src="https://cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.12/js/dataTables.bootstrap.min.js"></script>
<script language="javascript">
$(document).ready(function() {
    $('#bTable').DataTable( {
            "order": [[ 0, "desc" ]]
        } );
} );
</script>
@endsection
{'fraction_non_alphanumeric': 0.2185303514376997, 'fraction_numerical': 0.013844515441959531, 'mean_word_length': 1.8306208559373116, 'pattern_counts': {'":': 1, '<': 149, '<?xml version=': 0, '>': 173, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6527575', 'n_tokens_mistral': 1528, 'n_tokens_neox': 1431, 'n_words': 192}