-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add index view for site settings management
- Loading branch information
1 parent
5b8fd2f
commit 543f916
Showing
1 changed file
with
33 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,33 @@ | ||
@extends('layouts.app') | ||
|
||
@section('content') | ||
<div class="container"> | ||
<h1>Site Settings</h1> | ||
<table class="table"> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Value</th> | ||
<th>Description</th> | ||
<th>Actions</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
@forelse($settings as $setting) | ||
<tr> | ||
<td>{{ $setting->name }}</td> | ||
<td>{{ $setting->value }}</td> | ||
<td>{{ $setting->description }}</td> | ||
<td> | ||
<a href="{{ route('site_settings.edit', $setting->id) }}" class="btn btn-primary">Edit</a> | ||
</td> | ||
</tr> | ||
@empty | ||
<tr> | ||
<td colspan="4">No settings found.</td> | ||
</tr> | ||
@endforelse | ||
</tbody> | ||
</table> | ||
</div> | ||
@endsection |