@extends('layouts.site')
@section('meta_title', 'Edit Profile')
@section('content_header')
    @include('partials._components._heading', ['heading' => 'Edit Profile'])
@endsection
@section('content')

    <section class="container">
        <div class="row">
            <div class="col-md-4">
                @include('partials._components._user-menu')
            </div>
            <div class="col-md-8">
                <div class="panel panel-default mt-4 mb-4">
                    <div class="panel-heading">
                        <div class="clearfix">
                            <strong class="panel-title pull-left" style="padding-top: 4px; text-shadow: 1px 1px 0 #fff;">{{ auth()->user()->fullName() }}</strong>
                            <div class="btn-group pull-right">
                                <a href="{{ route('participant.profile.show') }}" class="btn btn-sm btn-default"><span class="fa fa-user-circle-o"></span> View Profile</a>
                                <a href="{{ route('participant.password.edit') }}" class="btn btn-sm btn-default"><span class="fa fa-key"></span> Change Password</a>
                            </div>
                        </div>
                    </div>
                    <div class="panel-body">
                        {!! form($form) !!}
                    </div>
                </div>
            </div>
        </div>
    </section>

@endsection

@section('js')
    @parent
    <script type="text/javascript">
      jQuery(function($) {
        var icons = {
          time: "fa fa-clock-o",
          date: "fa fa-calendar",
          up: "fa fa-arrow-up",
          down: "fa fa-arrow-down",
          previous: 'fa fa-chevron-left',
          next: 'fa fa-chevron-right',
          today: 'fa fa-calendar-times-o',
          clear: 'fa fa-trash',
          close: 'fa fa-remove'
        };

        $('.datetimepicker').datetimepicker({
          format: 'MM/DD/YYYY HH:mm:ss',
          icons: icons
        });

        $('.datepicker').datetimepicker({
          format: 'MM/DD/YYYY',
          icons: icons
        });
      });
    </script>
@endsection
