Update
This commit is contained in:
No files matched your search
@@ -11,23 +11,44 @@
|
||||
@if(session('success'))
|
||||
<div class="alert alert-success">{{ session('success') }}</div>
|
||||
@endif
|
||||
@if (session('git_output'))
|
||||
<div class="alert alert-info">
|
||||
<pre>{{ session('git_output') }}</pre>
|
||||
</div>
|
||||
@endif
|
||||
<div class="form-row">
|
||||
<div class="form-group col-lg-4">
|
||||
<div class="form-group col-lg-3">
|
||||
<form method="POST" action="{{ route('json.generate') }}">
|
||||
@csrf
|
||||
<button type="submit" class="btn btn-primary mb-3">🔄 Generate All Tables (Timpa JSON Lama)</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="form-group col-lg-4">
|
||||
<div class="form-group col-lg-3">
|
||||
<a href="{{ route('json.downloadAll') }}" class="btn btn-success mb-4">📦 Download Semua JSON (ZIP)</a>
|
||||
</div>
|
||||
<div class="form-group col-lg-4">
|
||||
<div class="form-group col-lg-3">
|
||||
@if (session('previlage') === 'developer')
|
||||
<form action="{{ route('git.pull') }}" method="POST" onsubmit="return confirm('Yakin ingin menjalankan git pull?')">
|
||||
@csrf
|
||||
<button type="submit" class="btn btn-primary">
|
||||
Jalankan Git Pull
|
||||
</button>
|
||||
</form>
|
||||
@else
|
||||
<p class="text-muted">Anda tidak memiliki izin untuk menjalankan Git Pull.</p>
|
||||
@endif
|
||||
</div>
|
||||
<div class="form-group col-lg-3">
|
||||
<div class="form-row">
|
||||
<div class="form-group col-lg-7">
|
||||
<input type="text" name="mulai" id="mulai" class="form-control" placeholder="Start Date" data-mask="9999-99-99">
|
||||
</div>
|
||||
<div class="form-group col-lg-5">
|
||||
<button type="button" class="btn btn-warning" id="btnarchive"><i class="fa fa-archive"></i></button>
|
||||
@if (session('previlage') === 'developer')
|
||||
<button type="button" class="btn btn-warning" id="btnarchive"><i class="fa fa-archive"></i></button>
|
||||
@else
|
||||
<p class="text-muted"><i class="fa fa-ban"></i></p>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -50,7 +71,12 @@
|
||||
|
||||
<form action="{{ route('json.importTable', $table['name']) }}" method="POST" onsubmit="return confirm('Import ini akan menimpa data di tabel {{ $table['name'] }}. Lanjutkan?')">
|
||||
@csrf
|
||||
<button type="submit" class="btn btn-sm btn-outline-danger">⬆️ Import</button>
|
||||
@if (session('previlage') === 'developer')
|
||||
<button type="submit" class="btn btn-sm btn-outline-danger">⬆️ Import</button>
|
||||
@else
|
||||
<p class="text-muted"><i class="fa fa-ban"></i></p>
|
||||
@endif
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user