<commit_before>@extends('laravel-building::main')

@section('content')
    @include('laravel-building::partial.header', [
        'heading'=>'Page sections',
        'link'=>route($routes['create'], $data['page']->id),
        'title'=>'New section.',
        'icon'=>'fa-plus'
    ])

    @if(count($data['section']) > 0)
        <div class="row">
            <div class="col-sm-12">
            </div>
        </div>
        <table class="table table-striped">
            <thead>
                <tr>
                    <th>Title</th>
                    <th>Slug</th>
                    <th>Order</th>
                    <th></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                @foreach($data['section'] as $key => $value)
                    <tr>
                        <td>
                            <a href="{{ route($routes['edit'], [$data['page']->id, $value->id]) }}">
                                {{ $value['title'] }}
                            </a>
                        </td>
                        <td>{{ $value['slug'] }}</td>
                        <td>{{ $value['order'] }}</td>

                        <td class="text-right">
                            <a href="{{ route($routes['content.index'], [$data['page']->id, $value->id]) }}" class="btn btn-default">
                                <i class="fa fa-pencil"></i> Edit content
                            </a>
                        </td>

                        <td class="text-right">
                            @include('laravel-building::partial.button-destroy', [
                                'route'=>route($routes['destroy'], [$data['page']->id, $value->id]),
                            ])
                        </td>
                    </tr>
                @endforeach
            </tbody>
        </table>
    @else
        This page doesn't have any sections.
    @endif
@endsection<commit_msg>Remove 'slug' add 'component'<commit_after>@extends('laravel-building::main')

@section('content')
    @include('laravel-building::partial.header', [
        'heading'=>'Page sections',
        'link'=>route($routes['create'], $data['page']->id),
        'title'=>'New section.',
        'icon'=>'fa-plus'
    ])

    @if(count($data['section']) > 0)
        <div class="row">
            <div class="col-sm-12">
            </div>
        </div>
        <table class="table table-striped">
            <thead>
                <tr>
                    <th>Title</th>
                    <th>Component</th>
                    <th>Order</th>
                    <th></th>
                    <th></th>
                </tr>
            </thead>
            <tbody>
                @foreach($data['section'] as $key => $value)
                    <tr>
                        <td>
                            <a href="{{ route($routes['edit'], [$data['page']->id, $value->id]) }}">
                                {{ $value['title'] }}
                            </a>
                        </td>
                        <td>{{ $value->component->title }}</td>
                        <td>{{ $value['order'] }}</td>

                        <td class="text-right">
                            <a href="{{ route($routes['content.index'], [$data['page']->id, $value->id]) }}" class="btn btn-default">
                                <i class="fa fa-pencil"></i> Edit content
                            </a>
                        </td>

                        <td class="text-right">
                            @include('laravel-building::partial.button-destroy', [
                                'route'=>route($routes['destroy'], [$data['page']->id, $value->id]),
                            ])
                        </td>
                    </tr>
                @endforeach
            </tbody>
        </table>
    @else
        This page doesn't have any sections.
    @endif
@endsection
{'fraction_non_alphanumeric': 0.17746407864885302, 'fraction_numerical': 0.0015124779430299975, 'mean_word_length': 1.043254376930999, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3427398', 'n_tokens_mistral': 1062, 'n_tokens_neox': 1009, 'n_words': 176}