akaunting 3.0 (the last dance)
This commit is contained in:
@@ -7,7 +7,6 @@ use App\Http\Requests\Common\Contact as Request;
|
||||
use App\Models\Common\Contact;
|
||||
use App\Jobs\Common\CreateContact;
|
||||
use App\Jobs\Common\UpdateContact;
|
||||
use App\Models\Setting\Currency;
|
||||
|
||||
class Customers extends Controller
|
||||
{
|
||||
@@ -30,17 +29,13 @@ class Customers extends Controller
|
||||
*/
|
||||
public function create()
|
||||
{
|
||||
$currencies = Currency::enabled()->orderBy('name')->pluck('name', 'code')->toArray();
|
||||
|
||||
$contact_selector = false;
|
||||
|
||||
if (request()->has('contact_selector')) {
|
||||
$contact_selector = request()->get('contact_selector');
|
||||
}
|
||||
|
||||
$rand = rand();
|
||||
|
||||
$html = view('modals.customers.create', compact('currencies', 'contact_selector', 'rand'))->render();
|
||||
$html = view('modals.customers.create', compact('contact_selector'))->render();
|
||||
|
||||
return response()->json([
|
||||
'success' => true,
|
||||
@@ -80,17 +75,13 @@ class Customers extends Controller
|
||||
*/
|
||||
public function edit(Contact $customer)
|
||||
{
|
||||
$currencies = Currency::enabled()->pluck('name', 'code');
|
||||
|
||||
$contact_selector = false;
|
||||
|
||||
if (request()->has('contact_selector')) {
|
||||
$contact_selector = request()->get('contact_selector');
|
||||
}
|
||||
|
||||
$rand = rand();
|
||||
|
||||
$html = view('modals.customers.edit', compact('customer', 'currencies', 'contact_selector', 'rand'))->render();
|
||||
$html = view('modals.customers.edit', compact('customer', 'contact_selector'))->render();
|
||||
|
||||
return response()->json([
|
||||
'success' => true,
|
||||
|
Reference in New Issue
Block a user