2024-04-07 07:28:58 +00:00
|
|
|
@extends('layouts.app')
|
2024-04-05 05:22:15 +00:00
|
|
|
@section('content')
|
2024-04-07 07:28:58 +00:00
|
|
|
<div class="nk-content">
|
2024-04-05 05:22:15 +00:00
|
|
|
<div class="container">
|
2024-04-07 07:28:58 +00:00
|
|
|
<div class="nk-content-inner">
|
|
|
|
<div class="nk-content-body">
|
|
|
|
<div class="nk-block-head">
|
|
|
|
<div class="nk-block-head-between gap g-2 flex-wrap">
|
|
|
|
<div class="nk-block-head-content">
|
|
|
|
<h2 class="nk-block-title">Tables in Database</h1>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="nk-block">
|
|
|
|
<div class="card">
|
|
|
|
<div class="accordion" id="accordionTables">
|
|
|
|
<?php $a = 0; ?>
|
2024-04-05 05:22:15 +00:00
|
|
|
|
2024-04-07 07:28:58 +00:00
|
|
|
@foreach ($allTables as $Table)
|
|
|
|
<?php $a++; ?>
|
|
|
|
<div class="accordion-item">
|
|
|
|
<h2 class="accordion-header"> <button class="accordion-button" type="button"
|
|
|
|
data-bs-toggle="collapse" data-bs-target="#collapse{{ $a }}"> {{ $a }}:
|
|
|
|
{{ $Table->tablename }} </button> </h2>
|
|
|
|
<div id="collapse{{ $a }}" class="accordion-collapse collapse"
|
|
|
|
data-bs-parent="#accordionTables">
|
|
|
|
<div class="accordion-body">
|
|
|
|
<table class="datatable-init table" data-nk-container="table-responsive">
|
|
|
|
<thead class="table-dark">
|
|
|
|
<tr>
|
|
|
|
<th class="tb-col"><span class="overline-title">S.N.</span></th>
|
|
|
|
<th class="tb-col"><span class="overline-title">{{ __('lang.Column') }}</span></th>
|
|
|
|
<th class="tb-col"><span class="overline-title">{{ label('Datatype') }}</span></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php $sn = 0; ?>
|
|
|
|
@foreach ($Table->tablecolumns as $column)
|
|
|
|
<tr>
|
|
|
|
<?php $sn++; ?>
|
|
|
|
<td class="tb-col"><span>{{ $sn }}</span></td>
|
|
|
|
<td class="tb-col"><span> {{ $column->COLUMN_NAME }}</span></td>
|
|
|
|
<td class="tb-col"><span> {{ $column->COLUMN_TYPE }}</span></td>
|
|
|
|
</tr>
|
2024-04-05 05:22:15 +00:00
|
|
|
@endforeach
|
2024-04-07 07:28:58 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2024-04-05 05:22:15 +00:00
|
|
|
</div>
|
2024-04-07 07:28:58 +00:00
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
</div>
|
2024-04-05 05:22:15 +00:00
|
|
|
</div>
|
2024-04-07 07:28:58 +00:00
|
|
|
</div>
|
2024-04-05 05:22:15 +00:00
|
|
|
</div>
|
2024-04-07 07:28:58 +00:00
|
|
|
</div>
|
2024-04-05 05:22:15 +00:00
|
|
|
</div>
|
2024-04-07 07:28:58 +00:00
|
|
|
</div>
|
2024-04-05 05:22:15 +00:00
|
|
|
@endsection
|
|
|
|
@push('js')
|
2024-04-07 07:28:58 +00:00
|
|
|
<script>
|
2024-04-05 05:22:15 +00:00
|
|
|
$(document).ready(function() {
|
2024-04-07 07:28:58 +00:00
|
|
|
$('.custom-select2').select2();
|
2024-04-05 05:22:15 +00:00
|
|
|
});
|
2024-04-07 07:28:58 +00:00
|
|
|
</script>
|
2024-04-05 05:22:15 +00:00
|
|
|
@endpush
|