@extends('theme::template')

@section('head')
  <link rel="stylesheet" href="{{ themePath('css/member.css') }}">
@stop

@section('banner')
  <div class="nbanner">
    <img src="{{ inject('ad')->single(4, 0, 'img') }}" alt="{{ inject('ad')->single(4, 0, 'title') }}">
  </div>
@stop

@section('anchor')
  <div id="anchor">
    <div class="container-fluid">
        <span class="anchor">
          <a href="{{ url('/') }}">{{ inject('setting')->translate('shop', 'home') }}</a> >
          {{ inject('setting')->translate('shop', 'change_password') }}
        </span>
    </div>
  </div>
@stop

@section('left')
  <h3 class="left-title">{{ inject('setting')->translate('shop', 'personal_center') }}</h3>
  <ul class="cate-list">
    <div class="category">
      <a class="list-title" href="{{ url('member/order') }}">{{ inject('setting')->translate('shop', 'my_orders') }}</a>
      <a class="list-title" href="{{ url('member/address') }}">{{ inject('setting')->translate('shop', 'shipping_address') }}</a>
      <a class="list-title" href="{{ url('member/change-pwd') }}">{{ inject('setting')->translate('shop', 'change_password') }}</a>
    </div>
  </ul>
@endsection

@section('right')
  <ul class="member-info change-pwd">
    {!! Form::open(['route' => 'member.update-pwd', 'class'=>'form-horizontal mt-20']) !!}
    <div class="mb-15 col-md-12 pl-10 pr-10">
      <div class="form-title mb-10"><span class="pr-5" style="color:red;">*</span>{{ inject('setting')->translate('shop', 'initial_password') }}：</div>
      <div class="form-input">
        <input class="form-control len-full" name="old_password" type="password">
      </div>
    </div>
    <div class="mb-15 col-md-12 pl-10 pr-10">
      <div class="form-title mb-10"><span class="pr-5" style="color:red;">*</span>{{ inject('setting')->translate('shop', 'change_password') }}：</div>
      <div class="form-input">
        <input class="form-control len-full" name="password" type="password">
      </div>
    </div>
    <div class="mb-15 col-md-12 pl-10 pr-10">
      <div class="form-title mb-10"><span class="pr-5" style="color:red;">*</span>{{ inject('setting')->translate('shop', 'confirm_password') }}：</div>
      <div class="form-input">
        <input class="form-control len-full" name="password_confirmation" type="password">
      </div>
    </div>
    <div class="mb-15 col-md-12 pl-10 pr-10">
      <div class="form-input">
        <button type="submit" class="btn btn-primary">{{ inject('setting')->translate('shop', 'submit') }}</button>
      </div>
    </div>
    {!! Form::close() !!}
  </ul>
@stop