Actualizacion de Diseño Logins y Parte de Registro Negocios
This commit is contained in:
BIN
desarrollo/resources/views/frontend/user/wallet/desktop.ini
Normal file
BIN
desarrollo/resources/views/frontend/user/wallet/desktop.ini
Normal file
Binary file not shown.
133
desarrollo/resources/views/frontend/user/wallet/index.blade.php
Normal file
133
desarrollo/resources/views/frontend/user/wallet/index.blade.php
Normal file
@@ -0,0 +1,133 @@
|
||||
@extends('frontend.layouts.user_panel')
|
||||
|
||||
@section('panel_content')
|
||||
<div class="aiz-titlebar mb-4">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-6">
|
||||
<h1 class="fs-20 fw-700 text-dark">{{ translate('My Wallet') }}</h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row gutters-16 mb-2">
|
||||
<!-- Wallet Balance -->
|
||||
<div class="col-md-4 mx-auto mb-4">
|
||||
<div class="bg-dark text-white overflow-hidden text-center p-4 h-100">
|
||||
<img src="{{ static_asset('assets/img/wallet-icon.png') }}" alt="">
|
||||
<div class="py-2">
|
||||
<div class="fs-14 fw-400 text-center">{{ translate('Wallet Balance') }}</div>
|
||||
<div class="fs-30 fw-700 text-center">{{ single_price(Auth::user()->balance) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Recharge Wallet -->
|
||||
<div class="col-md-4 mx-auto mb-4">
|
||||
<div class="p-4 mb-3 c-pointer text-center bg-light has-transition border h-100 hov-bg-soft-light"
|
||||
onclick="show_wallet_modal()">
|
||||
<span
|
||||
class="size-60px rounded-circle mx-auto bg-dark d-flex align-items-center justify-content-center mb-3">
|
||||
<i class="las la-plus la-3x text-white"></i>
|
||||
</span>
|
||||
<div class="fs-14 fw-600 text-dark">{{ translate('Recharge Wallet') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Offline Recharge Wallet -->
|
||||
@if (addon_is_activated('offline_payment'))
|
||||
<div class="col-md-4 mx-auto mb-4">
|
||||
<div class="p-4 mb-3 c-pointer text-center bg-light has-transition border h-100 hov-bg-soft-light"
|
||||
onclick="show_make_wallet_recharge_modal()">
|
||||
<span
|
||||
class="size-60px rounded-circle mx-auto bg-dark d-flex align-items-center justify-content-center mb-3">
|
||||
<i class="las la-plus la-3x text-white"></i>
|
||||
</span>
|
||||
<div class="fs-14 fw-600 text-dark">{{ translate('Offline Recharge Wallet') }}</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<!-- Wallet Recharge History -->
|
||||
<div class="card rounded-0 shadow-none border">
|
||||
<div class="card-header border-bottom-0">
|
||||
<h5 class="mb-0 fs-20 fw-700 text-dark text-center text-md-left">{{ translate('Wallet recharge history') }}</h5>
|
||||
</div>
|
||||
<div class="card-body py-0">
|
||||
<table class="table aiz-table mb-4">
|
||||
<thead class="text-gray fs-12">
|
||||
<tr>
|
||||
<th class="pl-0">#</th>
|
||||
<th data-breakpoints="lg">{{ translate('Date') }}</th>
|
||||
<th>{{ translate('Amount') }}</th>
|
||||
<th data-breakpoints="lg">{{ translate('Payment Method') }}</th>
|
||||
<th class="text-right pr-0">{{ translate('Status') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="fs-14">
|
||||
@foreach ($wallets as $key => $wallet)
|
||||
<tr>
|
||||
<td class="pl-0">{{ sprintf('%02d', ($key+1)) }}</td>
|
||||
<td>{{ date('d-m-Y', strtotime($wallet->created_at)) }}</td>
|
||||
<td class="fw-700">{{ single_price($wallet->amount) }}</td>
|
||||
<td>{{ ucfirst(str_replace('_', ' ', $wallet->payment_method)) }}</td>
|
||||
<td class="text-right pr-0">
|
||||
@if ($wallet->offline_payment)
|
||||
@if ($wallet->approval)
|
||||
<span class="badge badge-inline badge-success p-3 fs-12" style="border-radius: 25px; min-width: 80px !important;">{{ translate('Approved') }}</span>
|
||||
@else
|
||||
<span class="badge badge-inline badge-info p-3 fs-12" style="border-radius: 25px; min-width: 80px !important;">{{ translate('Pending') }}</span>
|
||||
@endif
|
||||
@else
|
||||
N/A
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- Pagination -->
|
||||
<div class="aiz-pagination mb-4">
|
||||
{{ $wallets->links() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('modal')
|
||||
<!-- Wallet Recharge Modal -->
|
||||
@include('frontend.partials.wallet_modal')
|
||||
|
||||
<!-- Offline Wallet Recharge Modal -->
|
||||
<div class="modal fade" id="offline_wallet_recharge_modal" tabindex="-1" role="dialog"
|
||||
aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">{{ translate('Offline Recharge Wallet') }}</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div id="offline_wallet_recharge_modal_body"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
<script type="text/javascript">
|
||||
function show_wallet_modal() {
|
||||
$('#wallet_modal').modal('show');
|
||||
}
|
||||
|
||||
function show_make_wallet_recharge_modal() {
|
||||
$.post('{{ route('offline_wallet_recharge_modal') }}', {
|
||||
_token: '{{ csrf_token() }}'
|
||||
}, function(data) {
|
||||
$('#offline_wallet_recharge_modal_body').html(data);
|
||||
$('#offline_wallet_recharge_modal').modal('show');
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,94 @@
|
||||
<form class="" action="{{ route('wallet_recharge.make_payment') }}" method="post" enctype="multipart/form-data">
|
||||
@csrf
|
||||
<div class="modal-body gry-bg px-3 pt-3 mx-auto c-scrollbar-light">
|
||||
<div class="align-items-center gutters-5 row">
|
||||
<!-- Manual Payment Methods -->
|
||||
@foreach(\App\Models\ManualPaymentMethod::all() as $method)
|
||||
<div class="col-6 col-md-4">
|
||||
<label class="aiz-megabox d-block mb-3">
|
||||
<input value="{{ $method->heading }}" type="radio" name="payment_option" onchange="toggleManualPaymentData({{ $method->id }})" data-id="{{ $method->id }}" checked>
|
||||
<span class="d-block p-3 aiz-megabox-elem">
|
||||
<img src="{{ uploaded_asset($method->photo) }}" class="img-fluid mb-2">
|
||||
<span class="d-block text-center">
|
||||
<span class="d-block fw-600 fs-15">{{ $method->heading }}</span>
|
||||
</span>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<div id="manual_payment_data">
|
||||
<!-- Payment description -->
|
||||
<div class="card rounded-0 shadow-none border mb-3 p-3 d-none">
|
||||
<div id="manual_payment_description">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card rounded-0 shadow-none border mb-3 p-3">
|
||||
<!-- Amount -->
|
||||
<div class="row mt-3">
|
||||
<div class="col-md-3">
|
||||
<label>{{ translate('Amount')}} <span class="text-danger">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<input type="number" lang="en" class="form-control mb-3 rounded-0" min="0" step="0.01" name="amount" placeholder="{{ translate('Amount') }}" required>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Transaction ID -->
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<label>{{ translate('Transaction ID')}} <span class="text-danger">*</span></label>
|
||||
</div>
|
||||
<div class="col-md-9">
|
||||
<input type="text" class="form-control mb-3 rounded-0" name="trx_id" placeholder="{{ translate('Transaction ID') }}" required>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Payment screenshot -->
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 col-form-label">{{ translate('Photo') }}</label>
|
||||
<div class="col-md-9">
|
||||
<div class="input-group" data-toggle="aizuploader" data-type="image">
|
||||
<div class="input-group-prepend">
|
||||
<div class="input-group-text bg-soft-secondary font-weight-medium rounded-0">{{ translate('Browse')}}</div>
|
||||
</div>
|
||||
<div class="form-control file-amount">{{ translate('Choose image') }}</div>
|
||||
<input type="hidden" name="photo" class="selected-files">
|
||||
</div>
|
||||
<div class="file-preview box sm">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Confirm Button -->
|
||||
<div class="form-group text-right">
|
||||
<button type="submit" class="btn btn-sm btn-primary rounded-0 w-150px transition-3d-hover">{{translate('Confirm')}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@foreach(\App\Models\ManualPaymentMethod::all() as $method)
|
||||
<div id="manual_payment_info_{{ $method->id }}" class="d-none">
|
||||
<div>@php echo $method->description @endphp</div>
|
||||
@if ($method->bank_info != null)
|
||||
<ul>
|
||||
@foreach (json_decode($method->bank_info) as $key => $info)
|
||||
<li>{{ translate('Bank Name') }} - {{ $info->bank_name }}, {{ translate('Account Name') }} - {{ $info->account_name }}, {{ translate('Account Number') }} - {{ $info->account_number}}, {{ translate('Routing Number') }} - {{ $info->routing_number }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</div>
|
||||
@endforeach
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
toggleManualPaymentData($('input[name=payment_option]:checked').data('id'));
|
||||
});
|
||||
|
||||
function toggleManualPaymentData(id){
|
||||
$('#manual_payment_description').parent().removeClass('d-none');
|
||||
$('#manual_payment_description').html($('#manual_payment_info_'+id).html());
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user