Browse Source
Update 2016-08-23.11.17
Update 2016-08-23.11.17
Add Subscription tab to project.show Add new option on options.index view Split Project features between Main Features and Additional Featurespull/1/head
25 changed files with 258 additions and 56 deletions
-
18app/Entities/Projects/Project.php
-
9app/Entities/Projects/ProjectsRepository.php
-
5app/Entities/Subscriptions/Subscription.php
-
4app/Entities/Subscriptions/SubscriptionsRepository.php
-
18app/Http/Controllers/Projects/ProjectsController.php
-
7app/Http/Controllers/References/OptionsController.php
-
1app/Http/routes/projects.php
-
61config/backup-manager.php
-
1database/factories/ModelFactory.php
-
2resources/lang/id/option.php
-
1resources/lang/id/project.php
-
2resources/views/features/add-from-other-project.blade.php
-
4resources/views/features/partials/feature-tasks-operation.blade.php
-
2resources/views/masters/delete.blade.php
-
81resources/views/options/index.blade.php
-
2resources/views/projects/features.blade.php
-
14resources/views/projects/partials/nav-tabs.blade.php
-
43resources/views/projects/subscriptions.blade.php
-
4resources/views/subscriptions/create.blade.php
-
1resources/views/subscriptions/edit.blade.php
-
3resources/views/subscriptions/index.blade.php
-
16tests/ManageFeaturesTest.php
-
1tests/ManagePaymentsTest.php
-
10tests/ManageSubscriptionsTest.php
-
4tests/ManageTasksTest.php
@ -0,0 +1,61 @@ |
|||
<?php |
|||
|
|||
return [ |
|||
'local' => [ |
|||
'type' => 'Local', |
|||
'root' => storage_path('app'), |
|||
], |
|||
's3' => [ |
|||
'type' => 'AwsS3', |
|||
'key' => '', |
|||
'secret' => '', |
|||
'region' => 'us-east-1', |
|||
'bucket' => '', |
|||
'root' => '', |
|||
], |
|||
'gcs' => [ |
|||
'type' => 'Gcs', |
|||
'key' => '', |
|||
'secret' => '', |
|||
'bucket' => '', |
|||
'root' => '', |
|||
], |
|||
'rackspace' => [ |
|||
'type' => 'Rackspace', |
|||
'username' => '', |
|||
'key' => '', |
|||
'container' => '', |
|||
'zone' => '', |
|||
'endpoint' => 'https://identity.api.rackspacecloud.com/v2.0/', |
|||
'root' => '', |
|||
], |
|||
'dropbox' => [ |
|||
'type' => 'Dropbox', |
|||
'token' => '', |
|||
'key' => '', |
|||
'secret' => '', |
|||
'app' => '', |
|||
'root' => '', |
|||
], |
|||
'ftp' => [ |
|||
'type' => 'Ftp', |
|||
'host' => '', |
|||
'username' => '', |
|||
'password' => '', |
|||
'port' => 21, |
|||
'passive' => true, |
|||
'ssl' => true, |
|||
'timeout' => 30, |
|||
'root' => '', |
|||
], |
|||
'sftp' => [ |
|||
'type' => 'Sftp', |
|||
'host' => '', |
|||
'username' => '', |
|||
'password' => '', |
|||
'port' => 21, |
|||
'timeout' => 10, |
|||
'privateKey' => '', |
|||
'root' => '', |
|||
], |
|||
]; |
|||
@ -0,0 +1,43 @@ |
|||
@extends('layouts.app') |
|||
|
|||
@section('title', trans('project.subscriptions')) |
|||
|
|||
@section('content') |
|||
|
|||
@include('projects.partials.breadcrumb',['title' => trans('project.subscriptions')]) |
|||
|
|||
<h1 class="page-header"> |
|||
{!! link_to_route('subscriptions.create', trans('subscription.create'), ['project_id' => $project->id, 'customer_id' => $project->customer_id], ['class'=>'btn btn-success pull-right']) !!} |
|||
{{ $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>{{ trans('subscription.domain_name') }}</th> |
|||
<th class="text-center">{{ trans('subscription.hosting_capacity') }}</th> |
|||
<th>{{ trans('subscription.start_date') }}</th> |
|||
<th>{{ 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 {{ Carbon::parse($subscription->due_date)->diffInDays(Carbon::now()) < 60 ? 'class=bg-danger' : '' }}> |
|||
<td>{{ 1 + $key }}</td> |
|||
<td>{{ $subscription->domain_name }}</td> |
|||
<td class="text-center">{{ $subscription->hosting_capacity }}</td> |
|||
<td>{{ dateId($subscription->start_date) }}</td> |
|||
<td>{{ dateId($subscription->due_date) }}</td> |
|||
<td class="text-right">{{ formatRp($subscription->domain_price + $subscription->hosting_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 |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue