Pārlūkot izejas kodu

added websocket support

Josh Kamau 5 gadi atpakaļ
vecāks
revīzija
0799d20898

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 11 - 0
public/css/lumen.min.css


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 0
public/js/sockjs.min.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 7 - 0
public/js/stomp.min.js


+ 33 - 0
resources/views/layouts/login.blade.php

@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta http-equiv="X-UA-Compatible" content="ie=edge">
+    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
+    <link rel="stylesheet" href="{{asset('css/lumen.min.css')}}">
+    <link rel="stylesheet" href="{{asset('css/toastr.min.css')}}">
+
+    <script src="{{asset('js/jquery-3.2.1.min.js')}}"></script>
+    <script src="{{asset('js/jquery-ui.min.js')}}"></script>
+    <script src="{{asset('js/jquery.form.js')}}"></script>
+    <script src="{{asset('js/toastr.min.js')}}"></script>
+
+    <title>Document</title>
+</head>
+
+<body>
+   
+    <div class="container-fluid">
+        <div class="row">
+            <div class="col-md-12 pt-2">
+                @yield('content')
+            </div>
+        </div>
+    </div>
+
+    <script src="{{asset('js/moe.js')}}"></script>
+</body>
+
+</html>

+ 43 - 2
resources/views/layouts/pro.blade.php

@@ -5,7 +5,8 @@
     <meta charset="UTF-8">
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <meta http-equiv="X-UA-Compatible" content="ie=edge">
-
+    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
+    <link rel="stylesheet" href="{{asset('css/lumen.min.css')}}">
     <link rel="stylesheet" href="{{asset('css/toastr.min.css')}}">
 
     <script src="{{asset('js/jquery-3.2.1.min.js')}}"></script>
@@ -13,12 +14,52 @@
     <script src="{{asset('js/jquery.form.js')}}"></script>
     <script src="{{asset('js/toastr.min.js')}}"></script>
 
+    <script src="{{asset('js/sockjs.min.js')}}"></script>
+
+    <script src="{{asset('js/stomp.min.js')}}"></script>
+
     <title>Document</title>
 </head>
 
 <body>
-    @yield('content')
+    <nav class="navbar navbar-expand-sm navbar-dark bg-primary">
+        <a class="navbar-brand" href="#">Stag</a>
+        <button class="navbar-toggler d-lg-none" type="button" data-toggle="collapse" data-target="#collapsibleNavId"
+            aria-controls="collapsibleNavId" aria-expanded="false" aria-label="Toggle navigation"></button>
+        <div class="collapse navbar-collapse" id="collapsibleNavId">
+            <ul class="navbar-nav mr-auto mt-2 mt-lg-0">
+                <li class="nav-item active">
+                    <a class="nav-link" href="{{route('pro-dashboard')}}">Dashboard <span
+                            class="sr-only">(current)</span></a>
+                </li>
+                <li class="nav-item">
+                    <a class="nav-link" href="{{route('pro-index')}}">Pros</a>
+                </li>
+            </ul>
+            <form class="form-inline my-2 my-lg-0">
+                <input class="form-control mr-sm-2" type="text" placeholder="Search">
+                <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
+            </form>
+            <ul class="navbar-nav mt-2">
+                <li class="nav-item">
+                    <a class="nav-link" href="{{route('pro-logout')}}">Log out</a>
+                </li>
+            </ul>
+        </div>
+    </nav>
+
+    <div class="container-fluid">
+        <div class="row">
+            <div class="col-md-12 pt-2">
+                @yield('content')
+            </div>
+        </div>
+    </div>
+
+  
+
     <script src="{{asset('js/moe.js')}}"></script>
+
 </body>
 
 </html>

+ 69 - 58
resources/views/pro/create.blade.php

@@ -1,63 +1,74 @@
 @extends('layouts.pro')
 @section('content')
-<h1>Create pro</h1>
-<div moe>
-    <form url="/api/pro/create" redir="/pros/show/" method="POST">
-        <div class="form-group">
-            <label class="control-label">cellNumber</label>
-            <input type=cellNumber"text" class="form-control">
+<div class="card">
+    <div class="card-header">
+        Create pro
+    </div>
+    <div class="card-body">
+        <div moe>
+            <form url="/api/pro/create" redir="/pros/show/" method="POST">
+                <div class="form-group">
+                    <label class="control-label">cellNumber</label>
+                    <input type=cellNumber"text" class="form-control">
+                </div>
+                <div class="form-group">
+                    <label class="control-label">emailAddress</label>
+                    <input name="emailAddress" type="email" class="form-control">
+                </div>
+                <div class="form-group">
+                    <label class="control-label">nameDisplay</label>
+                    <input type="text" name="name.nameDisplay" class="form-control">
+                </div>
+                <div class="form-group">
+                    <label class="control-label">namePrefix</label>
+                    <input type="text" name="name.namePrefix" class="form-control">
+                </div>
+                <div class="form-group">
+                    <label class="control-label">nameFirst</label>
+                    <input type="text" name="name.nameFirst" class="form-control">
+                </div>
+                <div class="form-group">
+                    <label class="control-label">nameMiddle</label>
+                    <input type="text" name="name.nameMiddle" class="form-control">
+                </div>
+                <div class="form-group">
+                    <label class="control-label">nameLast</label>
+                    <input type="text" name="name.nameLast" class="form-control">
+                </div>
+                <div class="form-group">
+                    <label class="control-label">nameSuffix</label>
+                    <input type="text" name="name.nameSuffix" class="form-control">
+                </div>
+                <div class="form-group">
+                    <label class="control-label">nameCredential</label>
+                    <input type="text" name="name.nameCredential" class="form-control">
+                </div>
+                <div class="form-group">
+                    <div class="checkbox">
+                        <label class="control-label">isHcp</label>
+                        <input name="isHcp" type="checkbox">
+                    </div>
+                </div>
+                <div class="form-group">
+                    <label class="control-label">hcpNpi</label>
+                    <input name="hcpNpi" type="text" class="form-control">
+                </div>
+                <div class="form-group">
+                    <label class="control-label">previousProfessionCategory</label>
+                    <input name="previousProfessionCategory" type="text" class="form-control">
+                </div>
+                <div class="form-group">
+                    <label class="control-label">currentProfessionCategory</label>
+                    <input name="currentProfessionCategory" type="text" class="form-control">
+                </div>
+                <div class="form-group">
+                    <button submit class="btn btn-primary">Submit</button>
+                </div>
+            </form>
         </div>
-        <div class="form-group">
-            <label class="control-label">emailAddress</label>
-            <input name="emailAddress" type="email" class="form-control">
-        </div>
-        <div class="form-group">
-            <label class="control-label">nameDisplay</label>
-            <input type="text" name="name.nameDisplay" class="form-control">
-        </div>
-        <div class="form-group">
-            <label class="control-label">namePrefix</label>
-            <input type="text" name="name.namePrefix" class="form-control">
-        </div>
-        <div class="form-group">
-            <label class="control-label">nameFirst</label>
-            <input type="text" name="name.nameFirst" class="form-control">
-        </div>
-        <div class="form-group">
-            <label class="control-label">nameMiddle</label>
-            <input type="text" name="name.nameMiddle" class="form-control">
-        </div>
-        <div class="form-group">
-            <label class="control-label">nameLast</label>
-            <input type="text" name="name.nameLast" class="form-control">
-        </div>
-        <div class="form-group">
-            <label class="control-label">nameSuffix</label>
-            <input type="text" name="name.nameSuffix" class="form-control">
-        </div>
-        <div class="form-group">
-            <label class="control-label">nameCredential</label>
-            <input type="text" name="name.nameCredential" class="form-control">
-        </div>
-        <div class="form-group">
-            <label class="control-label">isHcp</label>
-            <input name="isHcp" type="checkbox" class="form-control">
-        </div>
-        <div class="form-group">
-            <label class="control-label">hcpNpi</label>
-            <input name="hcpNpi" type="text" class="form-control">
-        </div>
-        <div class="form-group">
-            <label class="control-label">previousProfessionCategory</label>
-            <input name="previousProfessionCategory" type="text" class="form-control">
-        </div>
-        <div class="form-group">
-            <label class="control-label">currentProfessionCategory</label>
-            <input name="currentProfessionCategory" type="text" class="form-control">
-        </div>
-        <div class="form-group">
-            <button submit>Submit</button>
-        </div>
-    </form>
+    </div>
+
 </div>
+
+
 @endsection

+ 64 - 0
resources/views/pro/dashboard.blade.php

@@ -21,4 +21,68 @@
         <button cancel>Cancel</button>
     </form>
 </div>
+<script>
+var stompClient = null;
+
+function setConnected(connected) {
+    console.log("User is connected");
+    $("#connect").prop("disabled", connected);
+    $("#disconnect").prop("disabled", !connected);
+    if (connected) {
+        $("#conversation").show();
+    }
+    else {
+        $("#conversation").hide();
+    }
+    $("#greetings").html("");
+}
+
+function connect() {
+    console.log("connecting...");
+    var socket = new SockJS('http://localhost:8080/ws');
+    stompClient = Stomp.over(socket);
+    stompClient.connect({}, function (frame) {
+        console.log("Connected");
+        setConnected(true);
+        console.log('Connected: ' + frame);
+
+        stompClient.send("/app/update-participant-status", {}, JSON.stringify({meetingUid:"mymeetinguid", status:'mystatus'}));
+
+        stompClient.subscribe('/user/topic/on-participant-status-change', function (message) {
+            console.log("Participant status changed: ", message);
+        });
+
+        stompClient.subscribe("/user/topic/incoming-call", function(message){
+            console.log("incoming call:", message);
+        });
+    });
+}
+
+connect();
+
+function disconnect() {
+    if (stompClient !== null) {
+        stompClient.disconnect();
+    }
+    setConnected(false);
+    console.log("Disconnected");
+}
+
+function sendName() {
+    stompClient.send("/app/hello", {}, JSON.stringify({'name': $("#name").val()}));
+}
+
+function showGreeting(message) {
+    $("#greetings").append("<tr><td>" + message + "</td></tr>");
+}
+
+$(function () {
+    $("form").on('submit', function (e) {
+        e.preventDefault();
+    });
+    $( "#connect" ).click(function() { connect(); });
+    $( "#disconnect" ).click(function() { disconnect(); });
+    $( "#send" ).click(function() { sendName(); });
+});
+</script>
 @endsection

+ 52 - 184
resources/views/pro/index.blade.php

@@ -1,187 +1,55 @@
-<!DOCTYPE html>
-<html lang="en">
+@extends('layouts.pro')
+@section('content')
 
-<head>
-    <meta charset="UTF-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <meta http-equiv="X-UA-Compatible" content="ie=edge">
-    <title>Document</title>
-</head>
+<div class="d-flex mb-2">
+    <div><i class="fa fa-users" aria-hidden="true"></i> Pros</div>
+    <div class="ml-auto">
+        <a class="btn btn-primary btn-sm" href="{{route('pro-create')}}">
+            <i class="fa fa-plus-circle" aria-hidden="true"></i>
+            Add new
+        </a>
+    </div>
+</div>
 
-<body>
-    <a href="{{route('pro-create')}}">Add new</a>
-    <table>
-        <thead>
-            <tr>
-                <th>id</th>
-                <th>balance</th>
-                <th>cell_number</th>
-                <th>cell_number_confirmation_token</th>
-                <th>cell_number_confirmed_at</th>
-                <th>current_profession_category</th>
-                <th>driver_license_expiration_date</th>
-                <th>driver_license_file_path</th>
-                <th>driver_license_issue_date</th>
-                <th>driver_license_state</th>
-                <th>email_address</th>
-                <th>email_address_confirmation_token</th>
-                <th>email_address_confirmed_at</th>
-                <th>enrolled_hcp_category</th>
-                <th>enrolled_hcp_npi</th>
-                <th>enrolled_hcp_subcategory</th>
-                <th>hcp_category</th>
-                <th>hcp_npi</th>
-                <th>hcp_subcategory</th>
-                <th>home_address_city</th>
-                <th>home_address_country</th>
-                <th>home_address_lat</th>
-                <th>home_address_line1</th>
-                <th>home_address_line2</th>
-                <th>home_address_long</th>
-                <th>home_address_state</th>
-                <th>home_address_zip</th>
-                <th>home_phone_number</th>
-                <th>is_cell_number_confirmation_pending</th>
-                <th>is_cell_number_confirmed</th>
-                <th>is_email_address_confirmation_pending</th>
-                <th>is_email_address_confirmed</th>
-                <th>is_enrolled_as_hcp</th>
-                <th>is_enrolled_as_mcp</th>
-                <th>is_hcp</th>
-                <th>mailing_address_city</th>
-                <th>mailing_address_country</th>
-                <th>mailing_address_lat</th>
-                <th>mailing_address_line1</th>
-                <th>mailing_address_line2</th>
-                <th>mailing_address_long</th>
-                <th>mailing_address_state</th>
-                <th>mailing_address_zip</th>
-                <th>name_credential</th>
-                <th>name_display</th>
-                <th>name_first</th>
-                <th>name_last</th>
-                <th>name_middle</th>
-                <th>name_prefix</th>
-                <th>name_suffix</th>
-                <th>payment_processing_detail</th>
-                <th>phone_numbers_memo</th>
-                <th>previous_profession_category</th>
-                <th>pro_type</th>
-                <th>profile_picture_base64</th>
-                <th>ssn</th>
-                <th>supporter_memo</th>
-                <th>supporter_phone_number</th>
-                <th>w9detail</th>
-                <th>work_phone_number</th>
-                <th>created_at</th>
-                <th>uid</th>
-                <th>created_by_session_id</th>
-                <th>is_two_step_sms_auth_completed</th>
-                <th>is_two_step_sms_auth_pending</th>
-                <th>two_step_sms_auth_completed_at</th>
-                <th>two_step_sms_auth_token</th>
-                <th>two_step_sms_auth_token_sent_at</th>
-                <th>is_sms_auth_pending</th>
-                <th>sms_auth_completed</th>
-                <th>sms_auth_completed_at</th>
-                <th>sms_auth_token</th>
-                <th>sms_auth_token_sent_at</th>
-                <th>deactivated_at</th>
-                <th>deactivation_memo</th>
-                <th>reactivated_at</th>
-                <th>reactivation_memo</th>
-                <th>deactivated_by_id</th>
-                <th>reactivated_by_id</th>
-                <th>is_active</th>
-            </tr>
-        </thead>
-        <tbody>
-            @foreach($pros as $pro)
-            <tr>
-                <td>{{$pro->id}}</td>
-                <td>{{$pro->balance}}</td>
-                <td>{{$pro->cell_number}}</td>
-                <td>{{$pro->cell_number_confirmation_token}}</td>
-                <td>{{$pro->cell_number_confirmed_at}}</td>
-                <td>{{$pro->current_profession_category}}</td>
-                <td>{{$pro->driver_license_expiration_date}}</td>
-                <td>{{$pro->driver_license_file_path}}</td>
-                <td>{{$pro->driver_license_issue_date}}</td>
-                <td>{{$pro->driver_license_state}}</td>
-                <td>{{$pro->email_address}}</td>
-                <td>{{$pro->email_address_confirmation_token}}</td>
-                <td>{{$pro->email_address_confirmed_at}}</td>
-                <td>{{$pro->enrolled_hcp_category}}</td>
-                <td>{{$pro->enrolled_hcp_npi}}</td>
-                <td>{{$pro->enrolled_hcp_subcategory}}</td>
-                <td>{{$pro->hcp_category}}</td>
-                <td>{{$pro->hcp_npi}}</td>
-                <td>{{$pro->hcp_subcategory}}</td>
-                <td>{{$pro->home_address_city}}</td>
-                <td>{{$pro->home_address_country}}</td>
-                <td>{{$pro->home_address_lat}}</td>
-                <td>{{$pro->home_address_line1}}</td>
-                <td>{{$pro->home_address_line2}}</td>
-                <td>{{$pro->home_address_long}}</td>
-                <td>{{$pro->home_address_state}}</td>
-                <td>{{$pro->home_address_zip}}</td>
-                <td>{{$pro->home_phone_number}}</td>
-                <td>{{$pro->is_cell_number_confirmation_pending}}</td>
-                <td>{{$pro->is_cell_number_confirmed}}</td>
-                <td>{{$pro->is_email_address_confirmation_pending}}</td>
-                <td>{{$pro->is_email_address_confirmed}}</td>
-                <td>{{$pro->is_enrolled_as_hcp}}</td>
-                <td>{{$pro->is_enrolled_as_mcp}}</td>
-                <td>{{$pro->is_hcp}}</td>
-                <td>{{$pro->mailing_address_city}}</td>
-                <td>{{$pro->mailing_address_country}}</td>
-                <td>{{$pro->mailing_address_lat}}</td>
-                <td>{{$pro->mailing_address_line1}}</td>
-                <td>{{$pro->mailing_address_line2}}</td>
-                <td>{{$pro->mailing_address_long}}</td>
-                <td>{{$pro->mailing_address_state}}</td>
-                <td>{{$pro->mailing_address_zip}}</td>
-                <td>{{$pro->name_credential}}</td>
-                <td>{{$pro->name_display}}</td>
-                <td>{{$pro->name_first}}</td>
-                <td>{{$pro->name_last}}</td>
-                <td>{{$pro->name_middle}}</td>
-                <td>{{$pro->name_prefix}}</td>
-                <td>{{$pro->name_suffix}}</td>
-                <td>{{$pro->payment_processing_detail}}</td>
-                <td>{{$pro->phone_numbers_memo}}</td>
-                <td>{{$pro->previous_profession_category}}</td>
-                <td>{{$pro->pro_type}}</td>
-                <td>{{$pro->profile_picture_base64}}</td>
-                <td>{{$pro->ssn}}</td>
-                <td>{{$pro->supporter_memo}}</td>
-                <td>{{$pro->supporter_phone_number}}</td>
-                <td>{{$pro->w9detail}}</td>
-                <td>{{$pro->work_phone_number}}</td>
-                <td>{{$pro->created_at}}</td>
-                <td>{{$pro->uid}}</td>
-                <td>{{$pro->created_by_session_id}}</td>
-                <td>{{$pro->is_two_step_sms_auth_completed}}</td>
-                <td>{{$pro->is_two_step_sms_auth_pending}}</td>
-                <td>{{$pro->two_step_sms_auth_completed_at}}</td>
-                <td>{{$pro->two_step_sms_auth_token}}</td>
-                <td>{{$pro->two_step_sms_auth_token_sent_at}}</td>
-                <td>{{$pro->is_sms_auth_pending}}</td>
-                <td>{{$pro->sms_auth_completed}}</td>
-                <td>{{$pro->sms_auth_completed_at}}</td>
-                <td>{{$pro->sms_auth_token}}</td>
-                <td>{{$pro->sms_auth_token_sent_at}}</td>
-                <td>{{$pro->deactivated_at}}</td>
-                <td>{{$pro->deactivation_memo}}</td>
-                <td>{{$pro->reactivated_at}}</td>
-                <td>{{$pro->reactivation_memo}}</td>
-                <td>{{$pro->deactivated_by_id}}</td>
-                <td>{{$pro->reactivated_by_id}}</td>
-                <td>{{$pro->is_active}}</td>
-            </tr>
-            @endforeach
-        </tbody>
-    </table>
-</body>
+<table class="table table-sm">
+    <thead class="thead-light">
+        <tr>
+            <th>#</th>
+            <th>cell_number</th>
 
-</html>
+            <th>email_address</th>
+
+            <th>name_credential</th>
+            <th>name_display</th>
+            <th>name_first</th>
+            <th>name_last</th>
+            <th>name_middle</th>
+            <th>name_prefix</th>
+            <th>name_suffix</th>
+            <th>is_active</th>
+        </tr>
+    </thead>
+    <tbody>
+        @foreach($pros as $pro)
+        <tr>
+            <td>{{$pro->id}}</td>
+
+            <td><a href="{{route('pro-show', $pro->uid)}}">{{$pro->cell_number}}</a></td>
+
+            <td><a href="{{route('pro-show', $pro->uid)}}">{{$pro->email_address}}</a></td>
+
+            <td>{{$pro->name_credential}}</td>
+            <td>{{$pro->name_display}}</td>
+            <td>{{$pro->name_first}}</td>
+            <td>{{$pro->name_last}}</td>
+            <td>{{$pro->name_middle}}</td>
+            <td>{{$pro->name_prefix}}</td>
+            <td>{{$pro->name_suffix}}</td>
+
+            <td>{{$pro->is_active}}</td>
+        </tr>
+        @endforeach
+    </tbody>
+</table>
+
+@endsection

+ 172 - 83
resources/views/pro/show.blade.php

@@ -1,87 +1,176 @@
 @extends('layouts.pro')
 @section('content')
-<h1>Pro details</h1>
-<div>
-    id: {{$pro->id}}</br>
-    balance: {{$pro->balance}}</br>
-    cell_number: {{$pro->cell_number}}</br>
-    cell_number_confirmation_token: {{$pro->cell_number_confirmation_token}}</br>
-    cell_number_confirmed_at: {{$pro->cell_number_confirmed_at}}</br>
-    current_profession_category: {{$pro->current_profession_category}}</br>
-    driver_license_expiration_date: {{$pro->driver_license_expiration_date}}</br>
-    driver_license_file_path: {{$pro->driver_license_file_path}}</br>
-    driver_license_issue_date: {{$pro->driver_license_issue_date}}</br>
-    driver_license_state: {{$pro->driver_license_state}}</br>
-    email_address: {{$pro->email_address}}</br>
-    email_address_confirmation_token: {{$pro->email_address_confirmation_token}}</br>
-    email_address_confirmed_at: {{$pro->email_address_confirmed_at}}</br>
-    enrolled_hcp_category: {{$pro->enrolled_hcp_category}}</br>
-    enrolled_hcp_npi: {{$pro->enrolled_hcp_npi}}</br>
-    enrolled_hcp_subcategory: {{$pro->enrolled_hcp_subcategory}}</br>
-    hcp_category: {{$pro->hcp_category}}</br>
-    hcp_npi: {{$pro->hcp_npi}}</br>
-    hcp_subcategory: {{$pro->hcp_subcategory}}</br>
-    home_address_city: {{$pro->home_address_city}}</br>
-    home_address_country: {{$pro->home_address_country}}</br>
-    home_address_lat: {{$pro->home_address_lat}}</br>
-    home_address_line1: {{$pro->home_address_line1}}</br>
-    home_address_line2: {{$pro->home_address_line2}}</br>
-    home_address_long: {{$pro->home_address_long}}</br>
-    home_address_state: {{$pro->home_address_state}}</br>
-    home_address_zip: {{$pro->home_address_zip}}</br>
-    home_phone_number: {{$pro->home_phone_number}}</br>
-    is_cell_number_confirmation_pending: {{$pro->is_cell_number_confirmation_pending}}</br>
-    is_cell_number_confirmed: {{$pro->is_cell_number_confirmed}}</br>
-    is_email_address_confirmation_pending: {{$pro->is_email_address_confirmation_pending}}</br>
-    is_email_address_confirmed: {{$pro->is_email_address_confirmed}}</br>
-    is_enrolled_as_hcp: {{$pro->is_enrolled_as_hcp}}</br>
-    is_enrolled_as_mcp: {{$pro->is_enrolled_as_mcp}}</br>
-    is_hcp: {{$pro->is_hcp}}</br>
-    mailing_address_city: {{$pro->mailing_address_city}}</br>
-    mailing_address_country: {{$pro->mailing_address_country}}</br>
-    mailing_address_lat: {{$pro->mailing_address_lat}}</br>
-    mailing_address_line1: {{$pro->mailing_address_line1}}</br>
-    mailing_address_line2: {{$pro->mailing_address_line2}}</br>
-    mailing_address_long: {{$pro->mailing_address_long}}</br>
-    mailing_address_state: {{$pro->mailing_address_state}}</br>
-    mailing_address_zip: {{$pro->mailing_address_zip}}</br>
-    name_credential: {{$pro->name_credential}}</br>
-    name_display: {{$pro->name_display}}</br>
-    name_first: {{$pro->name_first}}</br>
-    name_last: {{$pro->name_last}}</br>
-    name_middle: {{$pro->name_middle}}</br>
-    name_prefix: {{$pro->name_prefix}}</br>
-    name_suffix: {{$pro->name_suffix}}</br>
-    payment_processing_detail: {{$pro->payment_processing_detail}}</br>
-    phone_numbers_memo: {{$pro->phone_numbers_memo}}</br>
-    previous_profession_category: {{$pro->previous_profession_category}}</br>
-    pro_type: {{$pro->pro_type}}</br>
-    profile_picture_base64: {{$pro->profile_picture_base64}}</br>
-    ssn: {{$pro->ssn}}</br>
-    supporter_memo: {{$pro->supporter_memo}}</br>
-    supporter_phone_number: {{$pro->supporter_phone_number}}</br>
-    w9detail: {{$pro->w9detail}}</br>
-    work_phone_number: {{$pro->work_phone_number}}</br>
-    created_at: {{$pro->created_at}}</br>
-    uid: {{$pro->uid}}</br>
-    created_by_session_id: {{$pro->created_by_session_id}}</br>
-    is_two_step_sms_auth_completed: {{$pro->is_two_step_sms_auth_completed}}</br>
-    is_two_step_sms_auth_pending: {{$pro->is_two_step_sms_auth_pending}}</br>
-    two_step_sms_auth_completed_at: {{$pro->two_step_sms_auth_completed_at}}</br>
-    two_step_sms_auth_token: {{$pro->two_step_sms_auth_token}}</br>
-    two_step_sms_auth_token_sent_at: {{$pro->two_step_sms_auth_token_sent_at}}</br>
-    is_sms_auth_pending: {{$pro->is_sms_auth_pending}}</br>
-    sms_auth_completed: {{$pro->sms_auth_completed}}</br>
-    sms_auth_completed_at: {{$pro->sms_auth_completed_at}}</br>
-    sms_auth_token: {{$pro->sms_auth_token}}</br>
-    sms_auth_token_sent_at: {{$pro->sms_auth_token_sent_at}}</br>
-    deactivated_at: {{$pro->deactivated_at}}</br>
-    deactivation_memo: {{$pro->deactivation_memo}}</br>
-    reactivated_at: {{$pro->reactivated_at}}</br>
-    reactivation_memo: {{$pro->reactivation_memo}}</br>
-    deactivated_by_id: {{$pro->deactivated_by_id}}</br>
-    reactivated_by_id: {{$pro->reactivated_by_id}}</br>
-    is_active: {{$pro->is_active}}</br>
-   
+<div class="card">
+    <div class="card-header">
+        Pro details
+    </div>
+    <div class="card-body">
+        <div>
+            <dl class="row">
+                <dt class="col-md-2">id:</dt>
+                <dd class="col-md-10">{{$pro->id}}</dd>
+                <dt class="col-md-2">balance:</dt>
+                <dd class="col-md-10">{{$pro->balance}}</dd>
+                <dt class="col-md-2">cell_number:</dt>
+                <dd class="col-md-10">{{$pro->cell_number}}</dd>
+                <dt class="col-md-2">cell_number_confirmation_token:</dt>
+                <dd class="col-md-10">{{$pro->cell_number_confirmation_token}}</dd>
+                <dt class="col-md-2">cell_number_confirmed_at:</dt>
+                <dd class="col-md-10">{{$pro->cell_number_confirmed_at}}</dd>
+                <dt class="col-md-2">current_profession_category:</dt>
+                <dd class="col-md-10">{{$pro->current_profession_category}}</dd>
+                <dt class="col-md-2">driver_license_expiration_date:</dt>
+                <dd class="col-md-10">{{$pro->driver_license_expiration_date}}</dd>
+                <dt class="col-md-2">driver_license_file_path:</dt>
+                <dd class="col-md-10">{{$pro->driver_license_file_path}}</dd>
+                <dt class="col-md-2">driver_license_issue_date:</dt>
+                <dd class="col-md-10">{{$pro->driver_license_issue_date}}</dd>
+                <dt class="col-md-2">driver_license_state:</dt>
+                <dd class="col-md-10">{{$pro->driver_license_state}}</dd>
+                <dt class="col-md-2">email_address:</dt>
+                <dd class="col-md-10">{{$pro->email_address}}</dd>
+                <dt class="col-md-2">email_address_confirmation_token:</dt>
+                <dd class="col-md-10">{{$pro->email_address_confirmation_token}}</dd>
+                <dt class="col-md-2">email_address_confirmed_at:</dt>
+                <dd class="col-md-10">{{$pro->email_address_confirmed_at}}</dd>
+                <dt class="col-md-2">enrolled_hcp_category:</dt>
+                <dd class="col-md-10">{{$pro->enrolled_hcp_category}}</dd>
+                <dt class="col-md-2">enrolled_hcp_npi:</dt>
+                <dd class="col-md-10">{{$pro->enrolled_hcp_npi}}</dd>
+                <dt class="col-md-2">enrolled_hcp_subcategory:</dt>
+                <dd class="col-md-10">{{$pro->enrolled_hcp_subcategory}}</dd>
+                <dt class="col-md-2">hcp_category:</dt>
+                <dd class="col-md-10">{{$pro->hcp_category}}</dd>
+                <dt class="col-md-2">hcp_npi:</dt>
+                <dd class="col-md-10">{{$pro->hcp_npi}}</dd>
+                <dt class="col-md-2">hcp_subcategory:</dt>
+                <dd class="col-md-10">{{$pro->hcp_subcategory}}</dd>
+                <dt class="col-md-2">home_address_city:</dt>
+                <dd class="col-md-10">{{$pro->home_address_city}}</dd>
+                <dt class="col-md-2">home_address_country:</dt>
+                <dd class="col-md-10">{{$pro->home_address_country}}</dd>
+                <dt class="col-md-2">home_address_lat:</dt>
+                <dd class="col-md-10">{{$pro->home_address_lat}}</dd>
+                <dt class="col-md-2">home_address_line1:</dt>
+                <dd class="col-md-10">{{$pro->home_address_line1}}</dd>
+                <dt class="col-md-2">home_address_line2:</dt>
+                <dd class="col-md-10">{{$pro->home_address_line2}}</dd>
+                <dt class="col-md-2">home_address_long:</dt>
+                <dd class="col-md-10">{{$pro->home_address_long}}</dd>
+                <dt class="col-md-2">home_address_state:</dt>
+                <dd class="col-md-10">{{$pro->home_address_state}}</dd>
+                <dt class="col-md-2">home_address_zip:</dt>
+                <dd class="col-md-10">{{$pro->home_address_zip}}</dd>
+                <dt class="col-md-2">home_phone_number:</dt>
+                <dd class="col-md-10">{{$pro->home_phone_number}}</dd>
+                <dt class="col-md-2">is_cell_number_confirmation_pending:</dt>
+                <dd class="col-md-10">{{$pro->is_cell_number_confirmation_pending}}</dd>
+                <dt class="col-md-2">is_cell_number_confirmed:</dt>
+                <dd class="col-md-10">{{$pro->is_cell_number_confirmed}}</dd>
+                <dt class="col-md-2">is_email_address_confirmation_pending:</dt>
+                <dd class="col-md-10">{{$pro->is_email_address_confirmation_pending}}</dd>
+                <dt class="col-md-2">is_email_address_confirmed:</dt>
+                <dd class="col-md-10">{{$pro->is_email_address_confirmed}}</dd>
+                <dt class="col-md-2">is_enrolled_as_hcp:</dt>
+                <dd class="col-md-10">{{$pro->is_enrolled_as_hcp}}</dd>
+                <dt class="col-md-2">is_enrolled_as_mcp:</dt>
+                <dd class="col-md-10">{{$pro->is_enrolled_as_mcp}}</dd>
+                <dt class="col-md-2">is_hcp:</dt>
+                <dd class="col-md-10">{{$pro->is_hcp}}</dd>
+                <dt class="col-md-2">mailing_address_city:</dt>
+                <dd class="col-md-10">{{$pro->mailing_address_city}}</dd>
+                <dt class="col-md-2">mailing_address_country:</dt>
+                <dd class="col-md-10">{{$pro->mailing_address_country}}</dd>
+                <dt class="col-md-2">mailing_address_lat:</dt>
+                <dd class="col-md-10">{{$pro->mailing_address_lat}}</dd>
+                <dt class="col-md-2">mailing_address_line1:</dt>
+                <dd class="col-md-10">{{$pro->mailing_address_line1}}</dd>
+                <dt class="col-md-2">mailing_address_line2:</dt>
+                <dd class="col-md-10">{{$pro->mailing_address_line2}}</dd>
+                <dt class="col-md-2">mailing_address_long:</dt>
+                <dd class="col-md-10">{{$pro->mailing_address_long}}</dd>
+                <dt class="col-md-2">mailing_address_state:</dt>
+                <dd class="col-md-10">{{$pro->mailing_address_state}}</dd>
+                <dt class="col-md-2">mailing_address_zip:</dt>
+                <dd class="col-md-10">{{$pro->mailing_address_zip}}</dd>
+                <dt class="col-md-2">name_credential:</dt>
+                <dd class="col-md-10">{{$pro->name_credential}}</dd>
+                <dt class="col-md-2">name_display:</dt>
+                <dd class="col-md-10">{{$pro->name_display}}</dd>
+                <dt class="col-md-2">name_first:</dt>
+                <dd class="col-md-10">{{$pro->name_first}}</dd>
+                <dt class="col-md-2">name_last:</dt>
+                <dd class="col-md-10">{{$pro->name_last}}</dd>
+                <dt class="col-md-2">name_middle:</dt>
+                <dd class="col-md-10">{{$pro->name_middle}}</dd>
+                <dt class="col-md-2">name_prefix:</dt>
+                <dd class="col-md-10">{{$pro->name_prefix}}</dd>
+                <dt class="col-md-2">name_suffix:</dt>
+                <dd class="col-md-10">{{$pro->name_suffix}}</dd>
+                <dt class="col-md-2">payment_processing_detail:</dt>
+                <dd class="col-md-10">{{$pro->payment_processing_detail}}</dd>
+                <dt class="col-md-2">phone_numbers_memo:</dt>
+                <dd class="col-md-10">{{$pro->phone_numbers_memo}}</dd>
+                <dt class="col-md-2">previous_profession_category:</dt>
+                <dd class="col-md-10">{{$pro->previous_profession_category}}</dd>
+                <dt class="col-md-2">pro_type:</dt>
+                <dd class="col-md-10">{{$pro->pro_type}}</dd>
+                <dt class="col-md-2">profile_picture_base64:</dt>
+                <dd class="col-md-10">{{$pro->profile_picture_base64}}</dd>
+                <dt class="col-md-2">ssn:</dt>
+                <dd class="col-md-10">{{$pro->ssn}}</dd>
+                <dt class="col-md-2">supporter_memo:</dt>
+                <dd class="col-md-10">{{$pro->supporter_memo}}</dd>
+                <dt class="col-md-2">supporter_phone_number:</dt>
+                <dd class="col-md-10">{{$pro->supporter_phone_number}}</dd>
+                <dt class="col-md-2">w9detail:</dt>
+                <dd class="col-md-10">{{$pro->w9detail}}</dd>
+                <dt class="col-md-2">work_phone_number:</dt>
+                <dd class="col-md-10">{{$pro->work_phone_number}}</dd>
+                <dt class="col-md-2">created_at:</dt>
+                <dd class="col-md-10">{{$pro->created_at}}</dd>
+                <dt class="col-md-2">uid:</dt>
+                <dd class="col-md-10">{{$pro->uid}}</dd>
+                <dt class="col-md-2">created_by_session_id:</dt>
+                <dd class="col-md-10">{{$pro->created_by_session_id}}</dd>
+                <dt class="col-md-2">is_two_step_sms_auth_completed:</dt>
+                <dd class="col-md-10">{{$pro->is_two_step_sms_auth_completed}}</dd>
+                <dt class="col-md-2">is_two_step_sms_auth_pending:</dt>
+                <dd class="col-md-10">{{$pro->is_two_step_sms_auth_pending}}</dd>
+                <dt class="col-md-2">two_step_sms_auth_completed_at:</dt>
+                <dd class="col-md-10">{{$pro->two_step_sms_auth_completed_at}}</dd>
+                <dt class="col-md-2">two_step_sms_auth_token:</dt>
+                <dd class="col-md-10">{{$pro->two_step_sms_auth_token}}</dd>
+                <dt class="col-md-2">two_step_sms_auth_token_sent_at:</dt>
+                <dd class="col-md-10">{{$pro->two_step_sms_auth_token_sent_at}}</dd>
+                <dt class="col-md-2">is_sms_auth_pending:</dt>
+                <dd class="col-md-10">{{$pro->is_sms_auth_pending}}</dd>
+                <dt class="col-md-2">sms_auth_completed:</dt>
+                <dd class="col-md-10">{{$pro->sms_auth_completed}}</dd>
+                <dt class="col-md-2">sms_auth_completed_at:</dt>
+                <dd class="col-md-10">{{$pro->sms_auth_completed_at}}</dd>
+                <dt class="col-md-2">sms_auth_token:</dt>
+                <dd class="col-md-10">{{$pro->sms_auth_token}}</dd>
+                <dt class="col-md-2">sms_auth_token_sent_at:</dt>
+                <dd class="col-md-10">{{$pro->sms_auth_token_sent_at}}</dd>
+                <dt class="col-md-2">deactivated_at:</dt>
+                <dd class="col-md-10">{{$pro->deactivated_at}}</dd>
+                <dt class="col-md-2">deactivation_memo:</dt>
+                <dd class="col-md-10">{{$pro->deactivation_memo}}</dd>
+                <dt class="col-md-2">reactivated_at:</dt>
+                <dd class="col-md-10">{{$pro->reactivated_at}}</dd>
+                <dt class="col-md-2">reactivation_memo:</dt>
+                <dd class="col-md-10">{{$pro->reactivation_memo}}</dd>
+                <dt class="col-md-2">deactivated_by_id:</dt>
+                <dd class="col-md-10">{{$pro->deactivated_by_id}}</dd>
+                <dt class="col-md-2">reactivated_by_id:</dt>
+                <dd class="col-md-10">{{$pro->reactivated_by_id}}</dd>
+                <dt class="col-md-2">is_active:</dt>
+                <dd class="col-md-10">{{$pro->is_active}}</dd>
+            </dl>
+        </div>
+    </div>
 </div>
+
+
 @endsection

+ 1 - 1
resources/views/public/pro-request-sms-login-token.blade.php

@@ -1,4 +1,4 @@
-@extends('layouts.pro')
+@extends('layouts.login')
 @section('content')
 <h1>Pro request sms login token</h1>
 <div moe>

Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels