|
|
@ -1,23 +1,23 @@ |
|
|
@extends('layouts.app') |
|
|
@extends('layouts.app') |
|
|
|
|
|
|
|
|
@section('title', 'Daftar ' . $status . ' Project') |
|
|
|
|
|
|
|
|
@section('title', trans('project.index_title', ['status' => $status])) |
|
|
|
|
|
|
|
|
@section('content') |
|
|
@section('content') |
|
|
<h1 class="page-header"> |
|
|
<h1 class="page-header"> |
|
|
{!! link_to_route('projects.create', trans('project.create'), [], ['class'=>'btn btn-success pull-right']) !!} |
|
|
|
|
|
Daftar {{ $status }} Project <small>{{ $projects->total() }} {{ trans('project.found') }}</small> |
|
|
|
|
|
|
|
|
{!! link_to_route('projects.create', trans('project.create'), [], ['class' => 'btn btn-success pull-right']) !!} |
|
|
|
|
|
{{ trans('project.index_title', ['status' => $status]) }} <small>{{ $projects->total() }} {{ trans('project.found') }}</small> |
|
|
</h1> |
|
|
</h1> |
|
|
<div class="well well-sm text-right"> |
|
|
<div class="well well-sm text-right"> |
|
|
<div class="pull-left hidden-xs">{{ $projects->appends(Request::except('page'))->render() }}</div> |
|
|
<div class="pull-left hidden-xs">{{ $projects->appends(Request::except('page'))->render() }}</div> |
|
|
{!! Form::open(['method'=>'get','class'=>'form-inline']) !!} |
|
|
|
|
|
{!! FormField::select('status', ProjectStatus::toArray(), ['value' => Request::get('status'), 'placeholder'=> 'Semua Project']) !!} |
|
|
|
|
|
{!! Form::text('q', Request::get('q'), ['class'=>'form-control index-search-field','placeholder'=>trans('project.search'),'style' => 'width:100%;max-width:350px']) !!} |
|
|
|
|
|
|
|
|
{!! Form::open(['method' => 'get', 'class' => 'form-inline']) !!} |
|
|
|
|
|
{!! FormField::select('status', ProjectStatus::toArray(), ['value' => Request::get('status'), 'placeholder' => trans('project.all')]) !!} |
|
|
|
|
|
{!! Form::text('q', Request::get('q'), ['class' => 'form-control index-search-field', 'placeholder' => trans('project.search'), 'style' => 'width:100%;max-width:350px']) !!} |
|
|
{!! Form::submit(trans('project.search'), ['class' => 'btn btn-info btn-sm']) !!} |
|
|
{!! Form::submit(trans('project.search'), ['class' => 'btn btn-info btn-sm']) !!} |
|
|
{!! link_to_route('projects.index','Reset',[],['class' => 'btn btn-default btn-sm']) !!} |
|
|
|
|
|
|
|
|
{!! link_to_route('projects.index', 'Reset', [], ['class' => 'btn btn-default btn-sm']) !!} |
|
|
{!! Form::close() !!} |
|
|
{!! Form::close() !!} |
|
|
</div> |
|
|
</div> |
|
|
<div class="table-responsive"> |
|
|
<div class="table-responsive"> |
|
|
<table class="table table-condensed table-hover"> |
|
|
|
|
|
|
|
|
<table class="table table-condensed table-hover"> |
|
|
<thead> |
|
|
<thead> |
|
|
<th>{{ trans('app.table_no') }}</th> |
|
|
<th>{{ trans('app.table_no') }}</th> |
|
|
<th>{{ trans('project.name') }}</th> |
|
|
<th>{{ trans('project.name') }}</th> |
|
|
@ -39,8 +39,8 @@ |
|
|
<td class="text-center">{{ $project->present()->status }}</td> |
|
|
<td class="text-center">{{ $project->present()->status }}</td> |
|
|
<td>{{ $project->customer->name }}</td> |
|
|
<td>{{ $project->customer->name }}</td> |
|
|
<td> |
|
|
<td> |
|
|
{!! html_link_to_route('projects.show','',[$project->id],['icon'=>'search', 'class'=>'btn btn-info btn-xs', 'title' => trans('app.show')]) !!} |
|
|
|
|
|
{!! html_link_to_route('projects.edit','',[$project->id],['icon'=>'edit', 'class'=>'btn btn-warning btn-xs', 'title' => trans('app.edit')]) !!} |
|
|
|
|
|
|
|
|
{!! html_link_to_route('projects.show', '', [$project->id], ['icon' => 'search', 'class' => 'btn btn-info btn-xs', 'title' => trans('app.show')]) !!} |
|
|
|
|
|
{!! html_link_to_route('projects.edit', '', [$project->id], ['icon' => 'edit', 'class' => 'btn btn-warning btn-xs', 'title' => trans('app.edit')]) !!} |
|
|
</td> |
|
|
</td> |
|
|
</tr> |
|
|
</tr> |
|
|
@empty |
|
|
@empty |
|
|
@ -49,7 +49,7 @@ |
|
|
</tr> |
|
|
</tr> |
|
|
@endforelse |
|
|
@endforelse |
|
|
</tbody> |
|
|
</tbody> |
|
|
</table> |
|
|
|
|
|
|
|
|
</table> |
|
|
</div> |
|
|
</div> |
|
|
{!! str_replace('/?', '?', $projects->appends(Request::except('page'))->render()) !!} |
|
|
|
|
|
|
|
|
{{ $projects->appends(Request::except('page'))->render() }} |
|
|
@endsection |
|
|
@endsection |