Updated account index blade view

uses alert component for response
This commit is contained in:
cp6 2022-10-31 16:01:16 +11:00
parent 9d33f8ad6e
commit a8e1235922

View File

@ -3,14 +3,9 @@
<x-slot name="header"> <x-slot name="header">
Edit account Edit account
</x-slot> </x-slot>
<div class="container"> <div class="container">
<x-card class="shadow mt-3"> <x-card class="shadow mt-3">
@if ($message = Session::get('success')) <x-response-alerts></x-response-alerts>
<div class="alert alert-success" role="alert">
<p class="my-1">{{ $message }}</p>
</div>
@endif
<form action="{{ route('account.update',Auth::user()->id) }}" method="POST"> <form action="{{ route('account.update',Auth::user()->id) }}" method="POST">
@csrf @csrf
@method('PUT') @method('PUT')