<div class="content-wrapper">
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 class="text-indigo">
                        <go-back/>
                        <i class="fas fa-envelope"></i> {{createButton.heading}}
                    </h1>
                </div>
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a ng-href="{{baseurl}}/dashboard">Home</a></li>
                        <li class="breadcrumb-item"><a ng-href="{{baseurl}}/clientappreciations/list">Client Appreciations</a></li>
                        <li class="breadcrumb-item active">Add</li>
                    </ol>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-sm-12">
                <div class="card card-indigo card-outline">
                    <div class="card-body">
                        <div class="row">
                            <div class="col-sm-12 col-md-6">
                                <div class="form-group">
                                    <div class="custom-control custom-switch custom-switch-off-danger custom-switch-on-success">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label for="project_name">Project Name</label>
                                    <input type="text" id="project_name" class="form-control" $scope.$root.gUser.id ng-model="appreciation.project_name" placeholder="Project Name">
                                </div>
								<div class="form-group">
                                    <label for="apricated_on">Appreciated On</label>
                                   <input type=text date-picker
                                           placeholder='Appreciated On(YYYY-MM-DD)'
                                           dateformat='dd-mm-yy'
                                           default='appreciation.apricated_on' 
                                           class='form-control' id="apricated_on"
                                           ng-model='appreciation.apricated_on'>
                                </div>
								<div class="form-group">
                                    <label for="apricated_by">Appreciated By</label>
                                    <input type="text" id="apricated_by" class="form-control"  ng-model="appreciation.apricated_by" placeholder="Appreciated By">
                                </div>
                                <div class="form-group">
                                    <label for="team_members_name">Team Members Name</label>
                                    <input type="text" id="team_members_name" class="form-control"  ng-model="appreciation.team_members_name" placeholder="Team Members Name">
                                </div>
								<div class="form-group">
                                    <label for="screenshot">Screenshot of appreciated</label>
								<input type="file" file-model="appreciation.screenshot" id="screenshot"  class="form-control fileinput">
								</div>
                                <div class="form-group">
                                    <label for="notes">Notes if any</label>
                                    <textarea class="form-control" rows="2" id="notes" ng-model="appreciation.notes" placeholder="Notes"></textarea>
                                </div>								
                            </div>
                            </div>
                        </div>
                    </div>
                    <div class="card-footer">
                        <div class="col-12">
                            <button type="button" class="btn btn-secondary" data-toggle="modal" data-target="#modal-default">Cancel</button>
                            <button type="submit" ng-click="createAppreciation()" class="btn btn-success float-right">
                                <i class="fas {{createButton.icon}}"></i> {{createButton.text}}
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <div class="modal fade" id="modal-default">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-body">
                    <p>Are you sure to leave this page!</p>
                </div>
                <div class="modal-footer justify-content-between">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    <button type="button" class="btn btn-indigo" data-dismiss="modal" ng-click="goTo($event,'appreciationList')">Proceed</button>
                </div>
            </div>
        </div>
    </div>
</div>
