Файловый менеджер - Редактировать - /home/clickysoft/public_html/securebeans.clickysoft.net/resources/views/frontend/home.blade.php
Назад
@if(isset($customer)) @php $reciever_id=$customer->employee->user_id; @endphp @else @php $reciever_id='null'; @endphp @endif @extends('layouts.frontend') @section('content') <div class="row justify-content-center mt-5"> <div class="col-md-8"> <div class="card"> <div class="card-header"> <div class="row justify-content-center"> <h5>License</h5> </div> </div> <div class="card-body"> @if($license->isEmpty()) <div class="alert alert-danger"><h5>No current License Available</h5></div> @else <div class="card"> <table class="table"> <thead class="thead-light"> <tr> <th scope="col">Id</th> <th scope="col">Product</th> <th scope="col">Start Date</th> <th scope="col">End Date</th> </tr> </thead> <tbody> @foreach($license as $license) <tr> <th scope="row">{{$license->id}}</th> <td>{{$license->product->product_name}}</td> <td>{{$license->start_date}}</td> <td>{{$license->end_date}}</td> </tr> @endforeach </tbody> </table> </div> @endif </div> <div class="row justify-content-center"> <p>Having any trouble? Please Contact us here</p> </div> <div class="row main_msg_box_border1a_new main_msg_box_border1a_new2154ac"> <div class="col-md-12 col-sm-12 col-xs-12 no_spac1"> <div class="scrollbar" id="style-1"> <div class="force-overflow"> @foreach($messages as $message) <div class="main_msg_box_border2"> <div class="main_msg_box_border2a"> @if($message->sender_id==auth()->user()->id) <h4>Me:</h4> @else <h4>Staff:</h4> @endif <p>{{$message->message}}</p> </div> </div> @endforeach <div id="chat-box"> </div> </div> </div> </div> <div class="for_next_field col-md-12"> <div classs="row"> <div class="col-md-12 col-sm-12 col-12"> <div class="st_fding"> <div class="cpr_pic"> <img src="images/cp4.png" alt=""> </div> <div class="for_fld_sc1"> <input type="text" name="text_data"> <i class="fa fa-paper-plane" aria-hidden="true" id="submit"></i> </div> </div> </div> </div> </div> </div> </div> </div> @endsection @section('scripts') <script type="text/javascript"> //send messages var reciever_id={{$reciever_id}}; $('select').on('change', function() { reciever_id=this.value }); $(document).on('click','#submit',function(){ if(reciever_id==null){ alert("please select reciept"); } else{ let message= $("input[name=text_data]").val(); if(message.length==0){ alert("Message cannot be empty") } else{ $.ajax({ type:"post", url:"{{route('frontend.send-messages')}}", headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')}, data:{sender_id:{{auth()->user()->id}},reciever_id:reciever_id,message:message}, success:function(response){ if(response.status){ $("input[name=text_data]").val(''); $('#chat-box').append(' <div class="main_msg_box_border2">'+ '<div class="main_msg_box_border2a">'+ '<h4>Me:</h4>'+ '<p>'+message+'</p>'+ '</div>'+ '</div>') } else{ alert("Message not sent") } } }) } } }) </script> @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка