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,94 @@
@extends('layouts.master')
@section('title')
{{ __('Add Currency') }}
@endsection
@section('main_content')
<div class="order-form-section">
<div class="erp-table-section">
<div class="container-fluid">
<div class="card">
<div class="card-bodys">
<div class="table-header p-16">
<h4>{{ __('Add Currency') }}</h4>
@can('currencies-read')
<a href="{{ route('admin.currencies.index') }}"
class="add-order-btn rounded-2 {{ Route::is('admin.currencies.create') ? 'active' : '' }}"><i
class="far fa-list me-1" aria-hidden="true"></i> {{ __('View List') }}</a>
@endcan
</div>
<form action="{{ route('admin.currencies.store') }}" method="post" enctype="multipart/form-data"
class="ajaxform_instant_reload">
@csrf
<div class="row p-16">
<div class="col-lg-6 mt-2">
<label>{{ __('Name') }}</label>
<input type="text" name="name" required class="form-control"
placeholder="{{ __('Enter Name') }}">
</div>
<div class="col-lg-6 mt-2">
<label>{{ __('Code') }}</label>
<input type="text" name="code" required class="form-control"
placeholder="{{ __('Enter Code') }}">
</div>
<div class="col-lg-6 mt-2">
<label>{{ __('Rate') }}</label>
<input type="number" name="rate" required class="form-control"
placeholder="{{ __('Enter currency rate') }}">
</div>
<div class="col-lg-6 mt-2">
<label>{{ __('Symbol') }}</label>
<input type="text" name="symbol" class="form-control" placeholder="{{ __('Enter Symbol') }}">
</div>
<div class="col-lg-6 mt-2">
<label>{{ __('Position') }}</label>
<div class="gpt-up-down-arrow position-relative">
<select name="position" class="form-control table-select w-100">
<option value="">{{ __('Select a position') }}</option>
<option value="left">{{ __('left') }}</option>
<option value="right">{{ __('right') }}</option>
</select>
<span></span>
</div>
</div>
<div class="col-lg-6 mt-2">
<label>{{ __('Country') }}</label>
<div class="gpt-up-down-arrow position-relative">
<select name="country_name" class="form-control table-select w-100">
<option value="">{{ __('Select a Country') }}</option>
@foreach ($countries as $country)
<option value="{{ $country['name'] }}">{{ $country['name'] }}</option>
@endforeach
</select>
<span></span>
</div>
</div>
<div class="col-lg-6 mt-2">
<label>{{ __('Status') }}</label>
<div class="gpt-up-down-arrow position-relative">
<select name="status" required class="form-control table-select w-100">
<option value="1">{{ __('Active') }}</option>
<option value="0">{{ __('Inactive') }}</option>
</select>
<span></span>
</div>
</div>
<div class="col-lg-12">
<div class="button-group text-center mt-5">
<button type="reset"
class="theme-btn border-btn m-2">{{ __('Reset') }}</button>
<button class="theme-btn m-2 submit-btn">{{ __('Save') }}</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,111 @@
<div class="responsive-table m-0">
<table class="table" id="erp-table">
<thead>
<tr>
<th>
<div class="d-flex align-items-center gap-1">
<label class="table-custom-checkbox">
<input type="checkbox" class="table-hidden-checkbox selectAllCheckbox">
<span class="table-custom-checkmark custom-checkmark"></span>
</label>
<i class="fal fa-trash-alt delete-selected"></i>
</div>
</th>
<th>{{ __('SL') }}.</th>
<th>{{ __('Name') }}</th>
<th>{{ __('Code') }}</th>
<th>{{ __('Rate') }}</th>
<th>{{ __('Symbol') }}</th>
<th>{{ __('Status') }}</th>
<th>{{ __('Default') }}</th>
<th class="d-print-none">{{ __('Action') }}</th>
</tr>
</thead>
<tbody>
@foreach ($currencies as $currency)
<tr>
<td class="w-60 checkbox text-start">
<label class="table-custom-checkbox">
<input type="checkbox" name="ids[]" class="table-hidden-checkbox checkbox-item"
value="{{ $currency->id }}" data-url="{{ route('admin.currencies.delete-all') }}">
<span class="table-custom-checkmark custom-checkmark"></span>
</label>
<i></i>
</td>
<td>{{ ($currencies->currentPage() - 1) * $currencies->perPage() + $loop->iteration }} <i class="{{ request('id') == $currency->id ? 'fas fa-bell text-red' : '' }}"></i>
</td>
<td>{{ $currency->name }}</td>
<td>{{ $currency->code }}</td>
<td>{{ $currency->rate }}</td>
<td>{{ $currency->symbol }}</td>
<td>
<div class="{{ $currency->status == 1 ? 'badge bg-success' : 'badge bg-danger' }}">
{{ $currency->status == 1 ? 'Active' : 'Inactive' }}
</div>
</td>
<td>
<div class="{{ $currency->is_default == 1 ? 'badge bg-success' : 'badge bg-danger' }}">
{{ $currency->is_default == 1 ? 'Yes' : 'No' }}
</div>
</td>
<td class="d-print-none">
<div class="dropdown table-action">
<button type="button" data-bs-toggle="dropdown">
<i class="far fa-ellipsis-v"></i>
</button>
<ul class="dropdown-menu">
@if ($currency->is_default)
@can('currencies-update')
<li>
<a href="{{ route('admin.currencies.edit', $currency->id) }}">
<i class="fal fa-pencil-alt"></i>
{{ __('Edit') }}
</a>
</li>
<li>
<a href="{{ route('admin.currencies.default', ['id' => $currency->id]) }}">
<i class="fas fa-adjust"></i>
{{ __('Make Default') }}
</a>
</li>
@endcan
@else
@can('currencies-update')
<li>
<a href="{{ route('admin.currencies.edit', $currency->id) }}">
<i class="fal fa-pencil-alt"></i>
{{ __('Edit') }}
</a>
</li>
<li>
<a href="{{ route('admin.currencies.default', ['id' => $currency->id]) }}">
<i class="fas fa-adjust"></i>
{{ __('Make Default') }}
</a>
</li>
@endcan
@can('currencies-delete')
<li>
<a href="{{ route('admin.currencies.destroy', $currency->id) }}"
class="confirm-action" data-method="DELETE">
<i class="fal fa-trash-alt"></i>
{{ __('Delete') }}
</a>
</li>
@endcan
@endif
</ul>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div>
{{ $currencies->links('vendor.pagination.bootstrap-5') }}
</div>

View File

@@ -0,0 +1,98 @@
@extends('layouts.master')
@section('title')
{{ __('Edit Currency') }}
@endsection
@section('main_content')
<div class="order-form-section">
<div class="erp-table-section">
<div class="container-fluid">
<div class="card">
<div class="card-bodys">
<div class="table-header p-16">
<h4>{{ __('Edit Currency') }}</h4>
@can('currencies-read')
<a href="{{ route('admin.currencies.index') }}"
class="add-order-btn rounded-2 {{ Route::is('admin.currencies.create') ? 'active' : '' }}"><i
class="far fa-list me-1" aria-hidden="true"></i> {{ __('View List') }}</a>
@endcan
</div>
<form action="{{ route('admin.currencies.update', $currency->id) }}" method="post"
enctype="multipart/form-data" class="ajaxform_instant_reload">
@csrf
@method('put')
<div class="row p-16">
<div class="col-lg-6 ">
<label>{{ __('Name') }}</label>
<input type="text" name="name" value="{{ $currency->name }}" required
class="form-control" placeholder="{{ __('Enter Name') }}">
</div>
<div class="col-lg-6 ">
<label>{{ __('Code') }}</label>
<input type="text" name="code" value="{{ $currency->code }}" required
class="form-control" placeholder="{{ __('Enter Code') }}">
</div>
<div class="col-lg-6 mt-2">
<label>{{ __('Rate') }}</label>
<input type="number" step="any" name="rate" value="{{ $currency->rate }}" required class="form-control"
placeholder="{{ __('Enter currency rate') }}">
</div>
<div class="col-lg-6 mt-2">
<label>{{ __('Symbol') }}</label>
<input type="text" name="symbol" value="{{ $currency->symbol }}"
class="form-control" placeholder="{{ __('Enter Symbol') }}">
</div>
<div class="col-lg-6 mt-2">
<label>{{ __('Position') }}</label>
<div class="gpt-up-down-arrow position-relative">
<select name="position" class="form-control table-select w-100">
<option value="">{{ __('Select a position') }}</option>
<option value="left" @selected('left' == $currency->position)>{{ __('left') }}</option>
<option value="right" @selected('right' == $currency->position)>{{ __('right') }}</option>
</select>
<span></span>
</div>
</div>
<div class="col-lg-6 mt-2">
<label>{{ __('Country') }}</label>
<div class="gpt-up-down-arrow position-relative">
<select name="country_name" class="form-control table-select w-100">
<option value="">{{ __('Select a Country') }}</option>
@foreach ($countries as $country)
<option value="{{ $country['name'] }}" @selected($country['name'] == $currency->country_name ?? '')>
{{ $country['name'] }} </option>
@endforeach
</select>
<span></span>
</div>
</div>
<div class="col-lg-6 mt-2">
<label>{{ __('Status') }}</label>
<div class="gpt-up-down-arrow position-relative">
<select name="status" required class="form-control table-select w-100">
<option value="1" @selected($currency->status == 1)>{{ __('Active') }}</option>
<option value="0" @selected($currency->status == 0)>{{ __('Inactive') }}</option>
</select>
<span></span>
</div>
</div>
<div class="col-lg-12">
<div class="button-group text-center mt-5">
<button type="reset"
class="theme-btn border-btn m-2">{{ __('Reset') }}</button>
<button class="theme-btn m-2 submit-btn">{{ __('Save') }}</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,58 @@
@extends('layouts.master')
@section('title')
{{ __('Currency') }}
@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>{{ __('Currency List') }}</h4>
@can('currencies-create')
<a href="{{ route('admin.currencies.create') }}" class="add-order-btn rounded-2"><i class="fas fa-plus-circle"></i> {{ __('Add Currency') }} </a>
@endcan
</div>
<div class="table-top-form p-16-0">
<form action="{{ route('admin.currencies.index') }}" method="GET" class="filter-form" table="#currencies-data">
<div class="table-top-left d-flex gap-3 margin-l-16">
<div class="gpt-up-down-arrow position-relative">
<select name="per_page" class="form-control">
<option @selected(request('per_page') == 20) value="20">{{ __('Show 20') }}</option>
<option @selected(request('per_page') == 50) value="50">{{ __('Show 50') }}</option>
<option @selected(request('per_page') == 100) value="100">{{ __('Show 100') }}</option>
<option @selected(request('per_page') == 500) value="500">{{ __('Show 500') }}</option>
</select>
<span></span>
</div>
<div class="table-search position-relative">
<input class="form-control searchInput" type="text" name="search" placeholder="{{ __('Search...') }}" value="{{ request('search') }}">
<span class="position-absolute">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M14.582 14.582L18.332 18.332" stroke="#4D4D4D" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M16.668 9.16797C16.668 5.02584 13.3101 1.66797 9.16797 1.66797C5.02584 1.66797 1.66797 5.02584 1.66797 9.16797C1.66797 13.3101 5.02584 16.668 9.16797 16.668C13.3101 16.668 16.668 13.3101 16.668 9.16797Z" stroke="#4D4D4D" stroke-width="1.25" stroke-linejoin="round"/>
</svg>
</span>
</div>
</div>
</form>
</div>
</div>
<div id="currencies-data">
@include('admin.currencies.datas')
</div>
</div>
</div>
</div>
@endsection
@push('modal')
@include('admin.components.multi-delete-modal')
@endpush