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,91 @@
@extends('layouts.master')
@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>{{ __('Add New Staff') }}</h4>
<div>
<a href="{{ route('admin.users.index') }}" class="theme-btn print-btn text-light active">
<i class="fas fa-list me-1"></i>
{{ __('View List') }}
</a>
</div>
</div>
<div class="tab-content order-summary-tab p-3">
<div class="tab-pane fade show active" id="add-new-user">
<div class="order-form-section">
<form action="{{ route('admin.users.store') }}" method="post" enctype="multipart/form-data" class="ajaxform_instant_reload">
@csrf
<div class="add-suplier-modal-wrapper">
<div class="row">
<div class="col-lg-6 mt-3">
<label>{{ __('Full Name') }}</label>
<input type="text" name="name" required class="form-control" placeholder="{{ __('Enter Name') }}" >
</div>
<div class="col-lg-6 mt-3">
<label>{{__('Email')}}</label>
<input type="text" name="email" required class="form-control" placeholder="{{ __('Enter Email Address') }}" >
</div>
<div class="col-lg-6 mt-2">
<label>{{__('Phone')}}</label>
<input type="text" name="phone" class="form-control" placeholder="{{ __('Enter Phone Number') }}" >
</div>
<div class="col-lg-6 mt-2">
<div class="row">
<div class="col-10">
<label class="img-label">{{ __('Image') }}</label>
<input type="file" accept="image/*" name="image" class="form-control file-input-change" data-id="image">
</div>
<div class="col-2 align-self-center mt-3">
<img src="{{ asset('assets/images/icons/upload.png') }}" id="image" class="table-img">
</div>
</div>
</div>
<div class="col-lg-6 mt-2">
<label>{{__('Role')}}</label>
<div class="gpt-up-down-arrow position-relative">
<select name="role" required class="select-2 form-control w-100" >
<option value=""> {{__('Select a role')}}</option>
@foreach ($roles as $role)
<option value="{{ $role->name }}" @selected(request('users') == $role->name)> {{ ucfirst($role->name) }} </option>
@endforeach
</select>
<span></span>
</div>
</div>
<div class="col-lg-6 mt-2">
<label>{{__('Password')}}</label>
<input type="password" name="password" required class="form-control" placeholder="{{ __('Enter Password') }}">
</div>
<div class="col-lg-6 mt-2">
<label>{{__('Confirm password')}}</label>
<input type="password" name="password_confirmation" required class="form-control" placeholder="{{ __('Enter Confirm password') }}">
</div>
<div class="col-lg-12">
<div class="button-group text-center mt-5">
<a href="" class="theme-btn border-btn m-2">{{__('Cancel')}}</a>
<button class="theme-btn m-2 submit-btn">{{__('Save')}}</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,77 @@
<div class="responsive-table m-0">
<table class="table" id="datatable">
<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 class="text-start">{{ __('Name') }}</th>
<th class="text-start">{{ __('Phone') }}</th>
<th class="text-start">{{ __('User Email') }}</th>
<th class="text-start">{{ __('User Role') }}</th>
<th>{{ __('Action') }}</th>
</tr>
</thead>
<tbody>
@foreach ($users as $user)
<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="{{ $user->id }}" data-url="{{ route('admin.users.delete-all') }}">
<span class="table-custom-checkmark custom-checkmark"></span>
</label>
<i class=""></i>
</td>
<td>{{ ($users->currentPage() - 1) * $users->perPage() + $loop->iteration }}</td>
<td class="text-start">{{ $user->name }}</td>
<td class="text-start">{{ $user->phone }}</td>
<td class="text-start">{{ $user->email }}</td>
<td class="text-start">{{ $user->role }}</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">
<li><a href="#User-view" data-bs-toggle="modal" class="staff-view-btn"
data-staff-view-name="{{ $user->name ?? 'N/A' }}"
data-staff-view-phone-number="{{ $user->phone ?? 'N/A' }}"
data-staff-view-email-number="{{ $user->email ?? 'N/A' }}"
data-staff-view-role="{{ $user->role ?? 'N/A' }}"> <i
class="fal fa-eye"></i>{{ __('View') }}</a></li>
@can('users-update')
<li>
<a href="{{ route('admin.users.edit', [$user->id, 'users' => $user->role]) }}">
<i class="fal fa-pencil-alt"></i>{{ __('Edit') }}
</a>
</li>
@endcan
@can('users-delete')
<li>
<a href="{{ route('admin.users.destroy', $user->id) }}" class="confirm-action"
data-method="DELETE">
<i class="fal fa-trash-alt"></i>
{{ __('Delete') }}
</a>
</li>
@endcan
</ul>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<div class="mt-3">
{{ $users->links('vendor.pagination.bootstrap-5') }}
</div>

View File

@@ -0,0 +1,94 @@
@extends('layouts.master')
@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>{{ __('Edit Staff') }}</h4>
<div>
<a href="{{ route('admin.users.index') }}" class="theme-btn print-btn text-light active">
<i class="fas fa-list me-1"></i>
{{ __('View List') }}
</a>
</div>
</div>
<div class="tab-content order-summary-tab p-16">
<div class="tab-pane fade show active" id="add-new-user"><br>
<div class="order-form-section">
<form action="{{ route('admin.users.update', $user->id) }}" method="post" enctype="multipart/form-data" class="ajaxform_instant_reload">
@csrf
@method('put')
<div class="add-suplier-modal-wrapper">
<div class="row">
<div class="col-lg-6 mt-2">
<label>{{ __('Full Name') }}</label>
<input type="text" name="name" value="{{ $user->name }}" required class="form-control" placeholder="{{ __('Enter Name') }}" >
</div>
<div class="col-lg-6 mt-2">
<label>{{__('Email')}}</label>
<input type="text" name="email" value="{{ $user->email }}" required class="form-control" placeholder="{{ __('Enter Email Address') }}" >
</div>
<div class="col-lg-6 mt-2">
<label>{{__('Phone')}}</label>
<input type="text" name="phone" value="{{ $user->phone }}" class="form-control" placeholder="{{ __('Enter Phone Number') }}" >
</div>
<div class="col-lg-6 mt-2">
<div class="row">
<div class="col-10">
<label class="img-label">{{ __('Image') }}</label>
<input type="file" accept="image/*" name="image" class="form-control file-input-change" data-id="image">
</div>
<div class="col-2 align-self-center mt-3">
<img src="{{ asset($user->image ?? 'assets/images/icons/upload.png') }}" id="image" class="table-img">
</div>
</div>
</div>
<div class="col-lg-6 mt-2">
<label>{{__('Role')}}</label>
<div>
<div class="gpt-up-down-arrow position-relative">
<select name="role" required class="select-2 form-control w-100" >
<option value=""> {{__('Select a role')}}</option>
@foreach ($roles as $role)
<option value="{{ $role->name }}" @selected($user->role == $role->name)> {{ ucfirst($role->name) }} </option>
@endforeach
</select>
<span></span>
</div>
</div>
</div>
<div class="col-lg-6 mt-2">
<label>{{__('New Password')}}</label>
<input type="password" name="password" class="form-control" placeholder="{{ __('Enter Password') }}">
</div>
<div class="col-lg-6 mt-2">
<label>{{__('Confirm password')}}</label>
<input type="password" name="password_confirmation" class="form-control" placeholder="{{ __('Enter Confirm password') }}">
</div>
<div class="col-lg-12">
<div class="button-group text-center mt-5">
<a href="{{ route('admin.users.index',['users'=>$user->role]) }}" class="theme-btn border-btn m-2">{{__('Cancel')}}</a>
<button class="theme-btn m-2 submit-btn">{{__('Update')}}</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,89 @@
@extends('layouts.master')
@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>{{ __('Staff List') }}</h4>
@can('users-create')
<a href="{{ route('admin.users.create') }}" class="theme-btn print-btn text-light">
<i class="far fa-plus" aria-hidden="true"></i>
{{ __('Add New Staff') }}
</a>
@endcan
</div>
<div class="table-top-form p-16-0">
<form action="{{ route('admin.users.index') }}" method="GET" class="filter-form" table="#users-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 type="text" name="search" class="form-control" 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 id="users-data">
@include('admin.users.datas')
</div>
</div>
</div>
</div>
</div>
<div class="modal fade p-0" id="User-view">
<div class="modal-dialog modal-dialog-centered modal-md">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5">{{ __('View') }}</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body order-form-section">
<div class="costing-list">
<ul>
<li><span>{{ __('Name') }}</span> <span>:</span> <span id="staff_view_name"></span></li>
<li><span>{{ __('Phone') }}</span> <span>:</span> <span id="staff_view_phone_number"></span>
</li>
<li><span>{{ __('Email') }}</span> <span>:</span> <span id="staff_view_email_number"></span>
</li>
<li><span>{{ __('Role') }}</span> <span>:</span> <span id="staff_view_role"></span>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('modal')
@include('admin.components.multi-delete-modal')
@endpush