Updated IPsController create variable names & added seed box to input
Updated IPsController create variable names & added seed boxes to select input
This commit is contained in:
parent
b7c02fc4fa
commit
43d22f8e16
|
@ -5,6 +5,7 @@ namespace App\Http\Controllers;
|
||||||
use App\Models\DNS;
|
use App\Models\DNS;
|
||||||
use App\Models\IPs;
|
use App\Models\IPs;
|
||||||
use App\Models\Reseller;
|
use App\Models\Reseller;
|
||||||
|
use App\Models\SeedBoxes;
|
||||||
use App\Models\Server;
|
use App\Models\Server;
|
||||||
use App\Models\Shared;
|
use App\Models\Shared;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
@ -21,10 +22,11 @@ class IPsController extends Controller
|
||||||
|
|
||||||
public function create()
|
public function create()
|
||||||
{
|
{
|
||||||
$Servers = Server::all();
|
$servers = Server::all();
|
||||||
$Shareds = Shared::all();
|
$shareds = Shared::all();
|
||||||
$Resellers = Reseller::all();
|
$resellers = Reseller::all();
|
||||||
return view('ips.create', compact(['Servers', 'Shareds', 'Resellers']));
|
$seed_boxes = SeedBoxes::all();
|
||||||
|
return view('ips.create', compact(['servers', 'shareds', 'resellers', 'seed_boxes']));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function store(Request $request)
|
public function store(Request $request)
|
||||||
|
|
|
@ -32,19 +32,24 @@
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<div class="input-group-prepend"><span class="input-group-text">Service</span></div>
|
<div class="input-group-prepend"><span class="input-group-text">Service</span></div>
|
||||||
<select class="form-control" name="service_id">
|
<select class="form-control" name="service_id">
|
||||||
@foreach ($Servers as $server)
|
@foreach ($servers as $server)
|
||||||
<option value="{{ $server['id'] }}">
|
<option value="{{ $server['id'] }}">
|
||||||
{{ $server['hostname'] }} (VPS)
|
{{ $server['hostname'] }} (Server)
|
||||||
</option>
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
@foreach ($Shareds as $shared)
|
@foreach ($shareds as $shared)
|
||||||
<option value="{{ $shared['id'] }}">
|
<option value="{{ $shared['id'] }}">
|
||||||
{{ $shared['main_domain'] }} (shared)
|
{{ $shared['main_domain'] }} (Shared)
|
||||||
</option>
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
@foreach ($Resellers as $reseller)
|
@foreach ($resellers as $reseller)
|
||||||
<option value="{{ $reseller['id'] }}">
|
<option value="{{ $reseller['id'] }}">
|
||||||
{{ $reseller['main_domain'] }} (reseller)
|
{{ $reseller['main_domain'] }} (Reseller)
|
||||||
|
</option>
|
||||||
|
@endforeach
|
||||||
|
@foreach ($seed_boxes as $seed_box)
|
||||||
|
<option value="{{ $seed_box['id'] }}">
|
||||||
|
{{ $seed_box['title'] }} (Seed box)
|
||||||
</option>
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select></div>
|
</select></div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user