From a8c848922a88de4665c4bbb2e98e88a27dd233f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Mon, 3 Feb 2020 11:58:05 +0300 Subject: [PATCH] Change all url to route --- resources/views/auth/login/create.blade.php | 2 +- .../banking/reconciliations/create.blade.php | 4 ++-- .../banking/reconciliations/edit.blade.php | 10 +++++----- .../views/install/updates/index.blade.php | 4 ++-- resources/views/layouts/install.blade.php | 2 +- .../views/modals/bills/payment.blade.php | 2 +- .../views/modals/invoices/payment.blade.php | 2 +- .../views/modules/item/pre_sale.blade.php | 4 ++-- resources/views/modules/item/show.blade.php | 12 +++++------ .../partials/form/delete_button.blade.php | 13 ++++++++++-- .../views/partials/form/delete_link.blade.php | 6 ++++-- .../partials/form/save_buttons.blade.php | 9 ++++++++- .../views/partials/portal/navbar.blade.php | 6 +++--- .../views/partials/reports/filter.blade.php | 4 ++-- resources/views/portal/profile/edit.blade.php | 2 +- .../views/purchases/bills/index.blade.php | 2 +- .../views/purchases/bills/show.blade.php | 4 ++-- .../views/purchases/payments/index.blade.php | 2 +- .../views/purchases/vendors/index.blade.php | 2 +- .../views/purchases/vendors/show.blade.php | 4 ++-- .../views/sales/customers/index.blade.php | 4 ++-- .../views/sales/customers/show.blade.php | 2 +- .../views/sales/invoices/index.blade.php | 2 +- resources/views/sales/invoices/show.blade.php | 20 +++++++++---------- .../views/sales/revenues/index.blade.php | 2 +- routes/admin.php | 10 +++++----- 26 files changed, 77 insertions(+), 59 deletions(-) diff --git a/resources/views/auth/login/create.blade.php b/resources/views/auth/login/create.blade.php index 35e8a6dbd..19e07180d 100644 --- a/resources/views/auth/login/create.blade.php +++ b/resources/views/auth/login/create.blade.php @@ -46,7 +46,7 @@ @stack('forgotten-password-start')
- {{ trans('auth.forgot_password') }} + {{ trans('auth.forgot_password') }}
@stack('forgotten-password-end') {!! Form::close() !!} diff --git a/resources/views/banking/reconciliations/create.blade.php b/resources/views/banking/reconciliations/create.blade.php index b477cffa0..cc37cdab1 100644 --- a/resources/views/banking/reconciliations/create.blade.php +++ b/resources/views/banking/reconciliations/create.blade.php @@ -5,7 +5,7 @@ @section('content')
{!! Form::open([ - 'url' => 'banking/reconciliations/create', + 'route' => 'reconciliations.store', 'id' => 'reconciliation', '@submit.prevent' => 'onSubmit', '@keydown' => 'form.errors.clear($event.target.name)', @@ -40,7 +40,7 @@
{!! Form::open([ - 'url' => 'banking/reconciliations/create', + 'route' => 'reconciliations.store', 'role' => 'form', 'class' => 'form-loading-button', 'id' => 'form-reconciliations', diff --git a/resources/views/banking/reconciliations/edit.blade.php b/resources/views/banking/reconciliations/edit.blade.php index 4f895688f..3ae6a4b08 100644 --- a/resources/views/banking/reconciliations/edit.blade.php +++ b/resources/views/banking/reconciliations/edit.blade.php @@ -5,11 +5,11 @@ @section('content')
{!! Form::model($reconciliation, [ - 'method' => 'PATCH', - 'url' => ['banking/reconciliations', $reconciliation->id], - 'role' => 'form', - 'id' => 'form-reconciliations', - 'class' => 'form-loading-button mb-0' + 'method' => 'PATCH', + 'route' => ['reconciliations.update', $reconciliation->id], + 'role' => 'form', + 'id' => 'form-reconciliations', + 'class' => 'form-loading-button mb-0' ]) !!}
diff --git a/resources/views/install/updates/index.blade.php b/resources/views/install/updates/index.blade.php index e343064dd..ae645ea4f 100644 --- a/resources/views/install/updates/index.blade.php +++ b/resources/views/install/updates/index.blade.php @@ -23,7 +23,7 @@ {{ trans('updates.new_core') }}
-  {{ trans('updates.update', ['version' => $core]) }} @@ -61,7 +61,7 @@ {{ $module->installed }} {{ $module->latest }} - + {{ trans_choice('general.updates', 1) }} diff --git a/resources/views/layouts/install.blade.php b/resources/views/layouts/install.blade.php index f568064dd..e4d411734 100644 --- a/resources/views/layouts/install.blade.php +++ b/resources/views/layouts/install.blade.php @@ -38,7 +38,7 @@