104 lines
5.7 KiB
PHP
104 lines
5.7 KiB
PHP
@extends('layouts.app')
|
|
@section('content')
|
|
|
|
@section('title', 'Billplz Transaction Summary')
|
|
|
|
<breadcrumb
|
|
:items="[{ 'title': 'Debug Transaksi Online', 'icon': 'fas fa-file-invoice', 'url': {{ json_encode(route('transaction.online.home')) }} },
|
|
{ 'title': 'Billplz Transaction Summary', 'icon': 'fas fa-file-invoice' }
|
|
]">
|
|
</breadcrumb>
|
|
|
|
<div class="container mx-auto p-4 bg-yellow-50">
|
|
<x-filter-date-card title="Billplz Transaction Summary"
|
|
action="{{ route('transaction.online.billplz-transaction-summary.index') }}" :selectedDate="$date" />
|
|
|
|
<div class="container mx-auto px-4">
|
|
<div class="flex flex-col items-center">
|
|
<div class="flex flex-row space-x-4 mt-6">
|
|
<x-card title="Sum of Billplz Transactions" subtitle="{{ $sumOfBillplzTransactions }}"></x-card>
|
|
<div class="flex items-center"><span class="text-5xl font-bold">-</span></div>
|
|
<x-card title="Sum of Arrahn Transactions" subtitle="{{ $sumOfArrahnTransactions }}"></x-card>
|
|
<div class="flex items-center"><span class="text-5xl font-bold"> = </span></div>
|
|
<x-card title="Payment Gateway Cost" subtitle="{{ $paymentGatewayCost }}"></x-card>
|
|
</div>
|
|
<hr class="border-b-2 border-gray-300 border-solid my-4 w-full">
|
|
<div class="flex flex-row space-x-4 mb-6">
|
|
<x-card title="No of Arrahn Transactions" subtitle="{{ $numberOfArrahnTransactions }}"></x-card>
|
|
<div class="flex items-center"><span class="text-5xl font-bold">x</span></div>
|
|
<x-card title="Charge Per Transaction" subtitle="RM 1.00"></x-card>
|
|
<div class="flex items-center"><span class="text-5xl font-bold"> = </span></div>
|
|
<x-card title="Payment Gateway Cost"
|
|
subtitle="RM {{ number_format(($numberOfArrahnTransactions * 100) / 100, 2) }}"></x-card>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<x-table>
|
|
<x-slot name="header">
|
|
<x-table.header content="No." />
|
|
<x-table.header content="billplz_id" />
|
|
<x-table.header content="Transaction Arrahn" />
|
|
<x-table.header content="Transaction Billplz" />
|
|
</x-slot>
|
|
<x-slot name="body">
|
|
@forelse ($billPlzTransactionSummary as $data)
|
|
<tr>
|
|
<x-table.data :content="$loop->iteration" />
|
|
<x-table.data :content="$data['billplz_bill']['id']" />
|
|
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
|
|
@foreach ($data['arrahn_transactions'] as $arrahn_transaction)
|
|
<div class="flex items-center">
|
|
<div class="ml-3 text-gray-900 whitespace-no-wrap">
|
|
<div class="flex items-center">
|
|
<div class="ml-3">
|
|
<p class="text-gray-900 whitespace-no-wrap">
|
|
status : <span
|
|
class="inline-block bg-green-600 text-white px-2 py-0.5 rounded text-xs font-medium">{{ $arrahn_transaction['status'] }}</span>
|
|
<br>
|
|
total_payment:
|
|
{{ number_format((float) $arrahn_transaction['total_payment'], 2, '.', '') }}<br>
|
|
norujukan: {{ $arrahn_transaction['norujukan'] }}
|
|
|
|
</p>
|
|
<br>
|
|
<p class="text-gray-900 whitespace-no-wrap">
|
|
kodcaw: {{ $arrahn_transaction['kodcaw'] }} <br>
|
|
customer_name: {{ $arrahn_transaction['customer_name'] }} <br>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
</td>
|
|
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm">
|
|
<div class="flex items-center">
|
|
<div class="ml-3 text-gray-900 whitespace-no-wrap">
|
|
<div class="flex items-center">
|
|
<div class="ml-3">
|
|
<p class="text-gray-900 whitespace-no-wrap">
|
|
billplz_status : <span
|
|
class="inline-block bg-green-600 text-white px-2 py-0.5 rounded text-xs font-medium">{{ $data['billplz_bill']['state'] ?? '' }}</span>
|
|
<br>
|
|
billplz_paid_amount:
|
|
{{ number_format($data['billplz_bill']['paid_amount']['amount'] / 100, 2, '.', '') }}
|
|
<br>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<br>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
@empty
|
|
<tr>
|
|
<x-table.data colspan="3" class="text-center" content="No data available" />
|
|
</tr>
|
|
@endforelse
|
|
</x-slot>
|
|
</x-table>
|
|
</div>
|
|
@endsection
|