<commit_before>@extends ('layout')

@section ('title')
    Edit &middot; {{ $name }}
@endsection

@section ('custom_navbar_right')
    @include ('shared.searchbar')
    @include ('shared.libraries')
@endsection

@section ('content')
    <h2 class="text-center"><b>Edit &middot; <a href="{{ URL::action('MangaController@index', [$id]) }}">{{ $name }}</a></b></h2>

    @include ('shared.success')
    @include ('shared.errors')

    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="panel-title">
                <a data-toggle="collapse" href="#mangaupdates">Mangaupdates</a>
            </div>
        </div>
        <div id="mangaupdates" class="panel-collapse collapse">
            <div class="panel-body">
                <div class="row">
                    <div class="col-xs-12">
                        <h4>Autofill</h4>
                        <hr>
                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                        {{ Form::hidden('id', $id) }}
                        {{ Form::hidden('action', 'autofill') }}
                        <div class="input-group">
                            {{ Form::label('id:', '', ['for' => 'mu_id']) }}
                            @if (isset($mu_id))
                                {{ Form::text('mu_id', '', ['class' => 'form-control', 'placeholder' => $mu_id]) }}
                            @else
                                {{ Form::text('mu_id', '', ['class' => 'form-control']) }}
                            @endif
                        </div>
                        <br>
                        {{ Form::submit('Update', ['class' => 'btn btn-success']) }}
                        {{ Form::close() }}
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="panel-title">
                <span class="glyphicon glyphicon-info-sign"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#information">Information</a>
            </div>
        </div>
        <div id="information" class="panel-collapse collapse">
            <div class="panel-body">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="panel-title">
                            <span class="glyphicon glyphicon-info-sign"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#description">Description</a>
                        </div>
                    </div>
                    <div id="description" class="panel-collapse collapse">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-xs-12 col-md-6">
                                    <h4>New</h4>
                                    <hr>
                                    {{ Form::open(['action' => 'MangaEditController@update']) }}
                                    {{ Form::hidden('id', $id) }}
                                    {{ Form::hidden('action', 'description.update') }}
                                    {{ Form::textarea('description', null, ['class' => 'form-control',
                                                                            'placeholder' => 'Enter description...']) }}
                                    <br>
                                    {{ Form::submit('Save', ['class' => 'btn btn-success']) }}
                                    {{ Form::close() }}
                                </div>
                                <div class="col-xs-12 col-md-6">
                                    <h4>Current</h4>
                                    <hr>
                                    @if (isset($description))
                                        {{ $description }}
                                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                                        {{ Form::hidden('id', $id) }}
                                        {{ Form::hidden('action', 'description.delete') }}
                                        <br>
                                        {{ Form::submit('Delete', ['class' => 'btn btn-danger']) }}
                                        {{ Form::close() }}
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="panel-title">
                            <span class="glyphicon glyphicon-book"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#type">Type</a>
                        </div>
                    </div>
                    <div id="type" class="panel-collapse collapse">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-xs-6">
                                    <h4>New</h4>
                                    <hr>
                                    {{ Form::open(['action' => 'MangaEditController@update']) }}
                                    {{ Form::hidden('id', $id) }}
                                    {{ Form::hidden('action', 'type.update') }}
                                    <div class="row">
                                        <div class="col-xs-12 col-md-6">
                                            <select name="type" class="form-control">
                                                <option value="Manga">Manga</option>
                                                <option value="Doujinshi">Doujinshi</option>
                                                <option value="Manwha">Manwha</option>
                                            </select>
                                        </div>
                                    </div>
                                    <br>
                                    {{ Form::submit('Save', ['class' => 'btn btn-success']) }}
                                    {{ Form::close() }}
                                </div>
                                <div class="col-xs-6">
                                    <h4>Current</h4>
                                    <hr>
                                    @if (isset($type))
                                        <div class="row">
                                            <div class="col-xs-12 col-md6">
                                                {{ $type }}
                                            </div>
                                        </div>
                                        <br>
                                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                                        {{ Form::hidden('id', $id) }}
                                        {{ Form::hidden('action', 'type.delete') }}
                                        {{ Form::submit('Delete', ['class' => 'btn btn-danger']) }}
                                        {{ Form::close() }}
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="panel-title">
                            <span class="glyphicon glyphicon-list-alt"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#names">Associated
                                Names</a>
                        </div>
                    </div>
                    <div id="names" class="panel-collapse collapse">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-xs-6">
                                    <h4>New</h4>
                                    <hr>
                                    {{ Form::open(['action' => 'MangaEditController@update']) }}
                                    {{ Form::hidden('id', $id) }}
                                    {{ Form::hidden('action', 'assoc_name.add') }}
                                    <div class="row">
                                        <div class="col-xs-12 col-md-6">
                                            {{ Form::input('assoc_name', null, null, ['class' => 'form-control',
                                                           'placeholder' => 'Enter name...',
                                                           'name' => 'assoc_name']) }}
                                        </div>
                                    </div>
                                    <br>
                                    {{ Form::submit('Add', ['class' => 'btn btn-success']) }}
                                    {{ Form::close() }}
                                </div>
                                <div class="col-xs-6"
                                     style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis">
                                    <h4>Current</h4>
                                    <hr>
                                    @if (isset($assoc_names))
                                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                                        {{ Form::hidden('id', $id) }}
                                        {{ Form::hidden('action', 'assoc_name.delete') }}
                                        <div class="row">
                                            <div class="col-xs-12 col-md-6">
                                                <select name="assoc_name" class="form-control">
                                                    @foreach ($assoc_names as $name)
                                                        <option value="{{ $name->getName() }}">{{ $name->getName() }}</option>
                                                    @endforeach
                                                </select>
                                            </div>
                                        </div>
                                        <br>
                                        {{ Form::submit('Delete', ['class' => 'btn btn-danger']) }}
                                        {{ Form::close() }}
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="panel-title">
                            <span class="glyphicon glyphicon-tags"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#genres">Genres</a>
                        </div>
                    </div>
                    <div id="genres" class="panel-collapse collapse">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-xs-6">
                                    <h4>New</h4>
                                    <hr>
                                    {{ Form::open(['action' => 'MangaEditController@update']) }}
                                    {{ Form::hidden('id', $id) }}
                                    {{ Form::hidden('action', 'genre.add') }}
                                    @if (isset($availableGenres) && empty($availableGenres) == false)
                                        <div class="row">
                                            <div class="col-xs-12 col-md-6">
                                                <select name="genre" class="form-control">
                                                    @foreach ($availableGenres as $genre)
                                                        <option value="{{ $genre }}">{{ $genre }}</option>
                                                    @endforeach
                                                </select>
                                            </div>
                                        </div>
                                        <br>
                                        {{ Form::submit('Add', ['class' => 'btn btn-success']) }}
                                    @else
                                        No available genres to select from were found.
                                    @endif
                                    {{ Form::close() }}
                                </div>
                                <div class="col-xs-6">
                                    <h4>Current</h4>
                                    <hr>
                                    @if (isset($genres))
                                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                                        {{ Form::hidden('id', $id) }}
                                        {{ Form::hidden('action', 'genre.delete') }}
                                        <div class="row">
                                            <div class="col-xs-12 col-md-6">
                                                <select name="genre" class="form-control">
                                                    @foreach ($genres as $genre)
                                                        <option value="{{ $genre->getName() }}">{{ $genre->getName() }}</option>
                                                    @endforeach
                                                </select>
                                            </div>
                                        </div>
                                        <br>
                                        {{ Form::submit('Delete', ['class' => 'btn btn-danger']) }}
                                        {{ Form::close() }}
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="panel-title">
                            <span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#authors">Authors</a>
                        </div>
                    </div>
                    <div id="authors" class="panel-collapse collapse">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-xs-6">
                                    <h4>New</h4>
                                    <hr>
                                    {{ Form::open(['action' => 'MangaEditController@update']) }}
                                    {{ Form::hidden('id', $id) }}
                                    {{ Form::hidden('action', 'author.add') }}
                                    <div class="row">
                                        <div class="col-xs-12 col-md-6">
                                            {{ Form::input('author', null, null, ['class' => 'form-control',
                                                                                  'placeholder' => 'Enter name...',
                                                                                  'name' => 'author']) }}
                                        </div>
                                    </div>
                                    <br>
                                    {{ Form::submit('Add', ['class' => 'btn btn-success']) }}
                                    {{ Form::close() }}
                                </div>
                                <div class="col-xs-6">
                                    <h4>Current</h4>
                                    <hr>
                                    @if (isset($authors))
                                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                                        {{ Form::hidden('id', $id) }}
                                        {{ Form::hidden('action', 'author.delete') }}
                                        <div class="row">
                                            <div class="col-xs-12 col-md-6">
                                                <select name="author" class="form-control">
                                                    @foreach ($authors as $author)
                                                        <option value="{{ $author->getName() }}">{{ $author->getName() }}</option>
                                                    @endforeach
                                                </select>
                                            </div>
                                        </div>
                                        <br>
                                        {{ Form::submit('Delete', ['class' => 'btn btn-danger']) }}
                                        {{ Form::close() }}
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="panel-title">
                            <span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#artists">Artists</a>
                        </div>
                    </div>
                    <div id="artists" class="panel-collapse collapse">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-xs-6">
                                    <h4>New</h4>
                                    <hr>
                                    {{ Form::open(['action' => 'MangaEditController@update']) }}
                                    {{ Form::hidden('id', $id) }}
                                    {{ Form::hidden('action', 'artist.add') }}
                                    <div class="row">
                                        <div class="col-xs-12 col-md-6">
                                            {{ Form::input('artist', null, null, ['class' => 'form-control',
                                                           'placeholder' => 'Enter name...',
                                                           'name' => 'artist']) }}
                                        </div>
                                    </div>
                                    <br>
                                    {{ Form::submit('Add', ['class' => 'btn btn-success']) }}
                                    {{ Form::close() }}
                                </div>
                                <div class="col-xs-6">
                                    <h4>Current</h4>
                                    <hr>
                                    @if (isset($artists))
                                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                                        {{ Form::hidden('id', $id) }}
                                        {{ Form::hidden('action', 'artist.delete') }}
                                        <div class="row">
                                            <div class="col-xs-12 col-md-6">
                                                <select name="artist" class="form-control">
                                                    @foreach ($artists as $artist)
                                                        <option value="{{ $artist->getName() }}">{{ $artist->getName() }}</option>
                                                    @endforeach
                                                </select>
                                            </div>
                                        </div>
                                        <br>
                                        {{ Form::submit('Delete', ['class' => 'btn btn-danger']) }}
                                        {{ Form::close() }}
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="panel-title">
                            <span class="glyphicon glyphicon-calendar"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#year">Year</a>
                        </div>
                    </div>
                    <div id="year" class="panel-collapse collapse">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-xs-6">
                                    <h4>New</h4>
                                    <hr>
                                    {{ Form::open(['action' => 'MangaEditController@update']) }}
                                    {{ Form::hidden('id', $id) }}
                                    {{ Form::hidden('action', 'year.update') }}
                                    <div class="row">
                                        <div class="col-xs-12 col-md-6">
                                            {{ Form::input('year', null, null, ['class' => 'form-control',
                                                           'placeholder' => 'Enter year...',
                                                           'name' => 'year']) }}
                                        </div>
                                    </div>
                                    <br>
                                    {{ Form::submit('Save', ['class' => 'btn btn-success']) }}
                                    {{ Form::close() }}
                                </div>
                                <div class="col-xs-6">
                                    <h4>Current</h4>
                                    <hr>
                                    @if (isset($year))
                                        <div class="row">
                                            <div class="col-xs-12 col-md-6">
                                                {{ $year }}
                                            </div>
                                        </div>
                                        <br>

                                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                                        {{ Form::hidden('id', $id) }}
                                        {{ Form::hidden('action', 'year.delete') }}
                                        {{ Form::submit('Delete', ['class' => 'btn btn-danger']) }}
                                        {{ Form::close() }}
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="panel-title">
                <span class="glyphicon glyphicon-picture"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#covers">Cover</a>
            </div>
        </div>
        <div id="covers" class="panel-collapse collapse">
            <div class="panel-body">
                <div class="row">
                    @if (empty($archives) === false)

                        @foreach ($archives as $archive_index => $archive)
                            <div class="panel-group">
                                <div class="panel panel-default">
                                    <div class="panel-heading">
                                        <h3 class="panel-title">
                                            <a data-toggle="collapse" href="#{{ $archive_index }}">{{ $archive['name'] }}</a>
                                        </h3>
                                    </div>
                                    <div id="{{ $archive_index }}" class="panel-collapse collapse">
                                        <div class="panel-body">
                                            <div class="row">
                                                @for ($i = 1; $i <= 4; $i++)
                                                    <div class="col-lg-2 col-sm-4 col-xs-6 set-cover thumbnail">
                                                        {{ Form::open(['action' => 'ThumbnailController@update'], [$id]) }}

                                                        {{ Form::hidden('id', $id) }}
                                                        {{ Form::hidden('archive_name', $archive['name']) }}
                                                        {{ Form::hidden('page', $i) }}

                                                        <div>
                                                            {{ Html::image(URL::action('ThumbnailController@small', [
                                                                               $id,
                                                                               rawurlencode($archive['name']),
                                                                               $i]), null, ['class' => 'center-block'])
                                                            }}
                                                        </div>

                                                        <h4>
                                                            {{ Form::submit('Set', ['class' => 'btn btn-success center-block']) }}
                                                        </h4>

                                                        {{ Form::close() }}
                                                    </div>
                                                @endfor
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        @endforeach
                    @else

                    @endif
                </div>
            </div>
        </div>
    </div>

@endsection<commit_msg>Small changes to manga/edit.blade.php<commit_after>@extends ('layout')

@section ('title')
    Edit &middot; {{ $name }}
@endsection

@section ('custom_navbar_right')
    @include ('shared.searchbar')
    @include ('shared.libraries')
@endsection

@section ('content')
    <h2 class="text-center"><b>Edit &middot; <a href="{{ URL::action('MangaController@index', [$id]) }}">{{ $name }}</a></b></h2>

    @include ('shared.success')
    @include ('shared.errors')

    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="panel-title">
                <a data-toggle="collapse" href="#mangaupdates">Mangaupdates</a>
            </div>
        </div>
        <div id="mangaupdates" class="panel-collapse collapse">
            <div class="panel-body">
                <div class="row">
                    <div class="col-xs-12">
                        <h4>Autofill</h4>
                        <hr>
                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                        {{ Form::hidden('id', $id) }}
                        {{ Form::hidden('action', 'autofill') }}
                        <div class="input-group">
                            {{ Form::label('id:', '', ['for' => 'mu_id']) }}
                            @if (isset($mu_id))
                                {{ Form::text('mu_id', '', ['class' => 'form-control', 'placeholder' => $mu_id]) }}
                            @else
                                {{ Form::text('mu_id', '', ['class' => 'form-control']) }}
                            @endif
                        </div>
                        <br>
                        {{ Form::submit('Update', ['class' => 'btn btn-success']) }}
                        {{ Form::close() }}
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="panel-title">
                <span class="glyphicon glyphicon-info-sign"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#information">Information</a>
            </div>
        </div>
        <div id="information" class="panel-collapse collapse">
            <div class="panel-body">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="panel-title">
                            <span class="glyphicon glyphicon-info-sign"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#description">Description</a>
                        </div>
                    </div>
                    <div id="description" class="panel-collapse collapse">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-xs-12 col-md-6">
                                    <h4>New</h4>
                                    <hr>
                                    {{ Form::open(['action' => 'MangaEditController@update']) }}
                                    {{ Form::hidden('id', $id) }}
                                    {{ Form::hidden('action', 'description.update') }}
                                    {{ Form::textarea('description', null, ['class' => 'form-control',
                                                                            'placeholder' => 'Enter description...']) }}
                                    <br>
                                    {{ Form::submit('Save', ['class' => 'btn btn-success']) }}
                                    {{ Form::close() }}
                                </div>
                                <div class="col-xs-12 col-md-6">
                                    <h4>Current</h4>
                                    <hr>
                                    @if (isset($description))
                                        {{ $description }}
                                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                                        {{ Form::hidden('id', $id) }}
                                        {{ Form::hidden('action', 'description.delete') }}
                                        <br>
                                        {{ Form::submit('Delete', ['class' => 'btn btn-danger']) }}
                                        {{ Form::close() }}
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="panel-title">
                            <span class="glyphicon glyphicon-book"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#type">Type</a>
                        </div>
                    </div>
                    <div id="type" class="panel-collapse collapse">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-xs-6">
                                    <h4>New</h4>
                                    <hr>
                                    {{ Form::open(['action' => 'MangaEditController@update']) }}
                                    {{ Form::hidden('id', $id) }}
                                    {{ Form::hidden('action', 'type.update') }}
                                    <div class="row">
                                        <div class="col-xs-12 col-md-6">
                                            <select name="type" class="form-control">
                                                <option value="Manga">Manga</option>
                                                <option value="Doujinshi">Doujinshi</option>
                                                <option value="Manwha">Manwha</option>
                                            </select>
                                        </div>
                                    </div>
                                    <br>
                                    {{ Form::submit('Save', ['class' => 'btn btn-success']) }}
                                    {{ Form::close() }}
                                </div>
                                <div class="col-xs-6">
                                    <h4>Current</h4>
                                    <hr>
                                    @if (isset($type))
                                        <div class="row">
                                            <div class="col-xs-12 col-md-6">
                                                {{ $type }}
                                            </div>
                                        </div>
                                        <br>

                                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                                        {{ Form::hidden('id', $id) }}
                                        {{ Form::hidden('action', 'type.delete') }}
                                        {{ Form::submit('Delete', ['class' => 'btn btn-danger']) }}
                                        {{ Form::close() }}
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="panel-title">
                            <span class="glyphicon glyphicon-list-alt"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#names">Associated
                                Names</a>
                        </div>
                    </div>
                    <div id="names" class="panel-collapse collapse">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-xs-6">
                                    <h4>New</h4>
                                    <hr>
                                    {{ Form::open(['action' => 'MangaEditController@update']) }}
                                    {{ Form::hidden('id', $id) }}
                                    {{ Form::hidden('action', 'assoc_name.add') }}
                                    <div class="row">
                                        <div class="col-xs-12 col-md-6">
                                            {{ Form::input('assoc_name', null, null, ['class' => 'form-control',
                                                           'placeholder' => 'Enter name...',
                                                           'name' => 'assoc_name']) }}
                                        </div>
                                    </div>
                                    <br>
                                    {{ Form::submit('Add', ['class' => 'btn btn-success']) }}
                                    {{ Form::close() }}
                                </div>
                                <div class="col-xs-6"
                                     style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis">
                                    <h4>Current</h4>
                                    <hr>
                                    @if (isset($assoc_names))
                                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                                        {{ Form::hidden('id', $id) }}
                                        {{ Form::hidden('action', 'assoc_name.delete') }}
                                        <div class="row">
                                            <div class="col-xs-12 col-md-6">
                                                <select name="assoc_name" class="form-control">
                                                    @foreach ($assoc_names as $name)
                                                        <option value="{{ $name->getName() }}">{{ $name->getName() }}</option>
                                                    @endforeach
                                                </select>
                                            </div>
                                        </div>
                                        <br>
                                        {{ Form::submit('Delete', ['class' => 'btn btn-danger']) }}
                                        {{ Form::close() }}
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="panel-title">
                            <span class="glyphicon glyphicon-tags"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#genres">Genres</a>
                        </div>
                    </div>
                    <div id="genres" class="panel-collapse collapse">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-xs-6">
                                    <h4>New</h4>
                                    <hr>
                                    {{ Form::open(['action' => 'MangaEditController@update']) }}
                                    {{ Form::hidden('id', $id) }}
                                    {{ Form::hidden('action', 'genre.add') }}
                                    @if (isset($availableGenres) && empty($availableGenres) == false)
                                        <div class="row">
                                            <div class="col-xs-12 col-md-6">
                                                <select name="genre" class="form-control">
                                                    @foreach ($availableGenres as $genre)
                                                        <option value="{{ $genre }}">{{ $genre }}</option>
                                                    @endforeach
                                                </select>
                                            </div>
                                        </div>
                                        <br>
                                        {{ Form::submit('Add', ['class' => 'btn btn-success']) }}
                                    @else
                                        No available genres to select from were found.
                                    @endif
                                    {{ Form::close() }}
                                </div>
                                <div class="col-xs-6">
                                    <h4>Current</h4>
                                    <hr>
                                    @if (isset($genres))
                                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                                        {{ Form::hidden('id', $id) }}
                                        {{ Form::hidden('action', 'genre.delete') }}
                                        <div class="row">
                                            <div class="col-xs-12 col-md-6">
                                                <select name="genre" class="form-control">
                                                    @foreach ($genres as $genre)
                                                        <option value="{{ $genre->getName() }}">{{ $genre->getName() }}</option>
                                                    @endforeach
                                                </select>
                                            </div>
                                        </div>
                                        <br>
                                        {{ Form::submit('Delete', ['class' => 'btn btn-danger']) }}
                                        {{ Form::close() }}
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="panel-title">
                            <span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#authors">Authors</a>
                        </div>
                    </div>
                    <div id="authors" class="panel-collapse collapse">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-xs-6">
                                    <h4>New</h4>
                                    <hr>
                                    {{ Form::open(['action' => 'MangaEditController@update']) }}
                                    {{ Form::hidden('id', $id) }}
                                    {{ Form::hidden('action', 'author.add') }}
                                    <div class="row">
                                        <div class="col-xs-12 col-md-6">
                                            {{ Form::input('author', null, null, ['class' => 'form-control',
                                                                                  'placeholder' => 'Enter name...',
                                                                                  'name' => 'author']) }}
                                        </div>
                                    </div>
                                    <br>
                                    {{ Form::submit('Add', ['class' => 'btn btn-success']) }}
                                    {{ Form::close() }}
                                </div>
                                <div class="col-xs-6">
                                    <h4>Current</h4>
                                    <hr>
                                    @if (isset($authors))
                                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                                        {{ Form::hidden('id', $id) }}
                                        {{ Form::hidden('action', 'author.delete') }}
                                        <div class="row">
                                            <div class="col-xs-12 col-md-6">
                                                <select name="author" class="form-control">
                                                    @foreach ($authors as $author)
                                                        <option value="{{ $author->getName() }}">{{ $author->getName() }}</option>
                                                    @endforeach
                                                </select>
                                            </div>
                                        </div>
                                        <br>
                                        {{ Form::submit('Delete', ['class' => 'btn btn-danger']) }}
                                        {{ Form::close() }}
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="panel-title">
                            <span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#artists">Artists</a>
                        </div>
                    </div>
                    <div id="artists" class="panel-collapse collapse">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-xs-6">
                                    <h4>New</h4>
                                    <hr>
                                    {{ Form::open(['action' => 'MangaEditController@update']) }}
                                    {{ Form::hidden('id', $id) }}
                                    {{ Form::hidden('action', 'artist.add') }}
                                    <div class="row">
                                        <div class="col-xs-12 col-md-6">
                                            {{ Form::input('artist', null, null, ['class' => 'form-control',
                                                           'placeholder' => 'Enter name...',
                                                           'name' => 'artist']) }}
                                        </div>
                                    </div>
                                    <br>
                                    {{ Form::submit('Add', ['class' => 'btn btn-success']) }}
                                    {{ Form::close() }}
                                </div>
                                <div class="col-xs-6">
                                    <h4>Current</h4>
                                    <hr>
                                    @if (isset($artists))
                                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                                        {{ Form::hidden('id', $id) }}
                                        {{ Form::hidden('action', 'artist.delete') }}
                                        <div class="row">
                                            <div class="col-xs-12 col-md-6">
                                                <select name="artist" class="form-control">
                                                    @foreach ($artists as $artist)
                                                        <option value="{{ $artist->getName() }}">{{ $artist->getName() }}</option>
                                                    @endforeach
                                                </select>
                                            </div>
                                        </div>
                                        <br>
                                        {{ Form::submit('Delete', ['class' => 'btn btn-danger']) }}
                                        {{ Form::close() }}
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="panel panel-default">
                    <div class="panel-heading">
                        <div class="panel-title">
                            <span class="glyphicon glyphicon-calendar"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#year">Year</a>
                        </div>
                    </div>
                    <div id="year" class="panel-collapse collapse">
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-xs-6">
                                    <h4>New</h4>
                                    <hr>
                                    {{ Form::open(['action' => 'MangaEditController@update']) }}
                                    {{ Form::hidden('id', $id) }}
                                    {{ Form::hidden('action', 'year.update') }}
                                    <div class="row">
                                        <div class="col-xs-12 col-md-6">
                                            {{ Form::input('year', null, null, ['class' => 'form-control',
                                                           'placeholder' => 'Enter year...',
                                                           'name' => 'year']) }}
                                        </div>
                                    </div>
                                    <br>
                                    {{ Form::submit('Save', ['class' => 'btn btn-success']) }}
                                    {{ Form::close() }}
                                </div>
                                <div class="col-xs-6">
                                    <h4>Current</h4>
                                    <hr>
                                    @if (isset($year))
                                        <div class="row">
                                            <div class="col-xs-12 col-md-6">
                                                {{ $year }}
                                            </div>
                                        </div>
                                        <br>

                                        {{ Form::open(['action' => 'MangaEditController@update']) }}
                                        {{ Form::hidden('id', $id) }}
                                        {{ Form::hidden('action', 'year.delete') }}
                                        {{ Form::submit('Delete', ['class' => 'btn btn-danger']) }}
                                        {{ Form::close() }}
                                    @endif
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="panel-title">
                <span class="glyphicon glyphicon-picture"></span>&nbsp;&nbsp;<a data-toggle="collapse" href="#covers">Cover</a>
            </div>
        </div>
        <div id="covers" class="panel-collapse collapse">
            <div class="panel-body">
                @if (empty($archives) === false)
                    @foreach ($archives as $archive_index => $archive)
                        <div class="panel-group">
                            <div class="panel panel-default">
                                <div class="panel-heading">
                                    <h3 class="panel-title">
                                        <a data-toggle="collapse" href="#{{ $archive_index }}">{{ $archive['name'] }}</a>
                                    </h3>
                                </div>
                                <div id="{{ $archive_index }}" class="panel-collapse collapse">
                                    <div class="panel-body">
                                        <div class="row">
                                            @for ($i = 1; $i <= 4; $i++)
                                                <div class="col-lg-2 col-sm-4 col-xs-6 set-cover thumbnail">
                                                    {{ Form::open(['action' => 'ThumbnailController@update'], [$id]) }}

                                                    {{ Form::hidden('id', $id) }}
                                                    {{ Form::hidden('archive_name', $archive['name']) }}
                                                    {{ Form::hidden('page', $i) }}

                                                    <div>
                                                        {{ Html::image(URL::action('ThumbnailController@small', [
                                                                           $id,
                                                                           rawurlencode($archive['name']),
                                                                           $i]), null, ['class' => 'center-block'])
                                                        }}
                                                    </div>

                                                    <h4>
                                                        {{ Form::submit('Set', ['class' => 'btn btn-success center-block']) }}
                                                    </h4>

                                                    {{ Form::close() }}
                                                </div>
                                            @endfor
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>

                    @endforeach
                @endif

            </div>
        </div>
    </div>

@endsection
{'fraction_non_alphanumeric': 0.1269725525390771, 'fraction_numerical': 0.003627253010246055, 'mean_word_length': 0.6324817629643195, 'pattern_counts': {'":': 0, '<': 707, '<?xml version=': 0, '>': 825, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 800, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '804659', 'n_tokens_mistral': 10331, 'n_tokens_neox': 9704, 'n_words': 1796}