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.
63 lines
2.6 KiB
63 lines
2.6 KiB
@extends('layouts.app')
|
|
|
|
@section('title', trans('project.files') . ' | ' . $project->name)
|
|
|
|
@section('content')
|
|
@include('projects.partials.breadcrumb',['title' => trans('project.files')])
|
|
|
|
<h1 class="page-header">
|
|
{{ $project->name }} <small>{{ trans('project.files') }}</small>
|
|
</h1>
|
|
|
|
@include('projects.partials.nav-tabs')
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<div class="panel panel-default table-responsive">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">{{ trans('project.files') }}</h3>
|
|
</div>
|
|
<table class="table table-condensed table-striped">
|
|
<thead>
|
|
<th>{{ trans('app.table_no') }}</th>
|
|
<th>{{ trans('file.file') }}</th>
|
|
<th class="text-center">{{ trans('file.download') }}</th>
|
|
<th class="text-center">{{ trans('app.action') }}</th>
|
|
</thead>
|
|
<tbody class="sort-files">
|
|
@forelse($files as $key => $file)
|
|
<tr id="{{ $file->id }}">
|
|
<td>{{ 1 + $key }}</td>
|
|
<td>
|
|
<strong class="">{{ $file->title }}</strong>
|
|
<div class="text-info small">{{ $file->description }}</div>
|
|
</td>
|
|
<td class="text-center">
|
|
{!! html_link_to_route('files.download', '', [$file->id], ['icon' => 'file', 'title' => trans('file.download')]) !!}
|
|
</td>
|
|
<td class="text-center">edit</td>
|
|
</tr>
|
|
@empty
|
|
<tr><td colspan="5">{{ trans('file.empty') }}</td></tr>
|
|
@endforelse
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading"><h3 class="panel-title">{{ trans('file.create') }}</h3></div>
|
|
<div class="panel-body">
|
|
{!! Form::open(['route' => ['files.upload', $project->id], 'id' => 'upload-file', 'files' => true]) !!}
|
|
{{ Form::hidden('fileable_type', get_class($project)) }}
|
|
{!! FormField::file('file', ['label' => trans('file.select')]) !!}
|
|
{!! FormField::text('title') !!}
|
|
{!! FormField::textarea('description') !!}
|
|
{!! Form::submit(trans('file.upload'), ['class' => 'btn btn-info']) !!}
|
|
{!! Form::close() !!}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@endsection
|