turkmentv/resources/views/profile.blade.php

60 lines
2.8 KiB
PHP

@extends('account')
@section('breadcrumb')
{{ Breadcrumbs::render('profile') }}
@endsection
@section('account_content')
<div id="redak-tc" class="tab-pane fade active in user-details" role="tabpanel">
<div class="for-padding ">
<h2>@lang('content.profile')</h2>
<form action="{{route('profileUpdate')}}" method="POST" class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
@csrf
<div class="form-group col-lg-6 col-md-6 col-sm-6">
<label for="">@lang('content.full_name') *</label>
<input type="text" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}"
name="name" value="{{old('name',$user->name)}}">
@if ($errors->has('name'))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('name') }}</strong>
</span>
@endif
</div>
<div class="form-group col-lg-6 col-md-6 col-sm-6">
<label for="">@lang('auth.email') *</label>
<input type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}"
name="email" value="{{old('email',$user->email)}}">
@if ($errors->has('email'))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</div>
<div class="form-group col-lg-6 col-md-6 col-sm-6">
<label>@lang('auth.phone') *</label>
<input type="text" class="form-control{{ $errors->has('phone') ? ' is-invalid' : '' }}"
name="phone" value="{{old('phone', $user->phone)}}">
@if ($errors->has('phone'))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('phone') }}</strong>
</span>
@endif
</div>
<div class="form-group col-lg-6 col-md-6 col-sm-6">
<label>@lang('auth.password')</label>
<input type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}"
name="password" placeholder="new password">
@if ($errors->has('password'))
<span class="invalid-feedback" role="alert">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</div>
<div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
<input type="submit" value="@lang('auth.save')" class="form-control">
</div>
</form>
</div>
</div>
@endsection