Файловый менеджер - Редактировать - /home/c7lekhnath/silverray.com.au/Modules/Language/database/seeders/68334/PaymentWithdraw.tar
Назад
lang/.gitkeep 0000644 00000000000 15012231363 0007100 0 ustar 00 module.json 0000644 00000000376 15012231363 0006726 0 ustar 00 { "name": "PaymentWithdraw", "alias": "paymentwithdraw", "description": "", "keywords": [], "priority": 0, "providers": [ "Modules\\PaymentWithdraw\\app\\Providers\\PaymentWithdrawServiceProvider" ], "files": [] } tests/Unit/.gitkeep 0000644 00000000000 15012231363 0010240 0 ustar 00 tests/Feature/.gitkeep 0000644 00000000000 15012231363 0010714 0 ustar 00 vite.config.js 0000644 00000001324 15012231363 0007311 0 ustar 00 import { defineConfig } from 'vite'; import laravel from 'laravel-vite-plugin'; export default defineConfig({ build: { outDir: '../../public/build-paymentwithdraw', emptyOutDir: true, manifest: true, }, plugins: [ laravel({ publicDirectory: '../../public', buildDirectory: 'build-paymentwithdraw', input: [ __dirname + '/resources/assets/sass/app.scss', __dirname + '/resources/assets/js/app.js' ], refresh: true, }), ], }); //export const paths = [ // 'Modules/$STUDLY_NAME$/resources/assets/sass/app.scss', // 'Modules/$STUDLY_NAME$/resources/assets/js/app.js', //]; wsus.json 0000644 00000000643 15012231363 0006437 0 ustar 00 { "name": "Payment Withdraw Addon", "is_default": true, "description": "This is Payment Withdraw Addon", "author": { "name": "Websolutionsus", "email": "websolutionus1@gmail.com", "website": "https://websolutionus.com" }, "license": "Proprietary", "url": "", "options" : { "route" : "home" }, "last_update": "2024-03-31", "version": "1.0.0" } routes/.gitkeep 0000644 00000000000 15012231363 0007500 0 ustar 00 routes/error_log 0000644 00000001140 15012231363 0007772 0 ustar 00 [07-May-2025 12:07:04 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Support\Facades\Route" not found in /home/lekhnath/silverray.com.au/Modules/PaymentWithdraw/routes/api.php:5 Stack trace: #0 {main} thrown in /home/lekhnath/silverray.com.au/Modules/PaymentWithdraw/routes/api.php on line 5 [07-May-2025 13:34:28 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Support\Facades\Route" not found in /home/lekhnath/silverray.com.au/Modules/PaymentWithdraw/routes/web.php:7 Stack trace: #0 {main} thrown in /home/lekhnath/silverray.com.au/Modules/PaymentWithdraw/routes/web.php on line 7 routes/web.php 0000644 00000002522 15012231363 0007350 0 ustar 00 <?php use Illuminate\Support\Facades\Route; use Modules\PaymentWithdraw\app\Http\Controllers\Admin\WithdrawMethodController as WithdrawMethodController; use Modules\PaymentWithdraw\app\Http\Controllers\PaymentWithdrawController; Route::group(['as' => 'admin.', 'prefix' => 'admin', 'middleware' => ['auth:admin', 'translation']], function () { Route::resource('withdraw-method', WithdrawMethodController::class)->names('withdraw-method'); Route::put('/withdraw-method/status-update/{id}', [WithdrawMethodController::class, 'statusUpdate'])->name('withdraw-method.status-update'); Route::get('withdraw-list', [WithdrawMethodController::class, 'withdraw_list'])->name('withdraw-list'); Route::get('pending-withdraw-list', [WithdrawMethodController::class, 'pending_withdraw_list'])->name('pending-withdraw-list'); Route::get('show-withdraw/{id}', [WithdrawMethodController::class, 'show_withdraw'])->name('show-withdraw'); Route::put('approved-withdraw/{id}', [WithdrawMethodController::class, 'approved_withdraw'])->name('approved-withdraw'); Route::delete('delete-withdraw/{id}', [WithdrawMethodController::class, 'destroy_withdraw'])->name('delete-withdraw'); }); Route::group(['middleware' => ['auth:web']], function () { Route::resource('payment-withdraw', PaymentWithdrawController::class)->names('payment-withdraw'); }); routes/api.php 0000644 00000000214 15012231363 0007340 0 ustar 00 <?php use Illuminate\Support\Facades\Route; Route::middleware(['auth:sanctum'])->prefix('v1')->name('api.')->group(function () { }); composer.json 0000644 00000001355 15012231363 0007266 0 ustar 00 { "name": "nwidart/paymentwithdraw", "description": "", "authors": [ { "name": "Nicolas Widart", "email": "n.widart@gmail.com" } ], "extra": { "laravel": { "providers": [], "aliases": { } } }, "autoload": { "psr-4": { "Modules\\PaymentWithdraw\\": "", "Modules\\PaymentWithdraw\\App\\": "app/", "Modules\\PaymentWithdraw\\Database\\Factories\\": "database/factories/", "Modules\\PaymentWithdraw\\Database\\Seeders\\": "database/seeders/" } }, "autoload-dev": { "psr-4": { "Modules\\PaymentWithdraw\\Tests\\": "tests/" } } } config/config.php 0000644 00000000064 15012231363 0007763 0 ustar 00 <?php return [ 'name' => 'PaymentWithdraw', ]; config/.gitkeep 0000644 00000000000 15012231363 0007424 0 ustar 00 package.json 0000644 00000000410 15012231363 0007021 0 ustar 00 { "private": true, "type": "module", "scripts": { "dev": "vite", "build": "vite build" }, "devDependencies": { "axios": "^1.1.2", "laravel-vite-plugin": "^0.7.5", "sass": "^1.69.5", "postcss": "^8.3.7", "vite": "^4.0.0" } } app/Http/Controllers/.gitkeep 0000644 00000000000 15012231363 0012164 0 ustar 00 app/Http/Controllers/Admin/WithdrawMethodController.php 0000644 00000023145 15012231363 0017311 0 ustar 00 <?php namespace Modules\PaymentWithdraw\app\Http\Controllers\Admin; use App\Models\User; use Illuminate\Http\Request; use App\Traits\GlobalMailTrait; use App\Http\Controllers\Controller; use App\Services\GlobalMailSendService; use Modules\PaymentWithdraw\app\Models\WithdrawMethod; use Modules\PaymentWithdraw\app\Models\WithdrawRequest; class WithdrawMethodController extends Controller { use GlobalMailTrait; public function index(Request $request) { $query = WithdrawMethod::query(); $query->when($request->filled('keyword'), function ($q) use ($request) { $q->where('name', 'like', '%' . $request->keyword . '%') ->orWhere('description', 'like', '%' . $request->keyword . '%') ->orWhere('min_amount', 'like', '%' . $request->keyword . '%') ->orWhere('max_amount', 'like', '%' . $request->keyword . '%') ->orWhere('withdraw_charge', 'like', '%' . $request->keyword . '%'); }); $query->when($request->filled('status'), function ($q) use ($request) { $q->where('status', $request->status); }); $query->when($request->filled('user'), function ($q) use ($request) { $q->where('user_id', $request->user); }); $query->when($request->filled('order_by'), function ($q) use ($request) { $q->orderBy('id', $request->order_by == 1 ? 'asc' : 'desc'); }); if ($request->filled('par-page')) { $methods = $request->get('par-page') == 'all' ? $query->get() : $query->paginate($request->get('par-page'))->withQueryString(); } else { $methods = $query->paginate()->withQueryString(); } // $methods = WithdrawMethod::all(); return view('paymentwithdraw::admin.method.index', compact('methods')); } public function create() { return view('paymentwithdraw::admin.method.create'); } public function store(Request $request) { $rules = [ 'name' => 'required', 'minimum_amount' => 'required|numeric', 'maximum_amount' => 'required|numeric', 'withdraw_charge' => 'required|numeric', 'description' => 'required', ]; $customMessages = [ 'name.required' => __('Name is required'), 'minimum_amount.required' => __('Min amount is required'), 'maximum_amount.required' => __('Max amount is required'), 'withdraw_charge.required' => __('Charge is required'), 'description.required' => __('Description is required'), ]; $request->validate($rules, $customMessages); $method = new WithdrawMethod(); $method->name = $request->name; $method->min_amount = $request->minimum_amount; $method->max_amount = $request->maximum_amount; $method->withdraw_charge = $request->withdraw_charge; $method->description = $request->description; $method->status = $request->status; $method->save(); $notification = __('Create Successfully'); $notification = ['messege' => $notification, 'alert-type' => 'success']; return redirect()->route('admin.withdraw-method.index')->with($notification); } public function edit($id) { $method = WithdrawMethod::find($id); return view('paymentwithdraw::admin.method.edit', compact('method')); } public function update(Request $request, $id) { $rules = [ 'name' => 'required', 'minimum_amount' => 'required|numeric', 'maximum_amount' => 'required|numeric', 'withdraw_charge' => 'required|numeric', 'description' => 'required', ]; $customMessages = [ 'name.required' => __('Name is required'), 'minimum_amount.required' => __('Min amount is required'), 'maximum_amount.required' => __('Max amount is required'), 'withdraw_charge.required' => __('Charge is required'), 'description.required' => __('Description is required'), ]; $this->validate($request, $rules, $customMessages); $method = WithdrawMethod::find($id); $method->name = $request->name; $method->min_amount = $request->minimum_amount; $method->max_amount = $request->maximum_amount; $method->withdraw_charge = $request->withdraw_charge; $method->description = $request->description; $method->status = $request->status; $method->save(); $notification = __('Update Successfully'); $notification = ['messege' => $notification, 'alert-type' => 'success']; return redirect()->route('admin.withdraw-method.index')->with($notification); } public function destroy($id) { $method = WithdrawMethod::find($id); $method->delete(); $notification = __('Delete Successfully'); $notification = ['messege' => $notification, 'alert-type' => 'success']; return redirect()->route('admin.withdraw-method.index')->with($notification); } public function withdraw_list(Request $request) { $query = WithdrawRequest::query(); $query->with('user'); $query->when($request->filled('keyword'), function ($q) use ($request) { $q->where('method', 'like', '%' . $request->keyword . '%') ->orWhere('total_amount', 'like', '%' . $request->keyword . '%') ->orWhere('withdraw_amount', 'like', '%' . $request->keyword . '%') ->orWhere('withdraw_charge', 'like', '%' . $request->keyword . '%') ->orWhere('account_info', 'like', '%' . $request->keyword . '%'); }); $query->when($request->filled('status'), function ($q) use ($request) { $q->where('status', $request->status); }); $query->when($request->filled('user'), function ($q) use ($request) { $q->where('user_id', $request->user); }); $query->when($request->filled('order_by'), function ($q) use ($request) { $q->orderBy('id', $request->order_by == 1 ? 'asc' : 'desc'); }); if ($request->filled('par-page')) { $withdraws = $request->get('par-page') == 'all' ? $query->get() : $query->paginate($request->get('par-page'))->withQueryString(); } else { $withdraws = $query->paginate()->withQueryString(); } $title = __('Withdraw request'); $users = User::select('name', 'id')->get(); return view('paymentwithdraw::admin.index', compact('withdraws', 'title', 'users')); } public function pending_withdraw_list(Request $request) { $query = WithdrawRequest::query(); $query->with('user')->where('status', 'pending'); $query->when($request->filled('keyword'), function ($q) use ($request) { $q->where('method', 'like', '%' . $request->keyword . '%') ->orWhere('total_amount', 'like', '%' . $request->keyword . '%') ->orWhere('withdraw_amount', 'like', '%' . $request->keyword . '%') ->orWhere('withdraw_charge', 'like', '%' . $request->keyword . '%') ->orWhere('account_info', 'like', '%' . $request->keyword . '%'); }); $query->when($request->filled('user'), function ($q) use ($request) { $q->where('user_id', $request->user); }); $query->when($request->filled('order_by'), function ($q) use ($request) { $q->orderBy('id', $request->order_by == 1 ? 'asc' : 'desc'); }); if ($request->filled('par-page')) { $withdraws = $request->get('par-page') == 'all' ? $query->get() : $query->paginate($request->get('par-page'))->withQueryString(); } else { $withdraws = $query->paginate()->withQueryString(); } $title = __('Pending withdraw'); $users = User::select('name', 'id')->get(); return view('paymentwithdraw::admin.index', compact('withdraws', 'title', 'users')); } public function show_withdraw($id) { $withdraw = WithdrawRequest::find($id); return view('paymentwithdraw::admin.show', compact('withdraw')); } public function destroy_withdraw($id) { $withdraw = WithdrawRequest::findOrFail($id); $withdraw->delete(); $notification = __('Delete Successfully'); $notification = ['messege' => $notification, 'alert-type' => 'success']; return redirect()->route('admin.withdraw-list')->with($notification); } public function approved_withdraw($id) { $withdraw = WithdrawRequest::find($id); $withdraw->status = 'approved'; $withdraw->approved_date = date('Y-m-d'); $withdraw->save(); $user = User::findOrFail($withdraw->user_id); //mail send [$subject, $message] = $this->fetchEmailTemplate('approved_withdraw', ['user_name' => $user->name]); $this->sendMail($user->email, $subject, $message); $notification = __('Withdraw request approval successfully'); $notification = ['messege' => $notification, 'alert-type' => 'success']; return redirect()->route('admin.withdraw-list')->with($notification); } public function statusUpdate($id) { $withdraw_method = WithdrawMethod::find($id); $status = $withdraw_method->status == 'active' ? 'inactive' : 'active'; $withdraw_method->update(['status' => $status]); $notification = __('Updated Successfully'); return response()->json([ 'success' => true, 'message' => $notification, ]); } } app/Http/Controllers/PaymentWithdrawController.php 0000644 00000005606 15012231363 0016460 0 ustar 00 <?php namespace Modules\PaymentWithdraw\app\Http\Controllers; use App\Http\Controllers\Controller; use Auth; use Illuminate\Http\Request; use Modules\PaymentWithdraw\app\Models\WithdrawMethod; use Modules\PaymentWithdraw\app\Models\WithdrawRequest; class PaymentWithdrawController extends Controller { /** * Display a listing of the resource. */ public function index() { $user = Auth::guard('web')->user(); $methods = WithdrawMethod::where('status', 'active')->get(); $withdraws = WithdrawRequest::where('user_id', $user->id)->latest()->get(); return view('paymentwithdraw::index', ['methods' => $methods, 'withdraws' => $withdraws]); } public function store(Request $request) { $rules = [ 'withdraw_method_id' => 'required', 'amount' => 'required|numeric', 'account_info' => 'required', ]; $customMessages = [ 'withdraw_method_id.required' => __('Payment Method filed is required'), 'amount.required' => __('Withdraw amount filed is required'), 'amount.numeric' => __('Please provide valid numeric number'), 'account_info.required' => __('Account filed is required'), ]; $request->validate($rules, $customMessages); $user = Auth::guard('web')->user(); $total_balance = 500; /** you need to calculat the total balance depend on your project logic */ $total_withdraw = WithdrawRequest::where('user_id', $user->id)->sum('total_amount'); $current_balance = $total_balance - $total_withdraw; if ($request->amount > $current_balance) { $notification = __('Sorry! Your Payment request is more then your current balance'); return response()->json(['message' => $notification]); } $method = WithdrawMethod::whereId($request->withdraw_method_id)->first(); if ($request->amount >= $method->min_amount && $request->amount <= $method->max_amount) { $widthdraw = new WithdrawRequest(); $widthdraw->user_id = $user->id; $widthdraw->method = $method->name; $widthdraw->total_amount = $request->amount; $withdraw_request = $request->amount; $withdraw_amount = ($method->withdraw_charge / 100) * $withdraw_request; $widthdraw->withdraw_amount = $request->amount - $withdraw_amount; $widthdraw->withdraw_charge = $method->withdraw_charge; $widthdraw->account_info = $request->account_info; $widthdraw->save(); $notification = __('Withdraw request sent successfully, please wait for admin approval'); return response()->json(['message' => $notification]); } else { $notification = __('Your amount range is not available'); return response()->json(['message' => $notification]); } } } app/Http/Requests/.gitkeep 0000644 00000000000 15012231363 0011471 0 ustar 00 app/Http/Middleware/.gitkeep 0000644 00000000000 15012231363 0011733 0 ustar 00 app/Models/.gitkeep 0000644 00000000000 15012231363 0010162 0 ustar 00 app/Models/WithdrawMethod.php 0000644 00000000470 15012231363 0012207 0 ustar 00 <?php namespace Modules\PaymentWithdraw\app\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class WithdrawMethod extends Model { use HasFactory; /** * The attributes that are mass assignable. */ protected $fillable = ['status']; } app/Models/WithdrawRequest.php 0000644 00000001213 15012231363 0012413 0 ustar 00 <?php namespace Modules\PaymentWithdraw\app\Models; use App\Models\User; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Modules\PaymentWithdraw\Database\factories\WithdrawRequestFactory; class WithdrawRequest extends Model { use HasFactory; /** * The attributes that are mass assignable. */ protected $fillable = []; protected static function newFactory(): WithdrawRequestFactory { //return WithdrawRequestFactory::new(); } public function user() { return $this->belongsTo(User::class)->select('id', 'name', 'email', 'image'); } } app/Models/error_log 0000644 00000001254 15012231363 0010462 0 ustar 00 [14-May-2025 20:34:41 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Database\Eloquent\Model" not found in /home/c7lekhnath/silverray.com.au/Modules/PaymentWithdraw/app/Models/WithdrawMethod.php:8 Stack trace: #0 {main} thrown in /home/c7lekhnath/silverray.com.au/Modules/PaymentWithdraw/app/Models/WithdrawMethod.php on line 8 [14-May-2025 20:36:45 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Database\Eloquent\Model" not found in /home/c7lekhnath/silverray.com.au/Modules/PaymentWithdraw/app/Models/WithdrawRequest.php:10 Stack trace: #0 {main} thrown in /home/c7lekhnath/silverray.com.au/Modules/PaymentWithdraw/app/Models/WithdrawRequest.php on line 10 app/Providers/RouteServiceProvider.php 0000644 00000002723 15012231363 0014144 0 ustar 00 <?php namespace Modules\PaymentWithdraw\app\Providers; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { /** * The module namespace to assume when generating URLs to actions. */ protected string $moduleNamespace = 'Modules\PaymentWithdraw\app\Http\Controllers'; /** * Called before routes are registered. * * Register any model bindings or pattern based filters. */ public function boot(): void { parent::boot(); } /** * Define the routes for the application. */ public function map(): void { $this->mapApiRoutes(); $this->mapWebRoutes(); } /** * Define the "web" routes for the application. * * These routes all receive session state, CSRF protection, etc. */ protected function mapWebRoutes(): void { Route::middleware('web') ->namespace($this->moduleNamespace) ->group(module_path('PaymentWithdraw', '/routes/web.php')); } /** * Define the "api" routes for the application. * * These routes are typically stateless. */ protected function mapApiRoutes(): void { Route::prefix('api') ->middleware('api') ->namespace($this->moduleNamespace) ->group(module_path('PaymentWithdraw', '/routes/api.php')); } } app/Providers/.gitkeep 0000644 00000000000 15012231363 0010714 0 ustar 00 app/Providers/PaymentWithdrawServiceProvider.php 0000644 00000006502 15012231363 0016174 0 ustar 00 <?php namespace Modules\PaymentWithdraw\app\Providers; use Illuminate\Support\Facades\Blade; use Illuminate\Support\ServiceProvider; class PaymentWithdrawServiceProvider extends ServiceProvider { protected string $moduleName = 'PaymentWithdraw'; protected string $moduleNameLower = 'paymentwithdraw'; /** * Boot the application events. */ public function boot(): void { $this->registerCommands(); $this->registerCommandSchedules(); $this->registerTranslations(); $this->registerConfig(); $this->registerViews(); $this->loadMigrationsFrom(module_path($this->moduleName, 'database/migrations')); } /** * Register the service provider. */ public function register(): void { $this->app->register(RouteServiceProvider::class); } /** * Register commands in the format of Command::class */ protected function registerCommands(): void { // $this->commands([]); } /** * Register command Schedules. */ protected function registerCommandSchedules(): void { // $this->app->booted(function () { // $schedule = $this->app->make(Schedule::class); // $schedule->command('inspire')->hourly(); // }); } /** * Register translations. */ public function registerTranslations(): void { $langPath = resource_path('lang/modules/'.$this->moduleNameLower); if (is_dir($langPath)) { $this->loadTranslationsFrom($langPath, $this->moduleNameLower); $this->loadJsonTranslationsFrom($langPath); } else { $this->loadTranslationsFrom(module_path($this->moduleName, 'lang'), $this->moduleNameLower); $this->loadJsonTranslationsFrom(module_path($this->moduleName, 'lang')); } } /** * Register config. */ protected function registerConfig(): void { $this->publishes([module_path($this->moduleName, 'config/config.php') => config_path($this->moduleNameLower.'.php')], 'config'); $this->mergeConfigFrom(module_path($this->moduleName, 'config/config.php'), $this->moduleNameLower); } /** * Register views. */ public function registerViews(): void { $viewPath = resource_path('views/modules/'.$this->moduleNameLower); $sourcePath = module_path($this->moduleName, 'resources/views'); $this->publishes([$sourcePath => $viewPath], ['views', $this->moduleNameLower.'-module-views']); $this->loadViewsFrom(array_merge($this->getPublishableViewPaths(), [$sourcePath]), $this->moduleNameLower); $componentNamespace = str_replace('/', '\\', config('modules.namespace').'\\'.$this->moduleName.'\\'.config('modules.paths.generator.component-class.path')); Blade::componentNamespace($componentNamespace, $this->moduleNameLower); } /** * Get the services provided by the provider. */ public function provides(): array { return []; } private function getPublishableViewPaths(): array { $paths = []; foreach (config('view.paths') as $path) { if (is_dir($path.'/modules/'.$this->moduleNameLower)) { $paths[] = $path.'/modules/'.$this->moduleNameLower; } } return $paths; } } app/Providers/error_log 0000644 00000001362 15012231363 0011214 0 ustar 00 [07-May-2025 20:08:06 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Support\ServiceProvider" not found in /home/lekhnath/silverray.com.au/Modules/PaymentWithdraw/app/Providers/PaymentWithdrawServiceProvider.php:8 Stack trace: #0 {main} thrown in /home/lekhnath/silverray.com.au/Modules/PaymentWithdraw/app/Providers/PaymentWithdrawServiceProvider.php on line 8 [07-May-2025 22:32:55 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Foundation\Support\Providers\RouteServiceProvider" not found in /home/lekhnath/silverray.com.au/Modules/PaymentWithdraw/app/Providers/RouteServiceProvider.php:8 Stack trace: #0 {main} thrown in /home/lekhnath/silverray.com.au/Modules/PaymentWithdraw/app/Providers/RouteServiceProvider.php on line 8 database/factories/.gitkeep 0000644 00000000000 15012231363 0011702 0 ustar 00 database/migrations/2023_12_04_095319_create_withdraw_requests_table.php 0000644 00000002001 15012231363 0021545 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('withdraw_requests', function (Blueprint $table) { $table->id(); $table->integer('user_id'); $table->string('method'); $table->decimal('total_amount', 8, 2)->default(0.00); $table->decimal('withdraw_amount', 8, 2)->default(0.00); $table->decimal('withdraw_charge', 8, 2)->default(0.00); $table->text('account_info'); $table->enum('status', ['pending', 'approved', 'rejected'])->default('pending'); $table->string('approved_date')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('withdraw_requests'); } }; database/migrations/.gitkeep 0000644 00000000000 15012231363 0012077 0 ustar 00 database/migrations/error_log 0000644 00000000654 15012231363 0012402 0 ustar 00 [16-May-2025 06:38:21 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Database\Migrations\Migration" not found in /home/c7lekhnath/silverray.com.au/Modules/PaymentWithdraw/database/migrations/2023_12_04_071839_create_withraw_methods_table.php:7 Stack trace: #0 {main} thrown in /home/c7lekhnath/silverray.com.au/Modules/PaymentWithdraw/database/migrations/2023_12_04_071839_create_withraw_methods_table.php on line 7 database/migrations/2023_12_04_071839_create_withraw_methods_table.php 0000644 00000001621 15012231363 0021201 0 ustar 00 <?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. */ public function up(): void { Schema::create('withdraw_methods', function (Blueprint $table) { $table->id(); $table->string('name'); $table->decimal('min_amount', 8, 2)->default(0.00); $table->decimal('max_amount', 8, 2)->default(0.00); $table->decimal('withdraw_charge', 8, 2)->default(0.00); $table->text('description')->nullable(); $table->enum('status', ['active', 'inactive'])->default('active'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('withraw_methods'); } }; database/seeders/.gitkeep 0000644 00000000000 15012231363 0011355 0 ustar 00 database/seeders/PaymentWithdrawDatabaseSeeder.php 0000644 00000000413 15012231363 0016351 0 ustar 00 <?php namespace Modules\PaymentWithdraw\database\seeders; use Illuminate\Database\Seeder; class PaymentWithdrawDatabaseSeeder extends Seeder { /** * Run the database seeds. */ public function run(): void { // $this->call([]); } } database/seeders/error_log 0000644 00000000566 15012231363 0011662 0 ustar 00 [16-May-2025 12:02:02 UTC] PHP Fatal error: Uncaught Error: Class "Illuminate\Database\Seeder" not found in /home/c7lekhnath/silverray.com.au/Modules/PaymentWithdraw/database/seeders/PaymentWithdrawDatabaseSeeder.php:7 Stack trace: #0 {main} thrown in /home/c7lekhnath/silverray.com.au/Modules/PaymentWithdraw/database/seeders/PaymentWithdrawDatabaseSeeder.php on line 7 resources/assets/.gitkeep 0000644 00000000000 15012231363 0011473 0 ustar 00 resources/assets/js/app.js 0000644 00000000000 15012231363 0011574 0 ustar 00 resources/assets/sass/app.scss 0000644 00000000000 15012231363 0012470 0 ustar 00 resources/views/admin/sidebar.blade.php 0000644 00000001627 15012231363 0014175 0 ustar 00 <li class="nav-item dropdown {{ isRoute(['admin.withdraw-method.*', 'admin.withdraw-list', 'admin.show-withdraw', 'admin.pending-withdraw-list'], 'active') }}"> <a href="#" class="nav-link has-dropdown"><i class="far fa-newspaper"></i><span>{{ __('Withdraw Payment') }}</span></a> <ul class="dropdown-menu"> <li class="{{ isRoute('admin.withdraw-method.*', 'active') }}"><a class="nav-link" href="{{ route('admin.withdraw-method.index') }}">{{ __('Withdraw Method') }}</a></li> <li class="{{ isRoute('admin.withdraw-list', 'active') }}"><a class="nav-link" href="{{ route('admin.withdraw-list') }}">{{ __('Withdraw list') }}</a></li> <li class="{{ isRoute('admin.pending-withdraw-list', 'active') }}"><a class="nav-link" href="{{ route('admin.pending-withdraw-list') }}">{{ __('Pending Withdraw') }}</a></li> </ul> resources/views/admin/show.blade.php 0000644 00000015176 15012231363 0013550 0 ustar 00 @extends('admin.master_layout') @section('title') <title>{{ __('Withdraw Details') }}</title> @endsection @section('admin-content') <!-- Main Content --> <div class="main-content"> <section class="section"> <x-admin.breadcrumb title="{{ __('Withdraw Details') }}" :list="[ __('Dashboard') => route('admin.dashboard'), __('Withdraw Details') => '#', ]" /> <div class="section-body"> <a href="{{ route('admin.withdraw-list') }}" class="btn btn-primary"><i class="fas fa-list"></i> {{ __('Influencer withdraw') }}</a> <div class="row mt-4"> <div class="col-12"> <div class="card"> <div class="card-body"> <table class="table table-bordered table-striped table-hover"> <tr> <td width="50%">{{ __('influencer') }}</td> <td width="50%"> <a href="{{ route('admin.customer-show', $withdraw->user_id) }}">{{ $withdraw?->user?->name }}</a> </td> </tr> <tr> <td width="50%">{{ __('Withdraw Method') }}</td> <td width="50%">{{ $withdraw->method }}</td> </tr> <tr> <td width="50%">{{ __('Withdraw Charge') }}</td> <td width="50%">{{ $withdraw->withdraw_charge }}%</td> </tr> <tr> <td width="50%">{{ __('Withdraw Charge Amount') }}</td> <td width="50%"> {{ currency($withdraw->total_amount - $withdraw->withdraw_amount) }} </td> </tr> <tr> <td width="50%">{{ __('Total Amount') }}</td> <td width="50%"> {{ currency($withdraw->total_amount) }} </td> </tr> <tr> <td width="50%">{{ __('Withdraw Amount') }}</td> <td width="50%"> {{ currency($withdraw->withdraw_amount) }} </td> </tr> <tr> <td width="50%">{{ __('Status') }}</td> <td width="50%"> @if ($withdraw->status == 1) <span class="badge bg-success">{{ __('Success') }}</span> @else <span class="badge bg-danger">{{ __('Pending') }}</span> @endif </td> </tr> <tr> <td width="50%">{{ __('Requested Date') }}</td> <td width="50%">{{ formattedDate($withdraw->created_at) }}</td> </tr> @if ($withdraw->status == 1) <tr> <td width="50%">{{ __('Approved Date') }}</td> <td width="50%">{{ $withdraw->approved_date }}</td> </tr> @endif <tr> <td width="50%">{{ __('Account Information') }}</td> <td width="50%"> {!! clean(nl2br($withdraw->account_info)) !!} </td> </tr> </table> @if ($withdraw->status == 'pending') <a href="javascript:;" data-bs-toggle="modal" data-bs-target="#withdrawApproved" class="btn btn-primary">{{ __('Approve withdraw') }}</i></a> @endif <a href="javascript:;" data-bs-toggle="modal" data-bs-target="#deleteModal" class="btn btn-danger" onclick="deleteData({{ $withdraw->id }})">{{ __('Delete withdraw request') }}</a> </div> </div> </div> </div> </section> </div> <div class="modal fade" tabindex="-1" role="dialog" id="withdrawApproved"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">{{ __('Withdraw Approved Confirmation') }}</h5> <button type="button" class="btn-close" data-bs-dismiss="modal"></button> </div> <div class="modal-body"> <p>{{ __('Are You sure approved this withdraw request ?') }}</p> </div> <div class="modal-footer bg-whitesmoke br"> <form action="{{ route('admin.approved-withdraw', $withdraw->id) }}" method="POST"> @csrf @method('PUT') <x-admin.button variant="danger" data-bs-dismiss="modal" text="{{__('Close')}}"/> <x-admin.button type="submit" text="{{__('Yes, Approve')}}"/> </form> </div> </div> </div> </div> <x-admin.delete-modal /> <script> "use strict" function deleteData(id) { $("#deleteForm").attr("action", '{{ url('admin/delete-withdraw/') }}' + "/" + id) } </script> @endsection resources/views/admin/method/edit.blade.php 0000644 00000007100 15012231363 0014761 0 ustar 00 @extends('admin.master_layout') @section('title') <title>{{ __('Edit Withdraw Method') }}</title> @endsection @section('admin-content') <!-- Main Content --> <div class="main-content"> <section class="section"> <x-admin.breadcrumb title="{{ __('Edit Withdraw Method') }}" :list="[ __('Dashboard') => route('admin.dashboard'), __('Withdraw Method') => route('admin.withdraw-method.index'), __('Edit Withdraw Method') => '#', ]" /> <div class="section-body"> <div class="row mt-4"> <div class="col-12"> <div class="card"> <div class="card-header d-flex justify-content-between"> <x-admin.form-title :text="__('Edit Withdraw Method')" /> <div> <x-admin.back-button :href="route('admin.withdraw-method.index')" /> </div> </div> <div class="card-body"> <form action="{{ route('admin.withdraw-method.update',$method->id) }}" method="POST" > @csrf @method('PUT') <div class="row"> <div class="form-group col-12"> <x-admin.form-input id="name" name="name" label="{{ __('Name') }}" placeholder="{{ __('Enter Name') }}" value="{{ $method->name }}" required="true"/> </div> <div class="form-group col-12"> <x-admin.form-input id="minimum_amount" name="minimum_amount" label="{{ __('Minimum Amount') }}" placeholder="{{ __('Enter Minimum Amount') }}" value="{{ $method->min_amount }}" required="true"/> </div> <div class="form-group col-12"> <x-admin.form-input id="maximum_amount" name="maximum_amount" label="{{ __('Maximum Amount') }}" placeholder="{{ __('Enter Maximum Amount') }}" value="{{ $method->max_amount }}" required="true"/> </div> <div class="form-group col-12"> <x-admin.form-input id="withdraw_charge" name="withdraw_charge" label="{{ __('Withdraw Charge') }}(%)" placeholder="{{ __('Enter Withdraw Charge Percentage') }}" value="{{$method->withdraw_charge}}" required="true"/> </div> <div class="form-group col-12"> <x-admin.form-editor id="description" name="description" label="{{ __('Description') }}" value="{!! $method->description !!}" required="true"/> </div> <div class="form-group col-12"> <x-admin.form-switch name="status" label="{{ __('Status') }}" active_value="active" inactive_value="inactive" :checked="$method->status == 'active'"/> </div> </div> <div class="row"> <div class="col-12"> <x-admin.update-button :text="__('Update')" /> </div> </div> </form> </div> </div> </div> </div> </section> </div> @endsection resources/views/admin/method/create.blade.php 0000644 00000007000 15012231363 0015276 0 ustar 00 @extends('admin.master_layout') @section('title') <title>{{ __('Withdraw Method') }}</title> @endsection @section('admin-content') <!-- Main Content --> <div class="main-content"> <section class="section"> <x-admin.breadcrumb title="{{ __('Create Withdraw Method') }}" :list="[ __('Dashboard') => route('admin.dashboard'), __('Withdraw Method') => route('admin.withdraw-method.index'), __('Create Withdraw Method') => '#', ]" /> <div class="section-body"> <div class="row mt-4"> <div class="col-12"> <div class="card"> <div class="card-header d-flex justify-content-between"> <x-admin.form-title :text="__('Create Withdraw Method')" /> <div> <x-admin.back-button :href="route('admin.withdraw-method.index')" /> </div> </div> <div class="card-body"> <form action="{{ route('admin.withdraw-method.store') }}" method="POST" > @csrf <div class="row"> <div class="form-group col-12"> <x-admin.form-input id="name" name="name" label="{{ __('Name') }}" placeholder="{{ __('Enter Name') }}" value="{{ old('name') }}" required="true"/> </div> <div class="form-group col-12"> <x-admin.form-input id="minimum_amount" name="minimum_amount" label="{{ __('Minimum Amount') }}" placeholder="{{ __('Enter Minimum Amount') }}" value="{{ old('minimum_amount') }}" required="true"/> </div> <div class="form-group col-12"> <x-admin.form-input id="maximum_amount" name="maximum_amount" label="{{ __('Maximum Amount') }}" placeholder="{{ __('Enter Maximum Amount') }}" value="{{ old('maximum_amount') }}" required="true"/> </div> <div class="form-group col-12"> <x-admin.form-input id="withdraw_charge" name="withdraw_charge" label="{{ __('Withdraw Charge') }}(%)" placeholder="{{ __('Enter Withdraw Charge Percentage') }}" value="{{old('withdraw_charge')}}" required="true"/> </div> <div class="form-group col-12"> <x-admin.form-editor id="description" name="description" label="{{ __('Description') }}" value="{!! old('description') !!}" required="true"/> </div> <div class="form-group col-12"> <x-admin.form-switch name="status" label="{{ __('Status') }}" active_value="active" inactive_value="inactive" :checked="old('status') == 'active'"/> </div> </div> <div class="row"> <div class="col-12"> <x-admin.save-button :text="__('Save')" /> </div> </div> </form> </div> </div> </div> </div> </section> </div> @endsection resources/views/admin/method/index.blade.php 0000644 00000022625 15012231363 0015154 0 ustar 00 @extends('admin.master_layout') @section('title') <title>{{ __('Withdraw Method') }}</title> @endsection @section('admin-content') <!-- Main Content --> <div class="main-content"> <section class="section"> <x-admin.breadcrumb title="{{ __('Create Withdraw Method') }}" :list="[ __('Dashboard') => route('admin.dashboard'), __('Withdraw Method') => '#', ]" /> <div class="section-body"> <div class="row mt-4"> {{-- Search filter --}} <div class="col-12"> <div class="card"> <div class="card-body"> <form action="{{ route('admin.withdraw-method.index') }}" method="GET" onchange="$(this).trigger('submit')" class="card-body"> <div class="row"> <div class="col-md-6 form-group mb-3 mb-md-0"> <x-admin.form-input name="keyword" placeholder="{{ __('Search') }}" value="{{ request()->get('keyword') }}" /> </div> <div class="col-md-2 form-group mb-3 mb-md-0"> <x-admin.form-select name="status" id="status" class="form-select"> <x-admin.select-option value="" text="{{ __('Select Status') }}" /> <x-admin.select-option :selected="request('status') == 'active'" value="active" text="{{ __('Active') }}" /> <x-admin.select-option :selected="request('status') == 'inactive'" value="inactive" text="{{ __('In-Active') }}" /> </x-admin.form-select> </div> <div class="col-md-2 form-group mb-3 mb-md-0"> <x-admin.form-select name="order_by" id="order_by" class="form-select"> <x-admin.select-option value="" text="{{ __('Order By') }}" /> <x-admin.select-option :selected="request('order_by') == '1'" value="1" text="{{ __('ASC') }}" /> <x-admin.select-option :selected="request('order_by') == '0'" value="0" text="{{ __('DESC') }}" /> </x-admin.form-select> </div> <div class="col-md-2 form-group mb-3 mb-md-0"> <x-admin.form-select name="par-page" id="par-page" class="form-select"> <x-admin.select-option value="" text="{{ __('Per Page') }}" /> <x-admin.select-option :selected="request('par-page') == '5'" value="5" text="{{ __('5') }}" /> <x-admin.select-option :selected="request('par-page') == '10'" value="10" text="{{ __('10') }}" /> <x-admin.select-option :selected="request('par-page') == '25'" value="25" text="{{ __('25') }}" /> <x-admin.select-option :selected="request('par-page') == '50'" value="50" text="{{ __('50') }}" /> <x-admin.select-option :selected="request('par-page') == '100'" value="100" text="{{ __('100') }}" /> <x-admin.select-option :selected="request('par-page') == 'all'" value="all" text="{{ __('All') }}" /> </x-admin.form-select> </div> </div> </form> </div> </div> </div> <div class="col-12"> <div class="card"> <div class="card-header d-flex justify-content-between"> <x-admin.form-title :text="__('Withdraw Method')" /> <div> <x-admin.add-button :href="route('admin.withdraw-method.create')" /> </div> </div> <div class="card-body"> <div class="table-responsive table-invoice"> <table class="table table-striped"> <thead> <tr> <th>{{ __('SN') }}</th> <th>{{ __('Name') }}</th> <th>{{ __('Minimum Amount') }}</th> <th>{{ __('Maximum Amount') }}</th> <th>{{ __('Charge') }}</th> <th>{{ __('Status') }}</th> <th>{{ __('Action') }}</th> </tr> </thead> <tbody> @forelse ($methods as $index => $method) <tr> <td>{{ ++$index }}</td> <td>{{ $method->name }}</td> <td> {{ currency($method->min_amount) }} </td> <td> {{ currency($method->max_amount) }} </td> <td>{{ $method->withdraw_charge }}%</td> <td> <input onchange="changeStatus({{ $method->id }})" id="status_toggle" type="checkbox" {{ $method->status == 'active' ? 'checked' : '' }} data-toggle="toggle" data-onlabel="{{ __('Active') }}" data-offlabel="{{ __('Inactive') }}" data-onstyle="success" data-offstyle="danger"> </td> <td> <x-admin.edit-button :href="route('admin.withdraw-method.edit', $method->id)" /> <x-admin.delete-button :id="$method->id" onclick="deleteData" /> </td> </tr> @empty <x-empty-table :name="__('Method')" route="admin.withdraw-method.create" create="yes" :message="__('No data found!')" colspan="7" /> @endforelse </tbody> </table> </div> @if (request()->get('par-page') !== 'all') <div class="float-right"> {{ $methods->onEachSide(0)->links() }} </div> @endif </div> </div> </div> </div> </section> </div> <x-admin.delete-modal /> <script> "use strict" function deleteData(id) { $("#deleteForm").attr("action", '{{ url('admin/withdraw-method/') }}' + "/" + id) } "use strict" function changeStatus(id) { var isDemo = "{{ env('APP_MODE') ?? 'LIVE' }}"; if (isDemo == 'DEMO') { toastr.error("{{ __('This Is Demo Version. You Can Not Change Anything') }}"); return; } $.ajax({ type: "put", data: { _token: '{{ csrf_token() }}', }, url: "{{ url('/admin/withdraw-method/status-update') }}" + "/" + id, success: function(response) { if (response.success) { toastr.success(response.message); } else { toastr.warning(response.message); } }, error: function(err) { handleFetchError(err); } }); } </script> @endsection resources/views/admin/index.blade.php 0000644 00000024422 15012231363 0013671 0 ustar 00 @extends('admin.master_layout') @section('title') <title>{{ $title }}</title> @endsection @section('admin-content') <!-- Main Content --> <div class="main-content"> <section class="section"> <x-admin.breadcrumb title="{{ $title }}" :list="[ __('Dashboard') => route('admin.dashboard'), $title => '#', ]" /> <div class="section-body"> <div class="row mt-4"> {{-- Search filter --}} <div class="col-12"> <div class="card"> <div class="card-body"> <form action="{{ url()->current() }}" method="GET" onchange="$(this).trigger('submit')" class="card-body"> <div class="row"> <div class="{{ Route::is('admin.withdraw-list') ? 'col-md-4' : 'col-md-6' }} form-group mb-3 mb-md-0"> <x-admin.form-input name="keyword" placeholder="{{ __('Search') }}" value="{{ request()->get('keyword') }}" /> </div> @if (Route::is('admin.withdraw-list')) <div class="col-md-2 form-group mb-3 mb-md-0"> <x-admin.form-select name="status" id="status" class="form-select"> <x-admin.select-option value="" text="{{ __('Select Status') }}" /> <x-admin.select-option :selected="request('status') == 'pending'" value="pending" text="{{ __('Pending') }}" /> <x-admin.select-option :selected="request('status') == 'approved'" value="approved" text="{{ __('Approved') }}" /> <x-admin.select-option :selected="request('status') == 'rejected'" value="rejected" text="{{ __('Rejected') }}" /> </x-admin.form-select> </div> @endif <div class="col-md-2 form-group mb-3 mb-md-0"> <x-admin.form-select name="user" id="user" class="select2"> <x-admin.select-option value="" text="{{ __('Select user') }}" /> @foreach ($users as $user) <x-admin.select-option :selected="$user->id == request('user')" value="{{ $user->id }}" text="{{ $user->name }}" /> @endforeach </x-admin.form-select> </div> <div class="col-md-2 form-group mb-3 mb-md-0"> <x-admin.form-select name="order_by" id="order_by" class="form-select"> <x-admin.select-option value="" text="{{ __('Order By') }}" /> <x-admin.select-option :selected="request('order_by') == '1'" value="1" text="{{ __('ASC') }}" /> <x-admin.select-option :selected="request('order_by') == '0'" value="0" text="{{ __('DESC') }}" /> </x-admin.form-select> </div> <div class="col-md-2 form-group mb-3 mb-md-0"> <x-admin.form-select name="par-page" id="par-page" class="form-select"> <x-admin.select-option value="" text="{{ __('Per Page') }}" /> <x-admin.select-option :selected="request('par-page') == '5'" value="5" text="{{ __('5') }}" /> <x-admin.select-option :selected="request('par-page') == '10'" value="10" text="{{ __('10') }}" /> <x-admin.select-option :selected="request('par-page') == '25'" value="25" text="{{ __('25') }}" /> <x-admin.select-option :selected="request('par-page') == '50'" value="50" text="{{ __('50') }}" /> <x-admin.select-option :selected="request('par-page') == '100'" value="100" text="{{ __('100') }}" /> <x-admin.select-option :selected="request('par-page') == 'all'" value="all" text="{{ __('All') }}" /> </x-admin.form-select> </div> </div> </form> </div> </div> </div> <div class="col-12"> <div class="card"> <div class="card-body"> <div class="table-responsive table-invoice"> <table class="table table-striped"> <thead> <tr> <th>{{ __('SN') }}</th> <th>{{ __('User') }}</th> <th>{{ __('Method') }}</th> <th>{{ __('Charge') }}</th> <th>{{ __('Total Amount') }}</th> <th>{{ __('Withdraw Amount') }}</th> <th>{{ __('Status') }}</th> <th>{{ __('Action') }}</th> </tr> </thead> <tbody> @forelse ($withdraws as $index => $withdraw) <tr> <td>{{ ++$index }}</td> <td><a href="{{ route('admin.customer-show', $withdraw->user_id) }}">{{ $withdraw?->user?->name }}</a> </td> <td>{{ $withdraw->method }}</td> <td> {{ currency($withdraw->total_amount - $withdraw->withdraw_amount) }} </td> <td> {{ currency($withdraw->total_amount) }} </td> <td> {{ currency($withdraw->withdraw_amount) }} </td> <td> @if ($withdraw->status == 'approved') <span class="badge bg-success">{{ __('Success') }}</span> @elseif ($withdraw->status == 'rejected') <span class="badge bg-danger">{{ __('Rejected') }}</span> @else <span class="badge bg-danger">{{ __('Pending') }}</span> @endif </td> <td> <a href="{{ route('admin.show-withdraw', $withdraw->id) }}" class="btn btn-primary btn-sm"><i class="fa fa-eye" aria-hidden="true"></i></a> <a href="javascript:;" data-bs-toggle="modal" data-bs-target="#deleteModal" class="btn btn-danger btn-sm" onclick="deleteData({{ $withdraw->id }})"><i class="fa fa-trash" aria-hidden="true"></i></a> </td> </tr> @empty <x-empty-table :name="__('')" route="" create="no" :message="__('No data found!')" colspan="8"></x-empty-table> @endforelse </tbody> </table> </div> @if (request()->get('par-page') !== 'all') <div class="float-right"> {{ $withdraws->onEachSide(0)->links() }} </div> @endif </div> </div> </div> </div> </section> </div> <x-admin.delete-modal /> <script> "use strict" function deleteData(id) { $("#deleteForm").attr("action", '{{ url('admin/delete-influencer-withdraw/') }}' + "/" + id) } </script> @endsection resources/views/.gitkeep 0000644 00000000000 15012231363 0011326 0 ustar 00 resources/views/index.blade.php 0000644 00000010047 15012231363 0012577 0 ustar 00 <!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous"> <title>{{ __('Payment Withdraw Module') }}</title> </head> <body> <div class="container"> <h1 class="text-center">{{ __('Payment Withdraw Module') }}</h1> <div class="card text-left"> <div class="card-body"> <h4 class="card-title">{{ __('Withdraw form') }}</h4> <form action="{{ route('payment-withdraw.store') }}" method="POST"> @csrf <div class="form-group"> <label for="">{{ __('Withdraw Method') }}</label> <select name="withdraw_method_id" id="" class="form-control"> <option value="">Select</option> @foreach ($methods as $method) <option value="{{ $method->id }}">{{ $method->name }}</option> @endforeach </select> </div> <div class="form-group"> <label for="">{{ __('Withdraw Amount') }}</label> <input type="text" class="form-control" name="amount" autocomplete="off"> </div> <div class="form-group"> <label for="">{{ __('Account Info') }}</label> <textarea name="account_info" class="form-control" id="" cols="30" rows="5"></textarea> </div> <button class="btn btn-primary">{{ __('Submit') }}</button> </form> </div> </div> <table class="table table-striped"> <thead> <tr> <th>{{ __('SN') }}</th> <th>{{ __('Method') }}</th> <th>{{ __('Charge') }}</th> <th>{{ __('Total Amount') }}</th> <th>{{ __('Withdraw Amount') }}</th> <th>{{ __('Status') }}</th> </tr> </thead> <tbody> @forelse ($withdraws as $index => $withdraw) <tr> <td>{{ ++$index }}</td> <td>{{ $withdraw->method }}</td> <td> {{ currency($withdraw->total_amount - $withdraw->withdraw_amount) }} </td> <td> {{ currency($withdraw->total_amount) }} </td> <td> {{ currency($withdraw->withdraw_amount) }} </td> <td> @if ($withdraw->status == 'approved') {{ __('Success') }} @elseif ($withdraw->status == 'rejected') {{ __('Rejected') }} @else {{ __('Pending') }} @endif </td> </tr> @empty <x-empty-table :name="__('')" route="" create="no" :message="__('No data found!')" colspan="6"></x-empty-table> @endforelse </tbody> </table> </div> <!-- Optional JavaScript; choose one of the two! --> <!-- Option 1: Bootstrap Bundle with Popper --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"> </script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 8.3.20 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка