-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add dropdowns for resources in create resour
- Loading branch information
1 parent
c90c34f
commit db98147
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@extends('layouts.app') | ||
|
||
@section('content') | ||
<div class="container"> | ||
<h1>Create New Resource</h1> | ||
<form action="{{ route('resources.store') }}" method="POST"> | ||
@csrf | ||
|
||
<!-- Country Dropdown --> | ||
<div class="form-group"> | ||
<label for="country">Country</label> | ||
<select class="form-control" id="country" name="country"> | ||
@foreach($countries as $country) | ||
<option value="{{ $country->name }}">{{ $country->name }}</option> | ||
@endforeach | ||
</select> | ||
</div> | ||
|
||
<!-- Other Resource Dropdown Placeholder --> | ||
<div class="form-group"> | ||
<label for="otherResource">Other Resource</label> | ||
<select class="form-control" id="otherResource" name="otherResource"> | ||
@foreach($otherResources as $resource) | ||
<option value="{{ $resource->id }}">{{ $resource->name }}</option> | ||
@endforeach | ||
</select> | ||
</div> | ||
|
||
<button type="submit" class="btn btn-primary">Submit</button> | ||
</form> | ||
</div> | ||
@endsection |