<commit_before>@extends('backend/layouts/default')

{{-- Page title --}}
@section('title')
Asset Models ::
@parent
@stop

{{-- Page content --}}
@section('content')
<div class="page-header">
	<h3>
		Asset Models

		<div class="pull-right">
			<a href="{{ route('create/model') }}" class="btn-flat success"><i class="icon-plus-sign icon-white"></i> Create New</a>
		</div>
	</h3>
</div>

<table id="example">
	<thead>
		<tr role="row">
			<th class="span3">@lang('admin/models/table.title')</th>
			<th class="span2">@lang('admin/models/table.modelnumber')</th>
			<th class="span1">@lang('admin/models/table.numassets')</th>
			<th class="span2">Depreciation</th>
			<th class="span1">Category</th>
			<th class="span2">@lang('table.actions')</th>
		</tr>
	</thead>
	<tbody>
		@foreach ($models as $model)
		<tr>
			<td><a href="{{ route('update/model', $model->id) }}">{{ $model->name }}</a></td>
			<td>{{ $model->modelno }}</td>
			<td><a href="{{ route('view/model', $model->id) }}">{{ ($model->assets->count()) }}</a></td>
			<td>
			@if ($model->depreciation)
			{{ $model->depreciation->name }}
			 ({{ $model->depreciation->months }} months)
			@endif

			</td>
			<td>
			@if ($model->category)
			{{ $model->category->name }}
			@endif</td>
			<td>
				<a href="{{ route('update/model', $model->id) }}" class="btn-flat white">@lang('button.edit')</a>
				<a class="btn-flat danger delete-asset" data-toggle="modal" href="{{ route('delete/model', $model->id) }}" data-content="Are you sure you wish to delete the  {{ $model->name }} model?" data-title="Delete {{ $model->name }}?" onClick="return false;">@lang('button.delete')</a>

			</td>
		</tr>
		@endforeach
	</tbody>
</table>

@stop<commit_msg>Escaping HTML in modal title<commit_after>@extends('backend/layouts/default')

{{-- Page title --}}
@section('title')
Asset Models ::
@parent
@stop

{{-- Page content --}}
@section('content')
<div class="page-header">
	<h3>
		Asset Models

		<div class="pull-right">
			<a href="{{ route('create/model') }}" class="btn-flat success"><i class="icon-plus-sign icon-white"></i> Create New</a>
		</div>
	</h3>
</div>

<table id="example">
	<thead>
		<tr role="row">
			<th class="span3">@lang('admin/models/table.title')</th>
			<th class="span2">@lang('admin/models/table.modelnumber')</th>
			<th class="span1">@lang('admin/models/table.numassets')</th>
			<th class="span2">Depreciation</th>
			<th class="span1">Category</th>
			<th class="span2">@lang('table.actions')</th>
		</tr>
	</thead>
	<tbody>
		@foreach ($models as $model)
		<tr>
			<td><a href="{{ route('update/model', $model->id) }}">{{{ $model->name }}}</a></td>
			<td>{{ $model->modelno }}</td>
			<td><a href="{{ route('view/model', $model->id) }}">{{ ($model->assets->count()) }}</a></td>
			<td>
			@if ($model->depreciation)
			{{ $model->depreciation->name }}
			 ({{ $model->depreciation->months }} months)
			@endif

			</td>
			<td>
			@if ($model->category)
			{{ $model->category->name }}
			@endif</td>
			<td>
				<a href="{{ route('update/model', $model->id) }}" class="btn-flat white">@lang('button.edit')</a>
				<a data-html="false" class="btn-flat danger delete-asset" data-toggle="modal" href="{{ route('delete/model', $model->id) }}" data-content="Are you sure you wish to delete this model?" data-title="Delete {{ htmlspecialchars($model->name) }}}?" onClick="return false;">@lang('button.delete')</a>

			</td>
		</tr>
		@endforeach
	</tbody>
</table>

@stop
{'fraction_non_alphanumeric': 0.25991316931982633, 'fraction_numerical': 0.004630969609261939, 'mean_word_length': 4.2682926829268295, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 142, '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': '1354769', 'n_tokens_mistral': 1407, 'n_tokens_neox': 1261, 'n_words': 239}