diff --git a/app/Http/Controllers/AccountController.php b/app/Http/Controllers/AccountController.php index 67bb78ca844a..57f581e3df11 100644 --- a/app/Http/Controllers/AccountController.php +++ b/app/Http/Controllers/AccountController.php @@ -206,7 +206,7 @@ class AccountController extends BaseController } } - if (!empty($new_plan)) { + if (!empty($new_plan) && $new_plan['plan'] != PLAN_FREE) { $time_used = $planDetails['paid']->diff(date_create()); $days_used = $time_used->days; @@ -1320,12 +1320,14 @@ class AccountController extends BaseController } $account = Auth::user()->account; + $invitation = $invoice->invitations->first(); // replace the variables with sample data $data = [ 'account' => $account, 'invoice' => $invoice, - 'invitation' => $invoice->invitations->first(), + 'invitation' => $invitation, + 'link' => $invitation->getLink(), 'client' => $invoice->client, 'amount' => $invoice->amount ]; diff --git a/app/Http/Controllers/AccountGatewayController.php b/app/Http/Controllers/AccountGatewayController.php index 0bc730129fe1..968fac50e6cd 100644 --- a/app/Http/Controllers/AccountGatewayController.php +++ b/app/Http/Controllers/AccountGatewayController.php @@ -39,6 +39,13 @@ class AccountGatewayController extends BaseController return $this->accountGatewayService->getDatatable(Auth::user()->account_id); } + public function show($publicId) + { + Session::reflash(); + + return Redirect::to("gateways/$publicId/edit"); + } + public function edit($publicId) { $accountGateway = AccountGateway::scope($publicId)->firstOrFail(); diff --git a/app/Http/routes.php b/app/Http/routes.php index f6574b9762c9..d9e4b2964b7e 100644 --- a/app/Http/routes.php +++ b/app/Http/routes.php @@ -309,6 +309,10 @@ Route::get('/forgot', function() { Route::get('/feed', function() { return Redirect::to(NINJA_WEB_URL.'/feed', 301); }); +Route::get('/comments/feed', function() { + return Redirect::to(NINJA_WEB_URL.'/comments/feed', 301); +}); + if (!defined('CONTACT_EMAIL')) { define('CONTACT_EMAIL', Config::get('mail.from.address')); diff --git a/resources/views/accounts/management.blade.php b/resources/views/accounts/management.blade.php index ac57cf737dd6..97ea6079df82 100644 --- a/resources/views/accounts/management.blade.php +++ b/resources/views/accounts/management.blade.php @@ -1,6 +1,6 @@ @extends('header') -@section('content') +@section('content') @parent @include('accounts.nav', ['selected' => ACCOUNT_MANAGEMENT]) @@ -134,10 +134,10 @@ @@ -165,12 +165,12 @@
 

{{ trans('texts.cancel_account_message') }}

  -  

{!! Former::textarea('reason')->placeholder(trans('texts.reason_for_canceling'))->raw() !!}

  +  

{!! Former::textarea('reason')->placeholder(trans('texts.reason_for_canceling'))->raw() !!}

 
@@ -182,7 +182,7 @@ -@stop \ No newline at end of file +@stop diff --git a/resources/views/header.blade.php b/resources/views/header.blade.php index 7b4fe014e71f..284bacba33f6 100644 --- a/resources/views/header.blade.php +++ b/resources/views/header.blade.php @@ -4,25 +4,25 @@ @section('head') - +