@extends('layouts.dashboard') @section('template_title') {{ trans('profile.templateTitle') }} @endsection @section('header') {{ trans('profile.editProfileTitle') }} | {{ trans('profile.showProfileTitle',['username' => $user->name]) }} @endsection @section('breadcrumbs') {{ trans('titles.app') }} chevron_right
  • {{ trans('titles.profile') }} chevron_right
  • {{ trans('titles.editProfile') }}
  • @endsection @section('template-form-status') @include('partials.form-status-ajax') @endsection @section('template_fastload_css') .mdl-gen__preview { position: relative; height: 350px } .mdl-demo-card .mdl-layout__content { margin: 0 1em; } .demo-layout .mdl-layout__header .mdl-layout__drawer-button i { margin-top: 12px; } .mdl-demo-card .mdl-layout__header .mdl-layout__drawer-button i { color: #ffffff; } body .mdl-card__title { display: block; height: 190px; } @endsection @section('content') @if (Auth::user()->id == $user->id)
    {{ $user->name }}

    {{ $user->name }}

    {!! Form::open(array('route' => 'avatar.upload', 'method' => 'POST', 'name' => 'avatarDropzone','id' => 'avatarDropzone', 'class' => 'form single-dropzone dropzone single', 'files' => true)) !!} @if($user->profile->avatar) {{ $user->name }} @else
    file_upload
    @endif

    {{ $user->name }}

    {!! Form::close() !!}
    {{ Gravatar::get($user->email) }}
    profile->user_profile_bg != NULL) style="background: url('{{$user->profile->user_profile_bg}}') center/cover;" @endif> {!! Form::open(array('route' => 'background.upload', 'method' => 'POST', 'name' => 'backgroundDropzone','id' => 'backgroundDropzone', 'class' => 'form single-dropzone dropzone single mdl-button mdl-js-button mdl-button--fab mdl-button--mini-fab mdl-js-ripple-effect mdl-color-text--white', 'files' => true)) !!} wallpaper {!! Form::close() !!}
    {!! Form::model($user->profile, ['method' => 'PATCH', 'route' => ['profile.update', $user->name], 'class' => '', 'id' => 'edit_profile_form', 'role' => 'form', 'enctype' => 'multipart/form-data' ]) !!}
    {!! Form::text('name', $user->name, array('id' => 'name', 'class' => 'mdl-textfield__input', 'pattern' => '[A-Z,a-z,0-9]*', 'disabled')) !!} {!! Form::label('name', trans('auth.name') , array('class' => 'mdl-textfield__label')); !!} Letters and numbers only
    {!! Form::email('email', $user->email, array('id' => 'email', 'class' => 'mdl-textfield__input', 'disabled')) !!} {!! Form::label('email', trans('auth.email') , array('class' => 'mdl-textfield__label')); !!} Please Enter a Valid {{ trans('auth.email') }}
    {!! Form::text('first_name', $user->first_name, array('id' => 'first_name', 'class' => 'mdl-textfield__input', 'pattern' => '[A-Z,a-z]*')) !!} {!! Form::label('first_name', trans('auth.first_name') , array('class' => 'mdl-textfield__label')); !!} Letters only
    {!! Form::text('last_name', $user->last_name, array('id' => 'last_name', 'class' => 'mdl-textfield__input', 'pattern' => '[A-Z,a-z]*')) !!} {!! Form::label('last_name', trans('auth.last_name') , array('class' => 'mdl-textfield__label')); !!} Letters only
    {!! Form::text('twitter_username', $user->profile->twitter_username, array('id' => 'twitter_username', 'class' => 'mdl-textfield__input')) !!} {!! Form::label('twitter_username', trans('profile.label-twitter_username') , array('class' => 'mdl-textfield__label')); !!}
    {!! Form::text('github_username', $user->profile->github_username, array('id' => 'github_username', 'class' => 'mdl-textfield__input')) !!} {!! Form::label('github_username', trans('profile.label-github_username') , array('class' => 'mdl-textfield__label')); !!}
    {!! Form::textarea('bio', $user->profile->bio, array('id' => 'bio', 'class' => 'mdl-textfield__input')) !!} {!! Form::label('bio', trans('profile.label-bio') , array('class' => 'mdl-textfield__label')); !!}
    {!! Form::text('location', $user->profile->location, array('id' => 'location', 'class' => 'mdl-textfield__input' )) !!} {!! Form::label('location', trans('profile.label-location') , array('class' => 'mdl-textfield__label')); !!} Please Enter a Valid Location
    @if ($user->profile->location)

    LON: / LAT:

    @endif
    {!! Form::label('theme_id', trans('profile.label-theme'), array('class' => 'mdl-textfield__label mdl-selectfield__label mdl-color-text--primary')); !!} @if ($errors->has('theme_id')) {{ $errors->first('theme') }} @endif
    																
    																	material.$primary-$accent.min.css
    																
    															
    Custom CSS theme builder

    Click on the color wheel to choose a primary (1) and accent (2) color to preview the theme below. When you’ve selected a color combination you like, simply click save.

    Theme Preview
    Theme Preview
    {!! Form::button(trans('profile.submitChangesButton'), array('class' => 'dialog-button-save mdl-button mdl-js-button mdl-js-ripple-effect margin-top-1 margin-top-0-desktop')) !!}
    {!! Form::button('save', array('class' => 'dialog-icon-save mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect', 'title' => 'view profile')) !!} more_vert
    person_outline
    @include('dialogs.dialog-save', ['isAjax' => true]) {!! Form::close() !!}
    @else

    {{ trans('profile.notYourProfile') }}

    @endif @endsection @section('footer_scripts') @include('scripts.mdl-required-input-fix') @include('scripts.gmaps-address-lookup-api3') @include('scripts.google-maps-geocode-and-map') @include('scripts.mdl-save-ajax') @endsection