Parcourir la source

added isms on fe tree

Josh il y a 4 ans
Parent
commit
ec27b61d88

+ 19 - 0
app/Http/Controllers/isms_Controller.php

@@ -0,0 +1,19 @@
+<?php
+
+namespace App\Http\Controllers;
+
+use Illuminate\Http\Request;
+use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
+
+class isms_Controller extends Controller
+{
+    public $selfName = 'isms_Controller';
+    public $dashboardName = 'dashboard';
+
+	// GET /isms
+	public function index(Request $request) {
+		$records = DB::table('isms')->get();
+		return response()->view('admin/isms/index', compact('records'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+}

+ 1 - 0
generatecv/tree.txt

@@ -1603,3 +1603,4 @@ ADMIN
                 heading=heading
         SUB
             dashboard
+    isms|isms|view|icon:phone

+ 50 - 0
resources/views/admin/isms/index.blade.php

@@ -0,0 +1,50 @@
+@extends('layouts.pro-logged-in')
+@section('content')
+
+    <h3 class="d-flex my-3 px-3 stag-heading stag-heading-index">
+        <div>Isms: List</div>
+        <div class="ml-auto">
+            <!-- _ADD_NEW_LINK_ -->
+        </div>
+    </h3>
+
+    <div class="table-responsive p-0 bg-white border stag-table stag-table-index">
+        <table class="table table-hover text-nowrap table-striped">
+            <thead>
+            <tr>
+<th>&nbsp;</th>
+<th>Message</th>
+<th>To Number</th>
+<th>From Number</th>
+<th>Was Sending Attempted</th>
+<th>Sending Attempted At</th>
+<th>Was Sending Successful</th>
+<th>Sending Attempt Response</th>
+<th>Created At</th>
+<th>Created By Session Id</th>
+<th>Type</th>
+<th>Detail Json</th>
+            </tr>
+            </thead>
+            <tbody>
+            @foreach($records as $record)
+                <tr>
+<td><a href="/isms/view/<?= $record->uid ?>"><i class="fas fa-share-square"></i></a></td>
+<td><?= $record->message ?></td>
+<td><?= $record->to_number ?></td>
+<td><?= $record->from_number ?></td>
+<td><?= $record->was_sending_attempted ?></td>
+<td><?= friendly_date_time($record->sending_attempted_at) ?></td>
+<td><?= $record->was_sending_successful ?></td>
+<td><?= $record->sending_attempt_response ?></td>
+<td><?= friendly_date_time($record->created_at) ?></td>
+<td><?= $record->created_by_session_id ?></td>
+<td><?= $record->type ?></td>
+<td><?= $record->detail_json ?></td>
+                </tr>
+            @endforeach
+            </tbody>
+        </table>
+    </div>
+
+@endsection

+ 7 - 0
resources/views/layouts/generated-links.blade.php

@@ -305,3 +305,10 @@
 		<p>Note Template Section Templates</p>
 	</a>
 </li>
+
+<li class='nav-item'>
+	<a href='/isms' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'isms') === 0 ? 'active' : '') }} '>
+		<i class='nav-icon fa fa-phone'></i>
+		<p>Isms</p>
+	</a>
+</li>

+ 9 - 4
routes/generated.php

@@ -774,14 +774,19 @@ Route::prefix('/pro_text_shortcuts/view/{uid}')->group(function () {
 	Route::get('SUB_dashboard', 'pro_text_shortcuts_SINGLE_Controller@SUB_dashboard')->name('pro_text_shortcuts_SINGLE-SUB_dashboard');
 });
 
+// --- admin: note_template_section_templates --- //
+Route::prefix('/note_template_section_templates')->group(function () {
+	Route::get('', 'note_template_section_templates_Controller@index')->name('note_template_section_templates-index');
+	Route::get('view/{uid}', 'note_template_section_templates_Controller@view')->name('note_template_section_templates-view');
+});
+
 // --- admin: note_template_section_templates_SINGLE --- //
 Route::prefix('/note_template_section_templates/view/{uid}')->group(function () {
 	Route::get('ACTION_updateHeading', 'note_template_section_templates_SINGLE_Controller@ACTION_updateHeading')->name('note_template_section_templates_SINGLE-ACTION_updateHeading');
 	Route::get('SUB_dashboard', 'note_template_section_templates_SINGLE_Controller@SUB_dashboard')->name('note_template_section_templates_SINGLE-SUB_dashboard');
 });
 
-// --- admin: note_template_section_templates --- //
-Route::prefix('/note_template_section_templates')->group(function () {
-	Route::get('', 'note_template_section_templates_Controller@index')->name('note_template_section_templates-index');
-	Route::get('view/{uid}', 'note_template_section_templates_Controller@view')->name('note_template_section_templates-view');
+// --- admin: isms --- //
+Route::prefix('/isms')->group(function () {
+	Route::get('', 'isms_Controller@index')->name('isms-index');
 });