Wizard Currencies and Taxes edit page start
This commit is contained in:
@ -19,7 +19,7 @@ class Companies extends Controller
|
||||
public function edit()
|
||||
{
|
||||
if (setting('general.wizard', false)) {
|
||||
//return redirect('/');
|
||||
return redirect('/');
|
||||
}
|
||||
|
||||
$company = Company::find(session('company_id'));
|
||||
@ -76,11 +76,6 @@ class Companies extends Controller
|
||||
// Save all settings
|
||||
setting()->save();
|
||||
|
||||
// Redirect
|
||||
$message = trans('messages.success.updated', ['type' => trans_choice('general.companies', 1)]);
|
||||
|
||||
flash($message)->success();
|
||||
|
||||
return redirect('wizard/currencies');
|
||||
}
|
||||
|
||||
|
@ -19,7 +19,7 @@ class Currencies extends Controller
|
||||
public function edit()
|
||||
{
|
||||
if (setting('general.wizard', false)) {
|
||||
//return redirect('/');
|
||||
return redirect('/');
|
||||
}
|
||||
|
||||
$currencies = Currency::all();
|
||||
|
@ -15,13 +15,14 @@ class Finish extends Controller
|
||||
public function index()
|
||||
{
|
||||
if (setting(setting('general.wizard', false))) {
|
||||
//return redirect('/');
|
||||
return redirect('/');
|
||||
}
|
||||
|
||||
$company = Company::find(session('company_id'));
|
||||
setting()->set('general.wizard', true);
|
||||
|
||||
$company->setSettings();
|
||||
// Save all settings
|
||||
setting()->save();
|
||||
|
||||
return view('wizard.finish.index', compact('company', 'currencies'));
|
||||
return view('wizard.finish.index', compact(''));
|
||||
}
|
||||
}
|
||||
|
@ -17,9 +17,13 @@ class Taxes extends Controller
|
||||
*/
|
||||
public function edit()
|
||||
{
|
||||
$tax = [];
|
||||
if (setting(setting('general.wizard', false))) {
|
||||
return redirect('/');
|
||||
}
|
||||
|
||||
return view('wizard.taxes.edit', compact('tax'));
|
||||
$taxes = Tax::all();
|
||||
|
||||
return view('wizard.taxes.edit', compact('taxes'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user