diff --git a/app/config/app.php b/app/config/app.php index 5b4bee37d873..2788a7946e6b 100755 --- a/app/config/app.php +++ b/app/config/app.php @@ -187,8 +187,8 @@ return array( 'URL' => 'Illuminate\Support\Facades\URL', 'Validator' => 'Illuminate\Support\Facades\Validator', 'View' => 'Illuminate\Support\Facades\View', - 'SSH' => 'Illuminate\Support\Facades\SSH', - 'Basset' => 'Basset\Facade', + 'SSH' => 'Illuminate\Support\Facades\SSH', + 'Basset' => 'Basset\Facade', 'Alert' => 'Bootstrapper\Alert', 'Badge' => 'Bootstrapper\Badge', 'Breadcrumb' => 'Bootstrapper\Breadcrumb', @@ -212,7 +212,7 @@ return array( 'Thumbnail' => 'Bootstrapper\Thumbnail', 'Typeahead' => 'Bootstrapper\Typeahead', 'Typography' => 'Bootstrapper\Typography', - 'Confide' => 'Zizaco\Confide\ConfideFacade', + 'Confide' => 'Zizaco\Confide\ConfideFacade', 'Former' => 'Former\Facades\Former', 'Datatable' => 'Chumper\Datatable\Facades\Datatable', 'Omnipay' => 'Omnipay\Omnipay', diff --git a/app/controllers/ClientController.php b/app/controllers/ClientController.php index 09095e889d1e..81b42868abc6 100755 --- a/app/controllers/ClientController.php +++ b/app/controllers/ClientController.php @@ -108,6 +108,7 @@ class ClientController extends \BaseController { Utils::trackViewed($client->getDisplayName(), ENTITY_CLIENT); $data = array( + 'showBreadcrumbs' => false, 'client' => $client, 'credit' => $client->getTotalCredit(), 'title' => '- ' . $client->getDisplayName(), diff --git a/app/controllers/DashboardController.php b/app/controllers/DashboardController.php index 60fb7baa332a..f07037142b22 100644 --- a/app/controllers/DashboardController.php +++ b/app/controllers/DashboardController.php @@ -5,7 +5,7 @@ class DashboardController extends \BaseController { public function index() { // total_income, billed_clients, invoice_sent and active_clients - $select = DB::raw('SUM(clients.paid_to_date) total_income, + $select = DB::raw('SUM(DISTINCT clients.paid_to_date) total_income, COUNT(DISTINCT CASE WHEN invoices.id IS NOT NULL THEN clients.id ELSE null END) billed_clients, SUM(CASE WHEN invoices.invoice_status_id >= '.INVOICE_STATUS_SENT.' THEN 1 ELSE 0 END) invoices_sent, COUNT(DISTINCT clients.id) active_clients'); diff --git a/app/controllers/InvoiceController.php b/app/controllers/InvoiceController.php index 704769d7ebdb..934d96e3042b 100755 --- a/app/controllers/InvoiceController.php +++ b/app/controllers/InvoiceController.php @@ -141,6 +141,7 @@ class InvoiceController extends \BaseController { $invoice->due_date = Utils::fromSqlDate($invoice->due_date); $data = array( + 'showBreadcrumbs' => false, 'invoice' => $invoice->hidePrivateFields(), 'invitation' => $invitation ); @@ -166,6 +167,7 @@ class InvoiceController extends \BaseController { ->select('contacts.public_id')->lists('public_id'); $data = array( + 'showBreadcrumbs' => false, 'account' => $invoice->account, 'invoice' => $invoice, 'data' => false, diff --git a/app/controllers/PaymentController.php b/app/controllers/PaymentController.php index 58b8aee8efa7..7a9a70d4d7f6 100755 --- a/app/controllers/PaymentController.php +++ b/app/controllers/PaymentController.php @@ -167,6 +167,7 @@ class PaymentController extends \BaseController $client = $invoice->client; $data = [ + 'showBreadcrumbs' => false, 'invitationKey' => $invitationKey, 'invoice' => $invoice, 'client' => $client, diff --git a/app/routes.php b/app/routes.php index f1c1b8a1de27..39e2034f85af 100755 --- a/app/routes.php +++ b/app/routes.php @@ -159,6 +159,26 @@ HTML::macro('image_data', function($imagePath) { }); +HTML::macro('breadcrumbs', function() { + $str = ''; +}); + define('CONTACT_EMAIL', 'contact@invoiceninja.com'); define('ENV_DEVELOPMENT', 'local'); diff --git a/app/views/credits/edit.blade.php b/app/views/credits/edit.blade.php index fec26adeb239..938ddad253f7 100755 --- a/app/views/credits/edit.blade.php +++ b/app/views/credits/edit.blade.php @@ -16,12 +16,6 @@
- @if ($credit) - {{ Former::legend('Edit Credit') }} - @else - {{ Former::legend('New Credit') }} - @endif - {{ Former::select('client')->addOption('', '')->addGroupClass('client-select') }} {{ Former::text('amount') }} {{ Former::text('credit_date')->data_date_format(Session::get(SESSION_DATE_PICKER_FORMAT)) }} diff --git a/app/views/dashboard.blade.php b/app/views/dashboard.blade.php index 56d68e8a1b31..6a102a1b7024 100644 --- a/app/views/dashboard.blade.php +++ b/app/views/dashboard.blade.php @@ -58,7 +58,7 @@