<commit_before>@extends('orchestra/foundation::layouts.main')

<?php

use Orchestra\Support\Str;
use Orchestra\Story\Model\Content; ?>

@can('create', Content::class, $type)
	@set_meta('header::add-button', true)
@endcan

@section('content')
@include('orchestra/story::widgets.header')

<div class="row">
	<div class="twelve columns white rounded box">
		<table class="table table-striped">
			<thead>
				<tr>
					<th>Title</th>
					<th>Author</th>
					<th class="th-actions">&nbsp;</th>
				</tr>
			</thead>
			<tbody>
			@forelse($contents as $content)
				<tr>
					<td>
						<strong>
							@can('update', $content)
							<a href="{!! $content->editUrl() !!}">
								{{ $content->title }}
							</a>
							@else
							{{ $content->title }}
							@endcan
						</strong>
						<br>
						<span class="meta">
							<span class="label label-default">{{ Str::title($content->format) }}</span>
							<span class="label label-success">{{ Str::title($content->status) }}</span>
						</span>
					</td>
					<td>{{ $content->author->fullname }}</td>
					<td>
						<div class="btn-group">
						@can('delete', $content)
							<a href="{!! $content->deleteUrl() !!}" class="btn btn-mini btn-danger">
								Delete
							</a>
						@endcan
						</div>
					</td>
				</tr>
			@empty
				<tr>
					<td colspan="5">No records at the moment.</td>
				</tr>
			@endforelse
			</tbody>
		</table>

		{!! $contents !!}
	</div>
</div>

@stop
<commit_msg>Use the first content output as reference.<commit_after>@extends('orchestra/foundation::layouts.main')

<?php

use Orchestra\Support\Str;
use Orchestra\Story\Model\Content; ?>

@can('create', $contents->first())
	@set_meta('header::add-button', true)
@endcan

@section('content')
@include('orchestra/story::widgets.header')

<div class="row">
	<div class="twelve columns white rounded box">
		<table class="table table-striped">
			<thead>
				<tr>
					<th>Title</th>
					<th>Author</th>
					<th class="th-actions">&nbsp;</th>
				</tr>
			</thead>
			<tbody>
			@forelse($contents as $content)
				<tr>
					<td>
						<strong>
							@can('update', $content)
							<a href="{!! $content->editUrl() !!}">
								{{ $content->title }}
							</a>
							@else
							{{ $content->title }}
							@endcan
						</strong>
						<br>
						<span class="meta">
							<span class="label label-default">{{ Str::title($content->format) }}</span>
							<span class="label label-success">{{ Str::title($content->status) }}</span>
						</span>
					</td>
					<td>{{ $content->author->fullname }}</td>
					<td>
						<div class="btn-group">
						@can('delete', $content)
							<a href="{!! $content->deleteUrl() !!}" class="btn btn-mini btn-danger">
								Delete
							</a>
						@endcan
						</div>
					</td>
				</tr>
			@empty
				<tr>
					<td colspan="5">No records at the moment.</td>
				</tr>
			@endforelse
			</tbody>
		</table>

		{!! $contents !!}
	</div>
</div>

@stop

{'fraction_non_alphanumeric': 0.2135593220338983, 'fraction_numerical': 0.0006779661016949153, 'mean_word_length': 2.6075794621026893, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 112, 'https://': 0, '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': '7042922', 'n_tokens_mistral': 1429, 'n_tokens_neox': 1032, 'n_words': 209}