Merge branch 'wallet-ui' of gitlab.com:CIEFWorldwideSdnBhd/exchange-2.0 into development

# Conflicts:
#	app/Http/Resources/TransactionResource.php
#	routes/web.php
This commit is contained in:
edmondlang
2022-01-12 23:35:03 +08:00
6 changed files with 273 additions and 2 deletions
@@ -139,6 +139,11 @@
</div>
</div>
<div class="col-3">
<div class="row">
<div class="col-10 m-b-15">
<wallet-balance-component></wallet-balance-component>
</div>
</div>
<booking-form-component :data="company" section="customerProfileSection"></booking-form-component>
</div>
</div>
File diff suppressed because one or more lines are too long
@@ -536,8 +536,8 @@
</div>
</div>
<div class="col-2 p-l-0 p-r-0 order-last">
<verification-warning-component v-if="!isLoading && company.bookings.length"
:data="company"></verification-warning-component>
<verification-warning-component v-if="!isLoading && company.bookings.length" :data="company"></verification-warning-component>
<wallet-balance-component></wallet-balance-component>
</div>
</div>
</div>
@@ -0,0 +1,4 @@
@extends('layouts.base_portal')
@section('inner_content')
@include('pages.wallet.transactions')
@endsection
@@ -0,0 +1,121 @@
<div class="row">
<div class="col-8">
<div class="row p-b-5 b-b b-grey m-b-10 m-l-0 m-r-0">
<div class="col no-padding">
<h6>Transaction History</h6>
</div>
</div>
<div class="row padding-10">
<div class="col-2 fs-10">Date</div>
<div class="col fs-10">Description</div>
<div class="col-2 fs-10">Incoming</div>
<div class="col-2 fs-10">Outgoing</div>
<div class="col-2 fs-10">Balance</div>
</div>
<div class="row bg-white padding-10 m-b-10 rounded">
<div class="col-2">25/11/2015</div>
<div class="col">Payment to bill #121221121</div>
<div class="col-2"></div>
<div class="col-2 text-danger">2,123</div>
<div class="col-2">12,123</div>
</div>
<div class="row bg-white padding-10 m-b-10 rounded">
<div class="col-2">115/11/2015</div>
<div class="col">Top Up</div>
<div class="col-2 text-success">1,234</div>
<div class="col-2"></div>
<div class="col-2">14,246</div>
</div>
</div>
<div class="col-3 m-l-15">
<wallet-balance-component></wallet-balance-component>
<div class="row m-t-20">
<div class="col">
<div class="row m-b-10">
<div class="col">
<div class="font-head fs-10 all-caps">Top Up Records</div>
</div>
</div>
<!-- start top up records -->
<div class="row m-b-10">
<div class="col bg-white m-l-15 m-r-15 padding-15 rounded">
<div class="row m-l-5">
<div class="col-auto btn-rounded bg-master-light d-flex justify-content-center align-content-center">
<div class="padding-5 text-white"><i class="fa fa-check fs-15 lh-40"></i></div>
</div>
<div class="col">
<div class="row">
<div class="col">
<div class="text-master fs-11">Payment Method <span class="b-success b-a text-success fs-10 rounded p-l-5 p-r-5 m-l-5 bg-white">Success</span></div>
</div>
<div class="col-auto">
<p>$123,123</p>
</div>
</div>
<div class="row">
<div class="col">
<span class="fs-10">12-03-2021</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row m-b-10">
<div class="col bg-white m-l-15 m-r-15 padding-15 rounded">
<div class="row m-l-5">
<div class="col-auto btn-rounded bg-master-light d-flex justify-content-center align-content-center">
<div class="padding-5 text-white"><i class="fa fa-times fs-15 lh-40"></i></div>
</div>
<div class="col">
<div class="row">
<div class="col">
<div class="text-master fs-11">Payment Method <span class="b-danger b-a text-danger fs-10 rounded p-l-5 p-r-5 m-l-5 bg-white">Failed</span></div>
</div>
<div class="col-auto">
<p>$123,123</p>
</div>
</div>
<div class="row">
<div class="col">
<span class="fs-10">12-03-2021</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row m-b-10">
<div class="col bg-white m-l-15 m-r-15 padding-15 rounded">
<div class="row m-l-5">
<div class="col-auto btn-rounded bg-master-light d-flex justify-content-center align-content-center">
<div class="padding-5 text-white"><i class="fa fa-exclamation fs-15 lh-40"></i></div>
</div>
<div class="col">
<div class="row">
<div class="col">
<div class="text-master fs-11">Payment Method <span class="b-info b-a text-info fs-10 rounded p-l-5 p-r-5 m-l-5 bg-white">Processing</span></div>
</div>
<div class="col-auto">
<p>$123,123</p>
</div>
</div>
<div class="row">
<div class="col">
<span class="fs-10">12-03-2021</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
+37
View File
@@ -75,6 +75,43 @@ Route::get('/transfer/merge/{marking}', function ($marking) {
})->name('booking.merge');
Route::get('/online_payment/redirect', 'Billplz\CallbackBillplzController@callback')->name('online_payment.redirect');
Route::get('/wallet-transactions', function () {
return view('pages.wallet.index');
})->name('wallet.transactions');
Route::get('/test', function(){
// Auth::login(User::findOrFail(1));
// try {
// $zip_file = 'cief_jun_to_september_delivery_orders.zip'; // Name of our archive to download
// $zip = new ZipArchive();
// if ($zip->open(storage_path().'/'.$zip_file, \ZipArchive::CREATE | \ZipArchive::OVERWRITE) === TRUE) {
//
// //whereMonth('created_at', 5)->whereYear('created_at', 2021)->
// $bookings = \App\Models\Booking::where('status', \App\Classes\ValueObjects\Constants\ApprovalStatus::COMPLETED)->get();
//
// foreach ($bookings as $booking) {
// $file = $booking->documents()->where('document_type', \App\Classes\ValueObjects\Constants\DocumentType::SUPPLIER_DELIVER_ORDER)->first()->files()->first();
// if (! $zip->addFile(Storage::disk('documents')->path($file->file->file_info->original->file), Carbon::now()->format('d_m_Y').'_'.$booking->marking.'.pdf')) {
// echo 'Could not add file to ZIP: ' . $file;
// }
// }
//
// // Close ZipArchive
// $zip->close();
// } else {
// echo 'Could not open ZIP file.';
// }
// } catch (Exception $exception) {
// dd($exception);
// }
});
Route::get('/bookings/billplz', function () {
return view('pages.billplz_redirect');
})->name('bookings.billplz');
Route::get('/export/customers/f614e339d7058904a831aad742e24d55', 'Exports\ExportCustomersToExcelController@export');
Route::get('/export/transactions/f614e339d7058904a831aad742e24d55', 'Exports\ExportCustomersToExcelController@transactions');