fix data setting get datatable using api token
This commit is contained in:
@@ -14,15 +14,22 @@
|
||||
<div class="col-12">
|
||||
<div class="card w-100">
|
||||
<div class="card-body">
|
||||
<div class="d-flex flex-wrap justify-content-end align-items-center mb-2">
|
||||
@if ($creator)
|
||||
<a href="{{ route('data-settings.create', ['menu_id' => $menuId])}}" class="btn btn-success btn-sm d-block d-sm-inline w-auto">Create</a>
|
||||
@endif
|
||||
<div class="d-flex flex-wrap justify-content-between align-items-center mb-2">
|
||||
<div class="d-flex gap-2">
|
||||
<!-- Space for future buttons if needed -->
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@if ($creator)
|
||||
<a href="{{ route('data-settings.create', ['menu_id' => $menuId])}}" class="btn btn-success btn-sm d-block d-sm-inline w-auto">Create</a>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="table-data-settings"
|
||||
data-updater="{{ $updater }}"
|
||||
data-destroyer="{{ $destroyer }}"
|
||||
data-menuId="{{ $menuId }}">
|
||||
data-menuId="{{ $menuId }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -8,8 +8,21 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="robots" content="index, follow" />
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
<!-- Authentication Tokens -->
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<meta name="api-token" content="{{ session('api_token') }}">
|
||||
@auth
|
||||
<!-- API Token from session (primary method) -->
|
||||
<meta name="api-token" content="{{ session('api_token') }}">
|
||||
|
||||
<!-- Alternative: User ID for token generation -->
|
||||
<meta name="user-id" content="{{ auth()->id() }}">
|
||||
|
||||
<!-- Token expiration timestamp (if available) -->
|
||||
@if(session('api_token_expires'))
|
||||
<meta name="api-token-expires" content="{{ session('api_token_expires') }}">
|
||||
@endif
|
||||
@endauth
|
||||
|
||||
<!-- App favicon -->
|
||||
<link rel="shortcut icon" href="/images/dputr.ico">
|
||||
Reference in New Issue
Block a user