@extends('admin.app_main') @section('content')
Performance Appraisal
@if (session('success'))
{{ session('success') }}
@endif @if(count($performance))

{{ $performance->last()->user->name}} {{ $performance->last()->user->surname}}

{!! $performance->last()->content !!} @else NO PERFORMANCE APPRAISALS @endif
{{ csrf_field() }}
@if ($errors->has('content')) {{ $errors->first('content') }} @endif
@endsection @section('javascript') $(document).ready( function() { function gup(name) { url = location.href; name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); var regexS = "[\\?&]"+name+"=([^&#]*)"; var regex = new RegExp( regexS ); var results = regex.exec( url ); return results == null ? null : results[1]; } $(function () { if(gup('edit')){ $('.show_text').hide(); $('.show_form').show(); }else{ $('.show_text').show(); $('.show_form').hide(); } }); $('.edit_button').on('click',function(){ window.location.href = location.href + "?edit=1"; }); $("#content").summernote(); }); @endsection