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,129 @@
@extends('layouts.master')
@section('title')
{{ __('Create Business') }}
@endsection
@section('main_content')
<div class="erp-table-section">
<div class="container-fluid">
<div class="card border-0">
<div class="card-bodys ">
<div class="table-header p-16">
<h4>{{__('Add new Business')}}</h4>
@can('plans-read')
<a href="{{ route('admin.business.index') }}" class="add-order-btn rounded-2 {{ Route::is('admin.users.create') ? 'active' : '' }}"><i class="far fa-list" aria-hidden="true"></i> {{ __('Business List') }}</a>
@endcan
</div>
<div class="order-form-section p-16">
<form action="{{ route('admin.business.store') }}" method="POST" class="ajaxform_instant_reload">
@csrf
<div class="add-suplier-modal-wrapper d-block">
<div class="row">
<div class="col-lg-6 mb-2">
<label>{{ __('Business Name') }}</label>
<input type="text" name="companyName" required class="form-control" placeholder="{{ __('Enter Company Name') }}">
</div>
<div class="col-lg-6 mb-2">
<label>{{__('Business Category')}}</label>
<div class="gpt-up-down-arrow position-relative">
<select name="business_category_id" required
class="form-control table-select w-100 role">
<option value=""> {{__('Select One')}}</option>
@foreach ($categories as $category)
<option value="{{ $category->id }}"> {{ ucfirst($category->name) }} </option>
@endforeach
</select>
<span></span>
</div>
</div>
<div class="col-lg-6 mb-2">
<label>{{__('Subscription Plan')}}</label>
<div class="gpt-up-down-arrow position-relative">
<select name="plan_subscribe_id"
class="form-control table-select w-100 role">
<option value=""> {{__('Select Plan')}}</option>
@foreach ($plans as $plan)
<option value="{{ $plan->id }}"> {{ ucfirst($plan->subscriptionName) }} </option>
@endforeach
</select>
<span></span>
</div>
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('Phone') }}</label>
<input type="text" name="phoneNumber" required class="form-control" placeholder="{{ __('Enter Phone Number') }}">
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('Email') }}</label>
<input type="email" name="email" required class="form-control" placeholder="{{ __('Enter Email') }}">
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('Shop Opening Balance') }}</label>
<input type="number" name="shopOpeningBalance" required class="form-control" placeholder="{{ __('Enter Balance') }}">
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('Address') }}</label>
<input type="text" name="address" required class="form-control" placeholder="{{ __('Enter Address') }}">
</div>
<div class="col-lg-6 mb-2">
<label>{{__('Password')}}</label>
<div class="position-relative">
<input type="password" name="password" class="form-control" placeholder="{{ __('Enter New Password') }}">
<span class="hide-pass hide-show-icon">
<img class="showIcon d-none" src="{{ asset('assets/images/icons/show.svg') }}" alt="Show">
<img class="hideIcon" src="{{ asset('assets/images/icons/Hide.svg') }}" alt="Hide">
</span>
</div>
</div>
<div class="col-lg-6 mb-2">
<label>{{__('Confirm password')}}</label>
<div class="position-relative">
<input type="password" name="password_confirmation" class="form-control" placeholder="{{ __('Enter Confirm password') }}">
<span class="hide-pass hide-show-icon">
<img class="hideIcon" src="{{ asset('assets/images/icons/Hide.svg') }}" alt="Hide">
<img class="showIcon d-none" src="{{ asset('assets/images/icons/show.svg') }}" alt="Show">
</span>
</div>
</div>
<div class="col-lg-6">
<div class="row">
<div class="col-10">
<label class="img-label">{{ __('Image') }}</label>
<input type="file" accept="image/*" name="pictureUrl" 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-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">{{ __('Save') }}</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/custom/custom.js') }}"></script>
@endpush

View File

@@ -0,0 +1,67 @@
@foreach ($affiliates as $affiliate)
<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="{{ $affiliate->id }}" data-url="{{ route('admin.affiliates.delete-all') }}">
<span class="table-custom-checkmark custom-checkmark"></span>
</label>
</td>
<td>{{ $loop->index + 1 }}</td>
<td>{{ formatted_date($affiliate->created_at) }}</td>
<td>{{ $affiliate->user?->name }}</td>
<td>{{ $affiliate->user?->email }}</td>
<td>{{ $affiliate->user?->business?->enrolled_plan?->plan?->subscriptionName ?? '' }}</td>
<td>{{ remaining_days($affiliate->user?->business?->will_expire) }}</td>
<td>{{ formatted_date($affiliate->user?->business?->will_expire) }}</td>
<td>{{ currency_format($affiliate->balance) }}</td>
<td>
<label class="switch">
<input type="checkbox" class="status">
<span class="slider round"></span>
</label>
</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="#business-upgrade-modal" class="view-btn business-upgrade-plan" data-bs-toggle="modal"
data-id="{{ $affiliate->user?->business?->id }}" data-name="{{ $affiliate->user?->business?->companyName }}"
data-url="{{ route('admin.business.upgrade.plan', $affiliate->id) }}">
<i class="fas fa-paper-plane"></i>
{{ __('Upgrade Plan') }}
</a>
</li>
<li>
<a href="#affiliate-view-modal" class="affiliate-view" data-bs-toggle="modal"
data-date="{{ formatted_date($affiliate->created_at) }}"
data-name="{{ $affiliate->user?->name }}"
data-email="{{ $affiliate->user?->email }}"
data-plan="{{ $affiliate->user?->business?->enrolled_plan->plan->subscriptionName ?? '' }}"
data-duration="{{ remaining_days($affiliate->user?->business?->will_expire) }}"
data-expire-date="{{ formatted_date($affiliate->user?->business?->will_expire) }}"
data-total-earn="{{ currency_format($affiliate->balance) }}"
>
<i class="fal fa-eye"></i>
{{ __('View') }}
</a>
</li>
<li>
<a href="{{ route('admin.affiliates.destroy', $affiliate->id) }}" class="confirm-action"
data-method="DELETE">
<i class="fal fa-trash-alt"></i>
{{ __('Delete') }}
</a>
</li>
</ul>
</div>
</td>
</tr>
@endforeach

View File

@@ -0,0 +1,131 @@
@extends('layouts.master')
@section('title')
{{ __('Edit Business') }}
@endsection
@section('main_content')
<div class="erp-table-section">
<div class="container-fluid">
<div class="card border-0">
<div class="card-bodys">
<div class="table-header p-16">
<h4>{{ __('Edit Business') }}</h4>
@can('plans-read')
<a href="{{ route('admin.business.index') }}" class="add-order-btn rounded-2 {{ Route::is('admin.users.create') ? 'active' : '' }}"><i class="far fa-list" aria-hidden="true"></i> {{ __('Business List') }}</a>
@endcan
</div>
<div class="order-form-section p-16">
<form action="{{ route('admin.business.update', $business->id) }}" method="POST" class="ajaxform_instant_reload">
@csrf
@method('PUT')
<div class="add-suplier-modal-wrapper d-block">
<div class="row">
<div class="col-lg-6 mb-2">
<label>{{ __('Business Name') }}</label>
<input type="text" name="companyName" value="{{ $business->companyName }}" required class="form-control" placeholder="{{ __('Enter Company Name') }}">
</div>
<div class="col-lg-6 mb-2">
<label>{{__('Business Category')}}</label>
<div class="gpt-up-down-arrow position-relative">
<select name="business_category_id" required
class="form-control table-select w-100 role">
<option value=""> {{__('Select Business Category')}}</option>
@foreach ($categories as $category)
<option @selected($category->id == $business->business_category_id) value="{{ $category->id }}"> {{ ucfirst($category->name) }} </option>
@endforeach
</select>
<span></span>
</div>
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('Subscription Plan') }}</label>
<div class="gpt-up-down-arrow position-relative">
<select name="plan_subscribe_id" class="form-control table-select w-100 role">
<option value="">{{ __('Select One') }}</option>
@foreach ($plans as $plan)
<option value="{{ $plan->id }}" @selected($plan->id == optional($business->enrolled_plan)->plan_id)>
{{ ucfirst($plan->subscriptionName) }}
</option>
@endforeach
</select>
<span></span>
</div>
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('Phone') }}</label>
<input type="text" name="phoneNumber" value="{{ $business->phoneNumber }}" required class="form-control" placeholder="{{ __('Enter Phone Number') }}">
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('Email') }}</label>
<input type="email" name="email" value="{{ $user->email }}" class="form-control" placeholder="{{ __('Enter Email') }}">
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('Shop Opening Balance') }}</label>
<input type="number" name="shopOpeningBalance" value="{{ $business->shopOpeningBalance }}" required class="form-control" placeholder="{{ __('Enter Balance') }}">
</div>
<div class="col-lg-6 mb-2">
<label>{{ __('Address') }}</label>
<input type="text" name="address" value="{{ $business->address }}" required class="form-control" placeholder="{{ __('Enter Address') }}">
</div>
<div class="col-lg-6 mb-2">
<label>{{__('Password')}}</label>
<div class="position-relative">
<input type="password" name="password" class="form-control" placeholder="{{ __('Enter New Password') }}">
<span class="hide-pass hide-show-icon">
<img class="showIcon d-none" src="{{ asset('assets/images/icons/show.svg') }}" alt="Show">
<img class="hideIcon" src="{{ asset('assets/images/icons/Hide.svg') }}" alt="Hide">
</span>
</div>
</div>
<div class="col-lg-6 mb-2">
<label>{{__('Confirm password')}}</label>
<div class="position-relative">
<input type="password" name="password_confirmation" class="form-control" placeholder="{{ __('Enter Confirm password') }}">
<span class="hide-pass hide-show-icon">
<img class="hideIcon" src="{{ asset('assets/images/icons/Hide.svg') }}" alt="Hide">
<img class="showIcon d-none" src="{{ asset('assets/images/icons/show.svg') }}" alt="Show">
</span>
</div>
</div>
<div class="col-lg-6">
<div class="row">
<div class="col-10">
<label class="img-label">{{ __('Image') }}</label>
<input type="file" accept="image/*" name="pictureUrl" class="form-control file-input-change" data-id="image">
</div>
<div class="col-2 align-self-center mt-3">
<img src="{{ asset($business->pictureUrl ?? 'assets/images/icons/upload.png') }}" id="image" class="table-img">
</div>
</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">{{ __('Cancel') }}</button>
<button class="theme-btn m-2 submit-btn">{{ __('Save') }}</button>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/custom/custom.js') }}"></script>
@endpush

View File

@@ -0,0 +1,93 @@
@extends('layouts.master')
@section('title')
{{ __('Affiliate 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>{{ __('Affiliate List') }}</h4>
</div>
<div class="table-top-form p-16-0">
<form action="{{ route('admin.affiliates.filter') }}" method="post" class="filter-form" table="#affiliates-data">
@csrf
<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 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> {{ __('Date & Time') }} </th>
<th> {{ __('Name') }} </th>
<th> {{ __('Email') }} </th>
<th> {{ __('Subscription Plan') }} </th>
<th> {{ __('Duration') }} </th>
<th> {{ __('Expired Date') }} </th>
<th> {{ __('Total Earning') }} </th>
<th> {{ __('Status') }} </th>
<th> {{ __('Action') }} </th>
</tr>
</thead>
<tbody id="affiliates-data">
@include('admin.affiliate-modules.affiliate.datas')
</tbody>
</table>
</div>
<div class="mt-3">
{{ $affiliates->links('vendor.pagination.bootstrap-5') }}
</div>
</div>
</div>
</div>
@endsection
@push('modal')
@include('admin.components.multi-delete-modal')
@include('admin.affiliate-modules.affiliate.view')
@include('admin.affiliate-modules.affiliate.plan-upgrade')
@endpush
@push('js')
<script src="{{ asset('assets/js/custom/custom.js') }}"></script>
@endpush

View File

@@ -0,0 +1,67 @@
<div class="modal modal-md fade" id="business-upgrade-modal" tabindex="-1" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content b-radious-24">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">{{ __('Upgrade Plan') }}</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form action="" method="post" enctype="multipart/form-data"
class="ajaxform_instant_reload upgradePlan">
@csrf
@method('put')
<div class="mt-3">
<label>{{ __('Business Name') }}</label>
<input class="form-control" id="business_name" readonly>
<input name="business_id" id="business_id" type="hidden">
</div>
<div class="mt-3">
<label for="plan_id">{{ __('Select A Plan') }}</label>
<div class="gpt-up-down-arrow position-relative">
<select name="plan_id" id="plan_id" class="form-control">
<option value="">{{ __('Select One') }}</option>
@foreach ($plans as $plan)
<option data-price="{{ $plan->offerPrice ?? $plan->subscriptionPrice }}" value="{{ $plan->id }}">{{ $plan->subscriptionName }}</option>
@endforeach
</select>
<span></span>
</div>
</div>
<div class="mt-3">
<label>{{ __('Price') }}</label>
<input class="form-control plan-price" name="price" type="number" step="any" placeholder="{{ __('Enter plan price or select a plan') }}">
</div>
<div class="mt-3">
<label for="gateway_id">{{ __('Payment Gateways') }}</label>
<div class="gpt-up-down-arrow position-relative">
<select name="gateway_id" id="gateway_id" class="form-control">
<option value="">{{ __('Select A payment gateway') }}</option>
@foreach ($gateways as $gateway)
<option value="{{ $gateway->id }}">{{ $gateway->name }}</option>
@endforeach
</select>
<span></span>
</div>
</div>
<div class="mt-3">
<label>{{ __('Notes') }}</label>
<textarea name="notes" id="notes" class="form-control" placeholder="{{ __('Enter notes') }}">{{ 'Plan subscribed by ' . auth()->user()->name }}</textarea>
</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>
</form>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,99 @@
<div class="modal fade" id="affiliate-view-modal">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5">{{ __('View Details') }}</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="personal-info">
<div class="row align-items-center mt-3">
<div class="col-md-4">
<p>{{ __('Date & Time') }}</p>
</div>
<div class="col-1">
<p>:</p>
</div>
<div class="col-md-7">
<p id="date"></p>
</div>
</div>
<div class="row align-items-center mt-3">
<div class="col-md-4">
<p>{{ __('Name') }}</p>
</div>
<div class="col-1">
<p>:</p>
</div>
<div class="col-md-7">
<p id="name"></p>
</div>
</div>
<div class="row align-items-center mt-3">
<div class="col-md-4">
<p>{{ __('Email') }}</p>
</div>
<div class="col-1">
<p>:</p>
</div>
<div class="col-md-7">
<p id="email"></p>
</div>
</div>
<div class="row align-items-center mt-3">
<div class="col-md-4">
<p>{{ __('Subscription Plan') }}</p>
</div>
<div class="col-1">
<p>:</p>
</div>
<div class="col-md-7">
<p id="plan"></p>
</div>
</div>
<div class="row align-items-center mt-3">
<div class="col-md-4">
<p>{{ __('Duration') }}</p>
</div>
<div class="col-1">
<p>:</p>
</div>
<div class="col-md-7">
<p id="duration"></p>
</div>
</div>
<div class="row align-items-center mt-3">
<div class="col-md-4">
<p>{{ __('Expired Date') }}</p>
</div>
<div class="col-1">
<p>:</p>
</div>
<div class="col-md-7">
<p id="expire_date"></p>
</div>
</div>
<div class="row align-items-center mt-3">
<div class="col-md-4">
<p>{{ __('Total Earning') }}</p>
</div>
<div class="col-1">
<p>:</p>
</div>
<div class="col-md-7">
<p id="total_earn"></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,28 @@
@foreach ($items as $business)
<tr>
<td>{{ $loop->index + 1 }}</td>
<td>{{ formatted_date($business->created_at) }}</td>
<td>{{ $business->companyName }}</td>
<td class="text-center">
@if ($business->enrolled_plan?->plan?->subscriptionName == 'Free')
<span
class="free-badge">{{ $business->enrolled_plan?->plan?->subscriptionName }}</span>
@elseif($business->enrolled_plan?->plan?->subscriptionName == 'Premium')
<span
class="premium-badge">{{ $business->enrolled_plan?->plan?->subscriptionName }}</span>
@elseif($business->enrolled_plan?->plan?->subscriptionName == 'Standard')
<span
class="standard-badge">{{ $business->enrolled_plan?->plan?->subscriptionName }}</span>
@else
@endif
</td>
<td>{{ remaining_days($business->will_expire) }}</td>
<td>{{ formatted_date($business->will_expire) }}</td>
<td>550$</td>
<td class="text-center">
<div class="{{ $business->status == 1 ? 'active-status' : 'dective-status' }}">
{{ $business->status == 1 ? 'Active' : 'Inactive' }}
</div>
</td>
</tr>
@endforeach

View File

@@ -0,0 +1,76 @@
@extends('layouts.master')
@section('title')
{{ __('Affiliate Report 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>{{ __('Affiliate Report List') }}</h4>
</div>
<div class="table-top-form p-16-0">
<form action="{{ route('admin.affiliate-reports.filter') }}" method="post" class="filter-form" table="#affiliate-reports-data">
@csrf
<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 class="responsive-table m-0">
<table class="table" id="datatable">
<thead>
<tr>
<th> {{ __('SL') }}. </th>
<th> {{ __('Date & Time') }} </th>
<th> {{ __('Name') }} </th>
<th> {{ __('Subscription Plan') }} </th>
<th> {{ __('Duration') }} </th>
<th> {{ __('Expired Date') }} </th>
<th> {{ __('Total Earning') }} </th>
<th> {{ __('Status') }} </th>
</tr>
</thead>
<tbody id="affiliate-reports-data">
@include('admin.affiliate-modules.reports.datas')
</tbody>
</table>
</div>
<div class="mt-3">
{{ $items->links('vendor.pagination.bootstrap-5') }}
</div>
</div>
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/custom/custom.js') }}"></script>
@endpush

View File

@@ -0,0 +1,155 @@
{{-- Approved Payment modal start --}}
<div class="modal fade" id="payment-view-modal">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5">{{__('Approved Payment')}}</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="personal-info">
<div class="row align-items-center mt-3">
<div class="col-md-5">
<p>{{__('Date & Time')}}</p>
</div>
<div class="col-1">:</div>
<div class="col-md-6">
<p id="date">{{__('24 Jan 2024, 10:30')}}</p>
</div>
</div>
<div class="row align-items-center mt-2">
<div class="col-md-5">
<p>{{__('Shop Name')}}</p>
</div>
<div class="col-1">:</div>
<div class="col-md-6">
<p id="name"></p>
</div>
</div>
<div class="row align-items-center mt-2">
<div class="col-md-5">
<p>{{__('Payment Method')}}</p>
</div>
<div class="col-1">:</div>
<div class="col-md-6">
<p>{{__('Bank')}}</p>
</div>
</div>
<div class="row align-items-center mt-2">
<div class="col-md-5">
<p>{{__('Withdraw Amount')}}</p>
</div>
<div class="col-1">:</div>
<div class="col-md-6">
<p id="amount">{{__('$0')}}</p>
</div>
</div>
<div class="row align-items-center mt-2">
<div class="col-md-5">
<p>{{__('Status')}}</p>
</div>
<div class="col-1">:</div>
<div class="col-md-6">
<p class="unpaid-status-2" id="status"></p>
</div>
</div>
<h6 class="fw-bold mt-3">{{__('Account Information')}}</h6>
<div class="row align-items-center mt-2">
<div class="col-md-5">
<p>{{__('A/C Name')}}</p>
</div>
<div class="col-1">:</div>
<div class="col-md-6">
<p>{{__('Shaidul Islam')}}</p>
</div>
</div>
<div class="row align-items-center mt-2">
<div class="col-md-5">
<p>{{__('Bank Name')}}</p>
</div>
<div class="col-1">:</div>
<div class="col-md-6">
<p>{{__('Dutch-Bangla Bank PLC')}}</p>
</div>
</div>
<div class="row align-items-center mt-2">
<div class="col-md-5">
<p>{{__('A/C Number')}}</p>
</div>
<div class="col-1">:</div>
<div class="col-md-6">
<p>{{__('365214512236')}}</p>
</div>
</div>
<div class="row align-items-center mt-2">
<div class="col-md-5">
<p>{{__('Branch Name')}}</p>
</div>
<div class="col-1">:</div>
<div class="col-md-6">
<p>{{__('Dhaka')}}</p>
</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">{{__('Rejected')}}</button>
<button class="theme-btn m-2 submit-btn">{{__('Approve')}}</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{{-- Approved Payment modal end --}}
<div class="modal modal-md fade" id="withdrawal-payment-modal" tabindex="-1" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content b-radious-24">
<div class="modal-header">
<div class="Withdrawal-header">
<h5 class="modal-title" id="exampleModalLabel">{{__('Approve Withdrawal Payment')}}</h5>
<p>{{__('Have you Sent')}} <span>{{__('$250.00?')}}</span></p>
</div>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form action="" method="post" enctype="multipart/form-data"
class="ajaxform_instant_reload affiliateModalApproveForm">
<!-- CSRF and method spoofing removed -->
<div class="mt-1">
<label>{{__('Transaction Number')}}</label>
<input class="form-control" type="text" step="any"
placeholder="{{__('Enter transaction Number')}}">
</div>
<div class="mt-1">
<label>{{__('Upload Receipt')}} </label>
<input class="form-control" type="file" id="formFile">
</div>
<div class="col-lg-12">
<div class="button-group text-center mt-3">
<button type="reset" class="theme-btn border-btn m-2">{{__('Cancel')}}</button>
<button class="theme-btn m-2 submit-btn">{{__('Submit')}}</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>

View File

@@ -0,0 +1,53 @@
@foreach ($withdraws as $withdraw)
<tr>
<td>{{ $loop->index + 1 }}</td>
<td>{{ formatted_date($withdraw->created_at) }}</td>
<td>{{ $withdraw->user?->name }}</td>
<td>Bank</td>
<td>{{ currency_format($withdraw->amount) }}</td>
<td class="text-center">
<div class="d-flex align-items-center justify-content-center">
<div class="paid-status">{{ ucfirst($withdraw->status) }}</div>
</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">
{{-- <li>
<a href="#" class="affiliate-modal-approve" data-bs-toggle="modal"
data-url="{{ route('admin.affiliate-withdrawals.paid', $withdraw->id) }}"
data-withdraw-id="{{ $withdraw->id }}">
<i class="fas fa-paper-plane"></i> {{ __('Approved Payment') }}
</a>
</li> --}}
<li>
<a href="#" class="affiliate-modal-approve" data-bs-toggle="modal"
data-url="{{ route('admin.affiliate-withdrawals.paid', $withdraw->id) }}"
data-date="{{ formatted_date($withdraw->created_at) }}"
data-name="{{ $withdraw->user?->name }}"
data-amount="{{ currency_format($withdraw->amount) }}"
data-status="{{ ucfirst($withdraw->status) }}"
>
<i class="fas fa-paper-plane"></i> {{ __('Approved Payment') }}
</a>
</li>
<li>
<a href="#reject-modal" class="modal-reject" data-bs-toggle="modal"
data-url="{{ route('admin.affiliate-withdrawals.reject', $withdraw->id) }}">
<i class="fal fa-eye"></i>
{{ __('Rejected') }}
</a>
</li>
</ul>
</div>
</td>
</tr>
@endforeach

View File

@@ -0,0 +1,80 @@
@extends('layouts.master')
@section('title')
{{ __('Affiliate withdrawals') }}
@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>{{ __('Affiliate withdrawals') }}</h4>
</div>
<div class="table-top-form p-16-0">
<form action="{{ route('admin.affiliate-withdrawals.filter') }}" method="post" class="filter-form" table="#withdrawals-data">
@csrf
<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 class="responsive-table m-0">
<table class="table" id="datatable">
<thead>
<tr>
<th> {{ __('SL') }}. </th>
<th> {{ __('Date & Time') }} </th>
<th> {{ __('Name') }} </th>
<th> {{ __('Payment Method') }} </th>
<th> {{ __('Withdraw Amount') }} </th>
<th class="text-center"> {{ __('Status') }} </th>
<th> {{ __('Action') }} </th>
</tr>
</thead>
<tbody id="withdrawals-data">
@include('admin.affiliate-modules.withdraws.datas')
</tbody>
</table>
</div>
<div class="mt-3">
{{ $withdraws->links('vendor.pagination.bootstrap-5') }}
</div>
</div>
</div>
</div>
@endsection
@push('modal')
@include('admin.affiliate-modules.withdraws.approve')
@include('admin.affiliate-modules.withdraws.reject')
@endpush
@push('js')
<script src="{{ asset('assets/js/custom/custom.js') }}"></script>
@endpush

View File

@@ -0,0 +1,28 @@
<div class="modal fade" id="reject-modal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content rounded-3 border-0">
<div class="modal-header border-bottom">
<h5 class="modal-title fw-bold">{{ __('Why Reject Withdrawal Payment') }}</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<form action="" method="POST" class="ajaxform_instant_reload modalRejectForm">
@csrf
<div class="modal-body">
<div class="">
<label for="reason" >{{ __('Enter Reason') }}</label>
<textarea name="note" rows="4" class="form-control" placeholder="{{ __('Enter reason...') }}"></textarea>
</div>
</div>
<div class="col-lg-12">
<div class="button-group text-center mt-3">
<button type="reset" class="theme-btn border-btn m-2">{{__('Cancel')}}</button>
<button class="theme-btn m-2 submit-btn">{{__('Submit')}}</button>
</div>
</div>
</form>
</div>
</div>
</div>