Files
portal-api/resources/views/components/module/network.blade.php
T
2025-07-24 16:18:27 +07:00

19 lines
896 B
PHP

<div class="row form-group align-items-center mb-0">
<label for="network_id" class="col-md-3 text-right">Network</label>
<div class="col-md-9 p-1 bg-customer">
<select class="custom-select" id="network_id" data-ajax="{{ route('api.getIPAddress') }}" name="module_network_id">
<option value="0">---------</option>
@if($networks)
@foreach($networks->all() as $item)
<option
@selected($model && (
(isset($model?->ipaddress?->module_network_id) && $item->id == $model?->ipaddress?->module_network_id) ||
isset($model?->module_network_id) && $item->id == $model?->module_network_id
))
value="{{$item->id}}">{{$item->name}}</option>
@endforeach
@endif
</select>
</div>
</div>