Eshop-Laravel/resources/views/cms/cms-usersInfo.blade.php

81 lines
3.1 KiB
PHP
Raw Permalink Normal View History

2019-10-18 09:25:37 +00:00
@extends('cms.cms-master')
@section('main_content')
<h1>{{$user[0]->name}}</h1>
<img style="width:120px;border-radius:60px 30px"src="{{asset('images/profilePics' .'/' . $user[0]->profilepic)}}" alt="">
<form method="post" action="{{url('cms/cms.cms-userInfo'.'/' . $user[0]->id)}}" class="content-block">
{{csrf_field()}}
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="firstname" class="form-label">Firstname</label>
<input name="name" value="{{ $user[0]->{'name'} }}" id="firstname" type="text" class="form-control">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="lastname" class="form-label">Lastname</label>
<input name="last_name" value="{{ $user[0]->{'last_name'} }}" id="lastname" type="text" class="form-control">
</div>
</div>
</div>
<!-- /.row-->
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label for="Street_Number" class="form-label">Street Number</label>
<input name="streetNum" value="{{ $user[0]->{'streetNum'} }}" id="Street_Number" type="text" class="form-control">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="street" class="form-label">Street</label>
<input name="street" value="{{ $user[0]->{'street'} }}" id="street" type="text" class="form-control">
</div>
</div>
</div>
<!-- /.row-->
<div class="row">
<div class="col-sm-6 col-md-3">
<div class="form-group">
<label for="city" class="form-label">City</label>
<input name="city" value="{{ $user[0]->{'city'} }}" id="city" type="text" class="form-control">
</div>
</div>
<div class="col-sm-6 col-md-3">
<div class="form-group">
<label for="zip" class="form-label">ZIP</label>
<input name="ZIP" value="{{ $user[0]->{'ZIP'} }}" id="zip" type="text" class="form-control">
</div>
</div>
<div class="col-sm-6 col-md-3">
<div class="form-group">
<label for="state" class="form-label">State</label>
<input name="state" value="{{ $user[0]->{'State'} }}" id="state" type="text" class="form-control">
</div>
</div>
<div class="col-sm-6 col-md-3">
<div class="form-group">
<label for="country" class="form-label">Country</label>
<input name="country" value="{{ $user[0]->{'country'} }}" id="country" type="text" class="form-control">
</div>
</div>
<div class="col-sm-6">
<div class="form-group">
<label for="phone" class="form-label">Telephone</label>
<input name="phone" value="{{ $user[0]->{'phone'} }}" id="phone" type="text" class="form-control">
</div>
</div>
<div class="col-sm-12 text-center">
<button name"submit" type="submit" class="btn btn-primary">
<i class="fa fa-save">
Save Changes
</i>
</boutton>
</div>
</div>
</form>
@endsection()