2021-04-16 01:00:00 +02:00
|
|
|
@extends('layouts.sidebar')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
2022-03-23 13:57:20 +01:00
|
|
|
<script src="{{ asset('resources/ckeditor/ckeditor.js') }}"></script>
|
|
|
|
|
2022-11-08 16:11:59 +01:00
|
|
|
<section class="shadow text-gray-400">
|
|
|
|
<h2 class="mb-4 card-header"><i class="bi bi-person"> Edit Pages</i></h2>
|
|
|
|
<div class="card-body p-0 p-md-3">
|
2021-04-16 01:00:00 +02:00
|
|
|
|
|
|
|
<form action="{{ route('editSitePage') }}" method="post">
|
|
|
|
@csrf
|
|
|
|
@foreach($pages as $page)
|
|
|
|
<div class="form-group col-lg-8">
|
2022-03-23 13:57:20 +01:00
|
|
|
<h3>Terms</h3>
|
|
|
|
<textarea class="form-control ckeditor" name="terms" rows="3">{{ $page->terms }}</textarea>
|
|
|
|
</div><br>
|
2021-04-16 01:00:00 +02:00
|
|
|
<div class="form-group col-lg-8">
|
2022-03-23 13:57:20 +01:00
|
|
|
<h3>Privacy</h3>
|
|
|
|
<textarea class="form-control ckeditor" name="privacy" rows="3">{{ $page->privacy }}</textarea>
|
|
|
|
</div><br>
|
2021-04-16 01:00:00 +02:00
|
|
|
<div class="form-group col-lg-8">
|
2022-03-23 13:57:20 +01:00
|
|
|
<h3>Contact</h3>
|
|
|
|
<textarea class="form-control ckeditor" name="contact" rows="3">{{ $page->contact }}</textarea>
|
|
|
|
</div><br>
|
2022-02-23 20:19:15 +01:00
|
|
|
<div class="form-group col-lg-8">
|
2022-03-23 13:57:20 +01:00
|
|
|
<h3 for="exampleFormControlSelect1">Allow registration</h3>
|
2022-02-23 20:19:15 +01:00
|
|
|
<select class="form-control" name="register">
|
|
|
|
@if($page->register == 'true')
|
|
|
|
<option>true</option>
|
|
|
|
<option>false</option>
|
|
|
|
@else
|
|
|
|
<option>false</option>
|
|
|
|
<option>true</option>
|
|
|
|
@endif
|
|
|
|
</select>
|
|
|
|
</div>
|
2021-04-16 01:00:00 +02:00
|
|
|
@endforeach
|
|
|
|
<button type="submit" class="mt-3 ml-3 btn btn-info">Submit</button>
|
|
|
|
</form>
|
|
|
|
|
2022-11-08 16:11:59 +01:00
|
|
|
</div>
|
|
|
|
</section>
|
2021-04-16 01:00:00 +02:00
|
|
|
@endsection
|