Update email settings view

This commit is contained in:
Daniel Supernault 2021-11-05 18:37:33 -06:00
parent cbd755082e
commit 3d814de9a6
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -1,7 +1,30 @@
@extends('settings.template') @extends('layouts.app')
@section('section') @section('content')
@if (session('status'))
<div class="alert alert-primary px-3 h6 text-center">
{{ session('status') }}
</div>
@endif
@if ($errors->any())
<div class="alert alert-danger px-3 h6 text-center">
@foreach($errors->all() as $error)
<p class="font-weight-bold mb-1">{{ $error }}</li>
@endforeach
</div>
@endif
@if (session('error'))
<div class="alert alert-danger px-3 h6 text-center">
{{ session('error') }}
</div>
@endif
<div class="container">
<div class="col-12">
<div class="card shadow-none border mt-5">
<div class="card-body">
<div class="row">
<div class="col-12 p-3 p-md-5">
<div class="title"> <div class="title">
<h3 class="font-weight-bold">Email Settings</h3> <h3 class="font-weight-bold">Email Settings</h3>
</div> </div>
@ -12,9 +35,8 @@
<input type="hidden" class="form-control" name="username" value="{{Auth::user()->profile->username}}"> <input type="hidden" class="form-control" name="username" value="{{Auth::user()->profile->username}}">
<input type="hidden" class="form-control" name="website" value="{{Auth::user()->profile->website}}"> <input type="hidden" class="form-control" name="website" value="{{Auth::user()->profile->website}}">
<div class="form-group row"> <div class="form-group">
<label for="email" class="col-sm-3 col-form-label font-weight-bold text-right">Email</label> <label for="email" class="font-weight-bold">Email Address</label>
<div class="col-sm-9">
<input type="email" class="form-control" id="email" name="email" placeholder="Email Address" value="{{Auth::user()->email}}"> <input type="email" class="form-control" id="email" name="email" placeholder="Email Address" value="{{Auth::user()->email}}">
<p class="help-text small text-muted font-weight-bold"> <p class="help-text small text-muted font-weight-bold">
@if(Auth::user()->email_verified_at) @if(Auth::user()->email_verified_at)
@ -24,13 +46,18 @@
@endif @endif
</p> </p>
</div> </div>
</div>
<hr>
<div class="form-group row"> <div class="form-group row">
<div class="col-12 text-right"> <div class="col-12 text-right">
<button type="submit" class="btn btn-primary font-weight-bold py-0 px-5">Submit</button> <button type="submit" class="btn btn-primary font-weight-bold py-0 px-5">Submit</button>
</div> </div>
</div> </div>
</form> </form>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection @endsection