You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

51 lines
1.7 KiB

@extends('layouts.project')
@section('subtitle', __('project.issues'))
@section('action-buttons')
@can('create', new App\Entities\Projects\Issue)
{!! html_link_to_route('projects.issues.create', __('issue.create'), $project, ['class' => 'btn btn-success', 'icon' => 'plus']) !!}
@endcan
@endsection
@section('content-project')
<div id="project-issues" class="panel panel-default table-responsive">
<div class="panel-heading">
<h3 class="panel-title">{{ __('project.issues') }}</h3>
</div>
<table class="table table-condensed table-striped">
<thead>
<th>{{ __('app.table_no') }}</th>
<th>{{ __('issue.title') }}</th>
<th>{{ __('app.status') }}</th>
<th>{{ __('issue.pic') }}</th>
<th>{{ __('issue.creator') }}</th>
<th class="text-center">{{ __('app.action') }}</th>
</thead>
<tbody>
@forelse($issues as $key => $issue)
@php
$no = 1 + $key;
@endphp
<tr id="{{ $issue->id }}">
<td>{{ $no }}</td>
<td>{{ $issue->title }}</td>
<td>{!! $issue->status_label !!}</td>
<td>{{ $issue->pic->name }}</td>
<td>{{ $issue->creator->name }}</td>
<td class="text-center">
{{ link_to_route(
'projects.issues.show',
__('app.show'),
[$project, $issue],
['title' => __('issue.show')]
) }}
</td>
</tr>
@empty
<tr><td colspan="5">{{ __('issue.empty') }}</td></tr>
@endforelse
</tbody>
</table>
</div>
@endsection