details.blade.php 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. @extends('layouts.master')
  2. @section('content')
  3. <!-- DataTables -->
  4. <link rel="stylesheet" href="{{ asset('/assets/') }}/css/dataTables.bootstrap.min.css">
  5. <link rel="stylesheet" href="{{ asset('/assets/') }}/switch/rcswitcher.css">
  6. <link rel="stylesheet" href="{{ asset('/assets/') }}/alert/pnotify.css">
  7. <link rel="stylesheet" href="{{ asset('/assets/') }}/alert/sweetalert.css">
  8. <link rel="stylesheet" href="{{ asset('/assets/') }}/alert/sweet-alert-animations.css">
  9. <div class="row">
  10. <div class="col-md-8 col-md-offset-2">
  11. <div class="panel panel-default">
  12. <!-- Default panel contents -->
  13. <div class="panel-heading"></div>
  14. <header class="panel-heading" style="height:50px;">
  15. <div class="pull-left">
  16. {{$title}}
  17. </div>
  18. <div>
  19. <a style="margin-right: 5px" href="{{ url('admin/notice_board') }}" class="btn btn-sm btn-info pull-right"><i class="fa fa-plus"></i> back</a> <br><br>
  20. <!-- <a href="{{ url('admin/notice_board') }}" class="btn btn-sm btn-info pull-right"><i class="fa fa-list"></i> Notice Board</a> <a style="margin-right: 5px" href="{{ url('admin/notice_board/add') }}" class="btn btn-sm btn-info pull-right"><i class="fa fa-plus"></i> Add Notice</a> <br><br> -->
  21. </div>
  22. </header>
  23. <div class="panel-body">
  24. <div class="mailbox-read-info">
  25. <h3> {{ $notice->notice_title }} </h3>
  26. <h5>From: <b>{{ $notice->name }}</b>
  27. <span class="mailbox-read-time pull-right"> {{ date('d/m/Y', strtotime($notice->created_at)) }}</span></h5>
  28. </div>
  29. <!-- /.mailbox-controls -->
  30. <div class="mailbox-read-message">
  31. @php $user_name = \Auth::user()->name; @endphp
  32. <p>Hello {{ $user_name }},</p>
  33. <p>{{ $notice->description }}</p>
  34. <p>Thanks,<br>{{ $notice->name }}</p>
  35. </div>
  36. <!-- /.mailbox-read-message -->
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="modal fade" id="modalPreview">
  42. <div class="modal-dialog" style='width: 70%;'>
  43. </div>
  44. </div>
  45. @stop
  46. @section('style')
  47. <style>
  48. .modal-dialog {
  49. width: 70% !important;
  50. height: 70% !important;
  51. }
  52. .modal-content {
  53. height: auto;
  54. min-height: 70% !important;
  55. border-radius: 0;
  56. }
  57. </style>
  58. @stop
  59. @section('script')
  60. <script src="{{ asset('/assets/') }}/js/jquery.dataTables.min.js"></script>
  61. <script src="{{ asset('/assets/') }}/js/dataTables.bootstrap.min.js"></script>
  62. <script src="{{ asset('/assets/') }}/switch/rcswitcher.js"></script>
  63. <script src="{{ asset('/assets/') }}/alert/sweetalert.min.js"></script>
  64. <script src="{{ asset('/assets/') }}/alert/pnotify-init.js"></script>
  65. <script src="{{ asset('/assets/') }}/alert/notify.js"></script>
  66. <script type="text/javascript">
  67. $(document).ready(function(){
  68. $('[data-toggle="tooltip"]').tooltip();
  69. $("input[type='checkbox']").rcSwitcher();
  70. });
  71. $(document).ready(function() {
  72. $('body').on('hidden.bs.modal', '.modal', function () {
  73. $(this).removeData('bs.modal');
  74. });
  75. var table=$("#example").DataTable({
  76. "searching": true,
  77. "lengthChange": false,
  78. "info": false,
  79. "paging": false,
  80. "ordering": false,
  81. "showNEntries": false
  82. });
  83. $("input[type='checkbox']").rcSwitcher().on({'toggle.rcSwitcher': function( e, dataObj, changeType ){
  84. var id = $(this).data('id');
  85. var urll="{{ url('admin/education_level/status') }}/"+id;
  86. var msg_success = 'Status Updated Successfully.';
  87. var msg_error = 'Something went wrong!';
  88. $.ajax({
  89. url:urll,
  90. success: function(data){
  91. notify('success',msg_success);
  92. },
  93. error: function (data) {
  94. notify('error',msg_error);
  95. }
  96. });
  97. },
  98. });
  99. });
  100. </script>
  101. @if(Session::has('msg'))
  102. <div class="alert alert-success center-block msg_alt" >
  103. <a class="close" data-dismiss="alert" href="#">&times;</a>
  104. <strong><i class="fa fa-check"></i></strong>&nbsp;
  105. {{Session::get('msg')}}
  106. </div>
  107. @endif
  108. @stop