@extends('modularcms::layouts.main')

@include('modularcms::layouts.partials.body-tag')

@section('content')
    <!-- BEGIN PAGE TITLE-->
    <h1 class="page-title"> </h1>
    <!-- END PAGE TITLE-->
    <!-- END PAGE HEADER-->
    <div class="page-body">
        <form class="form" action="" method="post" role="form">
            {{ csrf_field() }}
            <legend>{{__('Profilo Utente')}}</legend>

            @foreach(Sartoric\ModularCms\Models\User::find([auth()->user()->id])->first()->getAttributes() as $key=>$value)
                <div class="form-group form-md-line-input form-md-floating-label">
                    <input type="text" class="form-control" name="{{ $key }}" id="{{ $key }}" value="{{ $value }}">
                    <label for="{{ $key }}">{{__($key)}}</label>
                </div>
            @endforeach

            <button type="submit" class="btn btn-primary">{{__('Salva')}}</button>
        </form>
    </div>
@endsection
