HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/liempde.ehbo.today/resources/views/site/dashboard/personal.blade.php
<div class="register centered personal">
    <h1>@lang('site/dashboard.personal.data')</h1>
    <form action="{{ route('site.dashboard.personal.save', ['user' => \Auth::user()]) }}" method="POST">
        {{ csrf_field() }}
        {{ method_field('POST') }}

        @if(Session::has('success'))
            <div class="alert success">
                {!! Session::get('success')->first() !!}
            </div>
        @endif

        @if ($errors->any())
            <div class="alert alert-danger">
                <ul>
                    @foreach ($errors->all() as $error)
                        <li>{{ $error }}</li>
                    @endforeach
                </ul>
            </div>
        @endif

        <div class="form-group{{ $errors->has('gender') || $errors->has('first_name') || $errors->has('last_name') || $errors->has('birth_date') || $errors->has('age') ? ' has-error' : '' }}">
            <span class="icon person red">@include('svg.icons.person')</span>
            <div class="form-element grid-col col-12">
                @foreach(\App\KommaApp\Users\Genders::getAsArray() as $genderValue)
                    <label class="gender">
                        <input type="radio" name="gender"
                               value="{{ $genderValue }}" {{ old('gender', \Auth::user()->gender) == $genderValue ? 'checked' : ''}}>@lang('auth.genders.'.$genderValue)</label>
                @endforeach
                <span class="error-message {{($errors->has('gender')? 'active' :'')}}">{{$errors->first('gender')}}</span>
            </div>
            <div class="form-element grid-col col-4">
                <label for="first_name">@lang('auth.first_name')</label>
                <input type="text" name="first_name" placeholder="@lang('auth.first_name')"
                       value="{{ old('first_name', \Auth::user()->first_name) }}">
                <span class="error-message {{($errors->has('first_name')? 'active' :'')}}">{{$errors->first('first_name')}}</span>
            </div>
            <div class="form-element grid-col col-6">
                <label for="last_name">@lang('auth.last_name')</label>
                <input type="text" name="last_name" placeholder="@lang('auth.last_name')" value="{{ old('last_name', \Auth::user()->last_name) }}">
                <span class="error-message {{($errors->has('last_name')? 'active' :'')}}">{{$errors->first('last_name')}}</span>
            </div>
            <div class="form-element grid-col col-4">
                <label for="birth_date">@lang('auth.birthdate')</label>
                <select name="birth_date_day">
                    @for($i = 1; $i <= 31; $i++)
                        <option {{old('birth_date_day', \Carbon\Carbon::parse(\Auth::user()->birthdate)->day) == $i ? 'selected': ''}}>{{str_pad($i, 2, "0", STR_PAD_LEFT)}}</option>
                    @endfor
                </select>
                <select name="birth_date_month">
                    @for($i = 1; $i <= 12; $i++)
                        <option {{old('birth_date_month', \Carbon\Carbon::parse(\Auth::user()->birthdate)->month) == $i ? 'selected': ''}}>{{str_pad($i, 2, "0", STR_PAD_LEFT)}}</option>
                    @endfor
                </select>
                <select name="birth_date_year" class="year">
                    @for($i = 1901; $i <= \Carbon\Carbon::now()->year; $i++)
                        <option {{old('birth_date_year', \Carbon\Carbon::parse(\Auth::user()->birthdate)->year) == $i ? 'selected': ''}}>{{$i}}</option>
                    @endfor
                </select>
                <span class="error-message {{($errors->has('birth_date')? 'active' :'')}}">{{$errors->first('birth_date')}}</span>
            </div>
            <div class="form-element grid-col col-6">
                <input type="hidden" readonly class="age" name="age" placeholder="00" value="{{ old('age', \Auth::user()->age) }}">
            </div>
        </div>

        <div class="form-group{{ $errors->has('street') || $errors->has('house_number') || $errors->has('city') || $errors->has('postal_code') ? ' has-error' : '' }}">
            <span class="icon home red">@include('svg.icons.home')</span>
            <div class="form-element grid-col col-7">
                <label for="street">@lang('auth.company_street')</label>
                <input type="text" name="street" placeholder="@lang('auth.company_street')" value="{{ old('street', \Auth::user()->street) }}">
                <span class="error-message {{($errors->has('street')? 'active' :'')}}">{{$errors->first('street')}}</span>
            </div>
            <div class="form-element grid-col col-2">
                <label for="house_number">@lang('auth.company_house_number')</label>
                <input type="text" placeholder="00" name="house_number" value="{{ old('house_number', \Auth::user()->house_number) }}">
                <span class="error-message {{($errors->has('house_number')? 'active' :'')}}">{{$errors->first('house_number')}}</span>
            </div>
            <div class="form-element grid-col col-3">
                <label for="postal_code">@lang('auth.company_zip_code')</label>
                <input type="text" name="postal_code" placeholder="@lang('auth.company_zip_code')" value="{{ old('postal_code', \Auth::user()->postal_code) }}">
                <span class="error-message {{($errors->has('postal_code')? 'active' :'')}}">{{$errors->first('postal_code')}}</span>
            </div>
            <div class="form-element grid-col col-6">
                <label for="city">@lang('auth.company_city')</label>
                <input type="text" name="city" placeholder="@lang('auth.company_city')" value="{{ old('city', \Auth::user()->city) }}">
                <span class="error-message {{($errors->has('city')? 'active' :'')}}">{{$errors->first('city')}}</span>
            </div>
        </div>

        <div class="form-group{{ $errors->has('email') || $errors->has('phone') || $errors->has('mobile') || $errors->has('iban') ? ' has-error' : '' }}">
            <span class="icon mail red">@include('svg.icons.mail')</span>
            <div class="form-element grid-col col-6">
                <label for="email">@lang('auth.email_address')</label>
                <input type="text" name="email" placeholder="@lang('auth.email_address')" value="{{ old('email', \Auth::user()->email) }}">
                <span class="error-message {{($errors->has('email')? 'active' :'')}}">{{$errors->first('email')}}</span>
            </div>
            <div class="form-element grid-col col-6">
                <label for="phone">@lang('auth.phone_number')</label>
                <input type="text" name="phone" placeholder="@lang('auth.phone_number')" value="{{ old('phone', \Auth::user()->telephone) }}">
                <span class="error-message {{($errors->has('phone')? 'active' :'')}}">{{$errors->first('phone')}}</span>
            </div>
            <div class="form-element grid-col col-4">
                <label for="mobile">@lang('auth.mobile_number')</label>
                <input type="text" name="mobile" placeholder="@lang('auth.mobile_number')" value="{{ old('mobile', \Auth::user()->mobile) }}">
                <span class="error-message {{($errors->has('mobile')? 'active' :'')}}">{{$errors->first('mobile')}}</span>
            </div>
            <div class="form-element grid-col col-7">
                <label for="bank_account_number">@lang('auth.bank_account_number')</label>
                <input type="text" name="bank_account_number" placeholder="@lang('auth.bank_account_number')" value="{{ old('bank_account_number', \Auth::user()->bank_account_number) }}">
                <span class="error-message {{($errors->has('bank_account_number')? 'active' :'')}}">{{$errors->first('bank_account_number')}}</span>
            </div>
        </div>

        <input type="submit" value="@lang('site/dashboard.personal.save')">
    </form>
</div>
<div class="sidebar user">
    <h1><span class="icon back-arrow">@include('svg.icons.arrow')</span>@lang('site/dashboard.sidebar.user')</h1>
    <ul>
        <li>
            <p>@lang('site/certificates.number.label')</p> <p class="value">{{ \Auth::user()->certificate_number }}</p>
        </li>
        <li>
            <p>@lang('site/dashboard.sidebar.userStatus')</p>
            @foreach(\Auth::user()->roles as $role)

                <p class="value">@lang('auth.roles.'.$role->value)</p>
            @endforeach
        </li>
        <li>
            <p>@lang('site/certificates.years_certified')</p><p class="value">{{ Auth::user()->yearsCertified() }}</p>
        </li>
        <li>
            <p>@lang('auth.expiration_date')</p> <p class="value">{{ (\Carbon\Carbon::createFromTimeString(Auth::user()->certificate_valid_trough_date))->format('d/m/Y') }}</p>
        </li>
    </ul>
</div>