2020-08-12 08:46:36 +00:00
|
|
|
@extends("app.layout.base")
|
|
|
|
|
|
|
|
@section("title")
|
|
|
|
Account
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section("content")
|
2020-11-26 09:19:12 +00:00
|
|
|
<main class="justify-unset">
|
2020-08-12 08:46:36 +00:00
|
|
|
<h1 class="text-center sde-blue mt-1">{{__('msg.konto')}}</h1>
|
|
|
|
<form method="post" action="{{ route("users.accountupdate", ['user' => Auth::user()]) }}" enctype="multipart/form-data">
|
|
|
|
@csrf
|
|
|
|
@method("put")
|
|
|
|
|
2020-08-12 09:15:08 +00:00
|
|
|
@if(\App\Resource::query()->where("id", "=", Auth::user()->resource_id)->first() !== null)
|
2020-11-26 09:19:12 +00:00
|
|
|
<img class="m-auto" style="width: calc(100% - 72px);" src="{{ \App\Resource::query()->where("id", "=",Auth::user()->resource_id)->first()->filename }}">
|
2020-08-12 08:46:36 +00:00
|
|
|
@else
|
|
|
|
@if(request()->cookie("mode") == "dark")
|
2020-11-26 09:19:12 +00:00
|
|
|
<img class="m-auto" style="width: calc(100% - 72px);" src="{{ asset("/images/icons/user-hvid.svg") }}">
|
2020-08-12 08:46:36 +00:00
|
|
|
@else
|
2020-11-26 09:19:12 +00:00
|
|
|
<img class="m-auto" style="width: calc(100% - 72px);" src="{{ asset("/images/icons/user.svg") }}">
|
2020-08-12 08:46:36 +00:00
|
|
|
@endif
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<span>{{__('msg.profilbillede')}}:</span>
|
2020-08-18 05:49:00 +00:00
|
|
|
<input type="file" name="resource" accept="image/*">
|
2020-08-12 11:09:47 +00:00
|
|
|
<button type="submit" class="btn text-center btn-sde-blue mt-1">{{__('msg.ændrer')}}</button>
|
2020-08-13 07:08:34 +00:00
|
|
|
<a onclick="window.history.back()" class="btn text-center btn-sde-blue mt-1">{{__('msg.tilbage')}}</a>
|
2020-08-12 08:46:36 +00:00
|
|
|
</form>
|
|
|
|
</main>
|
|
|
|
@endsection
|