fix: updated client apps view and master layout
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
{{ $page_title }}
|
||||
@endsection
|
||||
@section('page-css')
|
||||
@endsection
|
||||
@section('content')
|
||||
<section class="row g-4">
|
||||
<div class="col-xl-9">
|
||||
@@ -31,10 +32,14 @@
|
||||
@foreach($apps_arr->content as $row)
|
||||
<tr>
|
||||
<td class="fw-semibold">{{ $row->name}}</td>
|
||||
<td class="recipient-cell">
|
||||
<td class="recipient-cellss">
|
||||
<div class="fw-semibold">{{ $row->type}}</div>
|
||||
</td>
|
||||
<td><i class="bi bi-eye" id="viewApiKeyIcon"></i></td>
|
||||
<td class="text-wrap text-break apiKeyCell" style="max-width: 100px;">
|
||||
<i class="bi bi-eye viewApiKeyIcon"></i>
|
||||
<input type="hidden" name="hidden_key" class="hiddenKeyInput" value="{{ $row->apiKey }}">
|
||||
|
||||
</td>
|
||||
<td>
|
||||
{{ \Carbon\Carbon::parse($row->createdAt)->format('Y-m-d H:i:s') }}
|
||||
</td>
|
||||
@@ -80,8 +85,23 @@
|
||||
@endsection
|
||||
@section('page-js')
|
||||
<script>
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
$('.viewApiKeyIcon').click(function(){
|
||||
var actualApiKey = $(this).siblings('.hiddenKeyInput').val();
|
||||
console.log(actualApiKey);
|
||||
// $.alert(actualApiKey);
|
||||
|
||||
$.dialog({
|
||||
title: 'API Key',
|
||||
type: 'green',
|
||||
// content: actualApiKey ,
|
||||
content: '<div class="wrap-text text-break">' + actualApiKey + '</div>',
|
||||
boxWidth: '500px',
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user