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.
45 lines
1.9 KiB
45 lines
1.9 KiB
@extends('layouts.app')
|
|
|
|
@section('title', trans('project.subscriptions'))
|
|
|
|
@section('content')
|
|
|
|
@include('projects.partials.breadcrumb',['title' => trans('project.subscriptions')])
|
|
|
|
<h1 class="page-header">
|
|
<div class="pull-right">
|
|
{!! link_to_route('subscriptions.create', trans('subscription.create'), ['project_id' => $project->id, 'customer_id' => $project->customer_id], ['class'=>'btn btn-success']) !!}
|
|
</div>
|
|
{{ $project->name }} <small>{{ trans('project.subscriptions') }}</small>
|
|
</h1>
|
|
|
|
@include('projects.partials.nav-tabs')
|
|
|
|
<table class="table table-condensed">
|
|
<thead>
|
|
<th>{{ trans('app.table_no') }}</th>
|
|
<th class="text-center">{{ trans('subscription.type') }}</th>
|
|
<th>{{ trans('subscription.subscription') }}</th>
|
|
<th class="text-right">{{ trans('subscription.start_date') }}</th>
|
|
<th class="text-right">{{ trans('subscription.due_date') }}</th>
|
|
<th class="text-right">{{ trans('subscription.extension_price') }}</th>
|
|
<th>{{ trans('app.action') }}</th>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($project->subscriptions as $key => $subscription)
|
|
<tr>
|
|
<td>{{ 1 + $key }}</td>
|
|
<td class="text-center">{{ $subscription->type }}</td>
|
|
<td>{{ $subscription->nameLink() }}</td>
|
|
<td class="text-right">{{ date_id($subscription->start_date) }}</td>
|
|
<td class="text-right">{{ date_id($subscription->due_date) }} {!! $subscription->nearOfDueDateSign() !!}</td>
|
|
<td class="text-right">{{ format_money($subscription->price) }}</td>
|
|
<td>
|
|
{!! link_to_route('subscriptions.show',trans('app.show'),[$subscription->id],['class'=>'btn btn-info btn-xs']) !!}
|
|
{!! link_to_route('subscriptions.edit',trans('app.edit'),[$subscription->id],['class'=>'btn btn-warning btn-xs']) !!}
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
@endsection
|