migrate to gtea from bistbucket
This commit is contained in:
@@ -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>
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user