migrate to gtea from bistbucket

This commit is contained in:
2026-03-15 17:08:23 +07:00
commit 129ca2260c
3716 changed files with 566316 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
@extends('layouts.master')
@section('title')
{{ __('Addons List') }}
@endsection
@section('main_content')
<div class="erp-table-section">
<div class="container-fluid">
<div class="card">
<div class="card-bodys">
<div class="table-header p-16">
<h4>{{ __('Addons List') }}</h4>
<a type="button" href="#addon-modal" data-bs-toggle="modal" class="add-order-btn rounded-2 active" class="btn btn-primary">
<i class="fas fa-plus-circle me-1"></i> {{ __('Install / Update Addon') }}
</a>
</div>
</div>
<div class="responsive-table mt-3">
<table class="table" id="datatable">
<thead>
<tr>
<th>{{ __('SL') }}</th>
<th>{{ __('Name') }}</th>
<th>{{ __('Version') }}</th>
<th>{{ __('Status') }}</th>
</tr>
</thead>
<tbody id="addon-data" class="searchResults">
@include('admin.addons.search')
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection
{{-- Create Modal --}}
<div class="modal modal-md fade" id="addon-modal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">{{ __('Install / Update Addon') }}</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form action="{{ route('admin.addons.store') }}" method="post" enctype="multipart/form-data" class="ajaxform_instant_reload">
@csrf
<div>
<label>{{ __('Enter purchase code') }}</label>
<input type="text" name="purchase_code" class="form-control" placeholder="{{ __('Enter addon purchase code') }}" required>
</div>
<div class="mt-3">
<label>{{ __('Upload addons zip file') }}</label>
<input type="file" name="file" class="form-control" accept="file/*" required>
</div>
<div class="col-lg-12">
<div class="button-group text-center mt-5">
<button type="reset" class="theme-btn border-btn m-2">{{ __('Cancel') }}</button>
<button class="theme-btn m-2 submit-btn">{{ __('Install') }}</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,16 @@
@foreach (Module::all() as $module)
<tr>
@php
$name = $module->getName();
@endphp
<td>{{ $loop->iteration }}</td>
<td class="text-center">{{ Str::headline($name) }}</td>
<td class="text-center">{{ $module->get('version') }}</td>
<td class="text-center">
<label class="switch">
<input type="checkbox" {{ $module->isEnabled() ? 'checked' : '' }} class="status" data-method="GET" data-url="{{ route('admin.addons.show', $name) }}">
<span class="slider round"></span>
</label>
</td>
</tr>
@endforeach