Update codebase :

- Add basic blade components based on already existing element on app
- Add module to view online transaction trail, serve as debugger
- Add module to review arrahn transaction vs billplz transaction, serve as debugger
- Fix tetapan/payable-ujrah-branches error on api response
- Add arrahn pay portal api url link in config. The billplz data is query from there
This commit is contained in:
Afiq Hamzah
2024-07-15 16:43:14 +08:00
parent c083c260cc
commit 9943ec892e
25 changed files with 1151 additions and 139 deletions
+2
View File
@@ -3,6 +3,8 @@ APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
API_URL=http://api.arrahn.com.my
API_ARRAHN_PORTAL_URL=http://pay.arrahn.com.my
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
@@ -0,0 +1,18 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Http;
use Carbon\Carbon;
class BillplzTransactionReviewController extends Controller
{
public function __invoke(Request $request)
{
$date = request()->selectedDate ?? Carbon::now()->toDateString();
$billPlzTransactionReview = Http::get(config('api.url_arrahn_portal') . '/api/billplz-transaction-review', ['date' => $date])->json();
return view('online.billplz-transaction-review.index', compact('billPlzTransactionReview', 'date'));
}
}
@@ -0,0 +1,30 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Http;
use Carbon\Carbon;
class OnlineTransactionTrailController extends Controller
{
public function __invoke(Request $request)
{
if ($request->has('selectedDate') && request()->selectedDate == null) {
return redirect()->back()->with('errormessage', 'Sila pilih tarikh!');
}
$date = $request->selectedDate ?? Carbon::now()->toDateString();
$norujukan = $request->norujukan ?? '';
$isGroupedByNorujukan = $request->groupedByNorujukan === 'on' ? true : false;
$transactionTrail = Http::arrahn()
->get('/api/transaction/online/trail', [
'date' => $date,
'norujukan' => $norujukan,
'isGroupedByNorujukan' => $isGroupedByNorujukan,
])
->json();
return view('online.trail.index', compact('transactionTrail', 'date', 'norujukan'));
}
}
+1 -1
View File
@@ -39,7 +39,7 @@ class TetapanController extends Controller
$api_url = config('api.url');
$auth_user = Auth::user();
$payable_cawangan = json_decode(Http::get(config('api.url') . '/api/payable-ujrah-branches')->json());
$payable_cawangan = Http::get(config('api.url') . '/api/payable-ujrah-branches')->json();
return view('tetapan.payable-ujrah-branches', compact('api_url', 'auth_user', 'payable_cawangan'));
}
+11 -1
View File
@@ -2,7 +2,9 @@
namespace App\Providers;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\ServiceProvider;
use Illuminate\Http\Client\PendingRequest;
class AppServiceProvider extends ServiceProvider
{
@@ -23,6 +25,14 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
//
Http::macro('arrahn', function () {
return Http::withOptions(['verify' => config('app.api_verify')])->baseUrl(config('api.url'));
});
PendingRequest::macro('arrahn', function () {
$this->options['verify'] = config('app.api_verify');
$this->baseUrl(config('api.url'));
return $this;
});
}
}
+3 -2
View File
@@ -1,4 +1,5 @@
<?php
return [
'url' => env('API_URL')
];
'url' => env('API_URL'),
'url_arrahn_portal' => env('API_ARRAHN_PORTAL_URL')
];
@@ -0,0 +1,12 @@
@props([
'title' => '',
])
<div>
<ol class="list-reset flex text-grey-dark mb-4 rounded">
<li class="bg-gray-500 py-2 px-4 rounded text-white"><a href="/"><i class="far fa-folder mr-2"></i>Home</a>
</li>
<li class="mt-2"><span class="mx-2"><i class="fas fa-angle-double-right"></i></span></li>
<li class="bg-yellow-600 py-2 px-4 rounded text-white"><a href="#"><i class="mr-2 fas fa-file-alt"></i>{{ $title }}</a></li>
</ol>
</div>
@@ -0,0 +1,92 @@
@props([
'title' => '',
'action' => '',
'selectedDate' => '',
'norujukan' => '',
])
<div class="px-4">
<div class="container">
<div class="flex w-full">
<div class=" p-8 pb-4 pt-0 mx-auto">
<div class="bg-yellow-600 text-gray-200 text-lg px-6 py-2 rounded-t-lg"><a href="/akaunhome"
class="router-link-active"><i class="fas fa-backspace text-white"></i></a> <span
class="text-center mx-auto text-white font-bold">{{ $title }} </span></div>
<form method="get" action="{{ $action }}">
<div class="rounded bg-white shadow p-6 pb-0 pt-4">
<div class="pb-6">
<label for="username" class="font-semibold text-gray-700 block pb-1">Tarikh</label>
<div class="flex">
<span class="text-gray-600 border border-2 rounded-l px-4 py-2 whitespace-no-wrap"
style="background-color: rgb(249, 250, 251);">Pada
</span>
<input id="tarikhmula" name="selectedDate" type="date"
class="border border-2 border-l-0 rounded-r px-4 py-2 w-80r mr-2"
value="{{ $selectedDate }}">
<span class="text-gray-600 border border-2 rounded-l px-4 py-2 whitespace-no-wrap"
style="background-color: rgb(249, 250, 251);">
Nombor Rujukan
</span>
<input id="norujukan" name="norujukan" type="text" value="{{ $norujukan }}"
class="border border-2 border-l-0 rounded-r px-4 py-2 w-80r mr-2">
<label for="toggle" class="flex items-center cursor-pointer mx-4">
<div class="mr-3 text-gray-700 font-medium">
NOT GROUP
</div>
<div class="relative">
<input type="checkbox" id="toggle" class="sr-only" name="groupedByNorujukan"/>
<div class="w-10 h-4 bg-gray-400 rounded-full shadow-inner"></div>
<div
class="dot absolute w-6 h-6 bg-white rounded-full shadow -left-1 -top-1 transition">
</div>
</div>
<div class="ml-3 text-gray-700 font-medium">
GROUP
</div>
</label>
<button
class="border border-yellow-600 text-yellow-600 font-montserrat py-2 px-8 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300">
<i class="fas fa-eye mr-2"></i>View
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
@push('additional_scripts')
<script>
document.addEventListener("DOMContentLoaded", function() {
const toggle = document.querySelector('#toggle');
const dot = document.querySelector('.dot');
// get query parameters from the url
const urlParams = new URLSearchParams(window.location.search);
const isGroupedByNorujukan = urlParams.get('groupedByNorujukan');
if (isGroupedByNorujukan === 'on') {
dot.classList.add('transform', 'translate-x-full', 'bg-green-500');
dot.classList.remove('bg-white');
} else {
dot.classList.remove('transform', 'translate-x-full', 'bg-green-500');
dot.classList.add('bg-white');
}
toggle.addEventListener('change', function() {
if (toggle.checked) {
dot.classList.add('transform', 'translate-x-full', 'bg-green-500');
dot.classList.remove('bg-white');
} else {
dot.classList.remove('transform', 'translate-x-full', 'bg-green-500');
dot.classList.add('bg-white');
}
});
});
</script>
@endpush
@@ -0,0 +1,38 @@
@props([
'title' => '',
'action' => '',
'selectedDate' => '',
])
<div class="px-4">
<div class="container">
<div class="flex w-full">
<div class=" p-8 pb-4 pt-0 mx-auto">
<div class="bg-yellow-600 text-gray-200 text-lg px-6 py-2 rounded-t-lg">
<a href="/akaunhome" class="router-link-active"><i class="fas fa-backspace text-white"></i>
</a>
<span class="text-center mx-auto text-white font-bold">{{ $title }} </span>
</div>
<form method="get" action="{{ $action }}">
<div class="rounded bg-white shadow p-6 pb-0 pt-4">
<div class="pb-6">
<label for="date" class="font-semibold text-gray-700 block pb-1">Tarikh</label>
<div class="flex">
<span class="text-gray-600 border border-2 rounded-l px-4 py-2 whitespace-no-wrap"
style="background-color: rgb(249, 250, 251);">Pada
</span>
<input id="selectedDate" name="selectedDate" type="date"
class="border border-2 border-l-0 rounded-r px-4 py-2 w-80r mr-2"
value="{{ $selectedDate }}">
<button
class="border border-yellow-600 text-yellow-600 font-montserrat py-2 px-8 font-medium rounded-xl hover:bg-yellow-600 hover:text-white transition-all duration-300 ml-8">
<i class="fas fa-eye mr-2"></i>View
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
@@ -0,0 +1,12 @@
<div>
<table class="min-w-full leading-normal table-responsive">
<thead class="text-center">
<tr>
{{ $header }}
</tr>
</thead>
<tbody>
{{ $body }}
</tbody>
</table>
</div>
@@ -0,0 +1,13 @@
@props(['content'])
<div>
<td class="px-5 py-5 border-b border-gray-200 bg-white text-sm" {{ $attributes->merge(['colspan' => '']) }}>
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap">
{{ $content }}</p>
</div>
</div>
</td>
</div>
@@ -0,0 +1,9 @@
@props(['content'])
<div>
<th
class="px-5 py-3 border-b-2 border-gray-200 bg-gray-100 text-left text-xs font-semibold text-gray-600 uppercase tracking-wider">
{{ $content }}
</th>
</div>
@@ -0,0 +1,8 @@
@props([
'tabContent' => '',
'scrollDirection' => '',
])
<div class="scroll-arrow {{ $scrollDirection }}-arrow" onclick='scrollContent("{{ $tabContent }}", "{{ $scrollDirection }}")'>
<i class="fas fa-chevron-{{ $scrollDirection }}"></i>
</div>
+176 -130
View File
@@ -20,13 +20,10 @@
@if(Auth::user()->roles == 'admin')
<a href="{{ route('home') }}"
class="rounded mr-2 mb-2 {{ Route::is('home') || Route::is('home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('home') }}" class="rounded mr-2 mb-2 {{ Route::is('home') || Route::is('home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-500 hover:text-gray-500 cursor-pointer items-center">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-grid" width="18"
height="18" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-grid" width="18" height="18" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z"></path>
<rect x="4" y="4" width="6" height="6" rx="1"></rect>
<rect x="14" y="4" width="6" height="6" rx="1"></rect>
@@ -37,38 +34,32 @@
</div>
</li>
</a>
<a href="{{ route('alirantunai') }}"
class="rounded mb-2 mr-2 {{ Route::is('alirantunai') || Route::is('alirantunai.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('alirantunai') }}" class="rounded mb-2 mr-2 {{ Route::is('alirantunai') || Route::is('alirantunai.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-cash-stack" viewBox="0 0 16 16">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-cash-stack" viewBox="0 0 16 16">
<path d="M1 3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1H1zm7 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4z" />
<path
d="M0 5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V5zm3 0a2 2 0 0 1-2 2v4a2 2 0 0 1 2 2h10a2 2 0 0 1 2-2V7a2 2 0 0 1-2-2H3z" />
<path d="M0 5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V5zm3 0a2 2 0 0 1-2 2v4a2 2 0 0 1 2 2h10a2 2 0 0 1 2-2V7a2 2 0 0 1-2-2H3z" />
</svg>
<span class="ml-2 text-lg">Tunai</span>
</div>
</li>
</a>
<a href="{{ route('petibesi') }}"
class="rounded mb-2 mr-2 {{ Route::is('petibesi') || Route::is('petibesi.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('petibesi') }}" class="rounded mb-2 mr-2 {{ Route::is('petibesi') || Route::is('petibesi.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-safe2" viewBox="0 0 16 16">
<path
d="M1 2.5A1.5 1.5 0 0 1 2.5 1h12A1.5 1.5 0 0 1 16 2.5v12a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 1 14.5V14H.5a.5.5 0 0 1 0-1H1V9H.5a.5.5 0 0 1 0-1H1V4H.5a.5.5 0 0 1 0-1H1v-.5zM2.5 2a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5v-12a.5.5 0 0 0-.5-.5h-12z" />
<path
d="M5.035 8h1.528c.047-.184.12-.357.214-.516l-1.08-1.08A3.482 3.482 0 0 0 5.035 8zm1.369-2.303 1.08 1.08c.16-.094.332-.167.516-.214V5.035a3.482 3.482 0 0 0-1.596.662zM9 5.035v1.528c.184.047.357.12.516.214l1.08-1.08A3.482 3.482 0 0 0 9 5.035zm2.303 1.369-1.08 1.08c.094.16.167.332.214.516h1.528a3.483 3.483 0 0 0-.662-1.596zM11.965 9h-1.528c-.047.184-.12.357-.214.516l1.08 1.08A3.483 3.483 0 0 0 11.965 9zm-1.369 2.303-1.08-1.08c-.16.094-.332.167-.516.214v1.528a3.483 3.483 0 0 0 1.596-.662zM8 11.965v-1.528a1.989 1.989 0 0 1-.516-.214l-1.08 1.08A3.483 3.483 0 0 0 8 11.965zm-2.303-1.369 1.08-1.08A1.988 1.988 0 0 1 6.563 9H5.035c.085.593.319 1.138.662 1.596zM4 8.5a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0zm4.5-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" />
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-safe2" viewBox="0 0 16 16">
<path d="M1 2.5A1.5 1.5 0 0 1 2.5 1h12A1.5 1.5 0 0 1 16 2.5v12a1.5 1.5 0 0 1-1.5 1.5h-12A1.5 1.5 0 0 1 1 14.5V14H.5a.5.5 0 0 1 0-1H1V9H.5a.5.5 0 0 1 0-1H1V4H.5a.5.5 0 0 1 0-1H1v-.5zM2.5 2a.5.5 0 0 0-.5.5v12a.5.5 0 0 0 .5.5h12a.5.5 0 0 0 .5-.5v-12a.5.5 0 0 0-.5-.5h-12z" />
<path d="M5.035 8h1.528c.047-.184.12-.357.214-.516l-1.08-1.08A3.482 3.482 0 0 0 5.035 8zm1.369-2.303 1.08 1.08c.16-.094.332-.167.516-.214V5.035a3.482 3.482 0 0 0-1.596.662zM9 5.035v1.528c.184.047.357.12.516.214l1.08-1.08A3.482 3.482 0 0 0 9 5.035zm2.303 1.369-1.08 1.08c.094.16.167.332.214.516h1.528a3.483 3.483 0 0 0-.662-1.596zM11.965 9h-1.528c-.047.184-.12.357-.214.516l1.08 1.08A3.483 3.483 0 0 0 11.965 9zm-1.369 2.303-1.08-1.08c-.16.094-.332.167-.516.214v1.528a3.483 3.483 0 0 0 1.596-.662zM8 11.965v-1.528a1.989 1.989 0 0 1-.516-.214l-1.08 1.08A3.483 3.483 0 0 0 8 11.965zm-2.303-1.369 1.08-1.08A1.988 1.988 0 0 1 6.563 9H5.035c.085.593.319 1.138.662 1.596zM4 8.5a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0zm4.5-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2z" />
</svg>
<span class="ml-2 text-lg">Peti Besi</span>
</div>
</li>
</a>
<<<<<<< HEAD
{{-- <a href="{{ route('tetapanaros') }}"
class="rounded mb-2 mr-2 {{ Route::is('tetapanaros') || Route::is('tetapanaros.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
@@ -87,12 +78,13 @@
<a href="{{ route('pelanggan') }}"
class="rounded mb-2 mr-2 {{ Route::is('pelanggan') || Route::is('pelanggan.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
=======
<a href="{{ route('pelanggan') }}" class="rounded mb-2 mr-2 {{ Route::is('pelanggan') || Route::is('pelanggan.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
>>>>>>> cb7a1c06 (Update codebase :)
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-person-bounding-box" viewBox="0 0 16 16">
<path
d="M1.5 1a.5.5 0 0 0-.5.5v3a.5.5 0 0 1-1 0v-3A1.5 1.5 0 0 1 1.5 0h3a.5.5 0 0 1 0 1h-3zM11 .5a.5.5 0 0 1 .5-.5h3A1.5 1.5 0 0 1 16 1.5v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 1-.5-.5zM.5 11a.5.5 0 0 1 .5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 1 0 1h-3A1.5 1.5 0 0 1 0 14.5v-3a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v3a1.5 1.5 0 0 1-1.5 1.5h-3a.5.5 0 0 1 0-1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 1 .5-.5z" />
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-bounding-box" viewBox="0 0 16 16">
<path d="M1.5 1a.5.5 0 0 0-.5.5v3a.5.5 0 0 1-1 0v-3A1.5 1.5 0 0 1 1.5 0h3a.5.5 0 0 1 0 1h-3zM11 .5a.5.5 0 0 1 .5-.5h3A1.5 1.5 0 0 1 16 1.5v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 1-.5-.5zM.5 11a.5.5 0 0 1 .5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 1 0 1h-3A1.5 1.5 0 0 1 0 14.5v-3a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v3a1.5 1.5 0 0 1-1.5 1.5h-3a.5.5 0 0 1 0-1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 1 .5-.5z" />
<path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm8-9a3 3 0 1 1-6 0 3 3 0 0 1 6 0z" />
</svg>
<span class="ml-2 text-lg">Pelanggan</span>
@@ -100,14 +92,11 @@
</li>
</a>
<a href="{{ route('online') }}"
class="rounded mb-2 mr-2 {{ Route::is('online') || Route::is('online.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('online') }}" class="rounded mb-2 mr-2 {{ Route::is('online') || Route::is('online.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M5.636 18.364a9 9 0 010-12.728m12.728 0a9 9 0 010 12.728m-9.9-2.829a5 5 0 010-7.07m7.072 0a5 5 0 010 7.07M13 12a1 1 0 11-2 0 1 1 0 012 0z" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.636 18.364a9 9 0 010-12.728m12.728 0a9 9 0 010 12.728m-9.9-2.829a5 5 0 010-7.07m7.072 0a5 5 0 010 7.07M13 12a1 1 0 11-2 0 1 1 0 012 0z" />
</svg>
<span class="ml-2 text-lg">Online</span>
</div>
@@ -115,28 +104,29 @@
</a>
<a href="{{ route('akaun.home') }}"
class="rounded mb-2 mr-2 {{ Route::is('akaun.home') || Route::is('akaun.home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('akaun.home') }}" class="rounded mb-2 mr-2 {{ Route::is('akaun.home') || Route::is('akaun.home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
</svg>
<span class="ml-2 text-lg">Laporan</span>
</div>
</li>
</a>
<a href="{{ route('poskod.index') }}"
class="rounded mb-2 mr-2 {{ Route::is('poskod.index') || Route::is('poskod.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('poskod.index') }}" class="rounded mb-2 mr-2 {{ Route::is('poskod.index') || Route::is('poskod.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M21.75 6.75v10.5a2.25 2.25 0 01-2.25 2.25h-15a2.25 2.25 0 01-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25m19.5 0v.243a2.25 2.25 0 01-1.07 1.916l-7.5 4.615a2.25 2.25 0 01-2.36 0L3.32 8.91a2.25 2.25 0 01-1.07-1.916V6.75" />
<<<<<<< HEAD
</svg>
<span class="ml-2 text-lg">Poskod</span>
=======
</svg>
<span class="text-sm ml-2 text-lg">Poskod</span>
>>>>>>> cb7a1c06 (Update codebase :)
</div>
</li>
</a>
@@ -144,10 +134,8 @@
{{-- <a href="#" class="rounded mb-2 mr-2 {{ Route::is('online') || Route::is('online.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z" />
</svg>
<span class="ml-2 text-lg">Permissions</span>
</div>
@@ -157,13 +145,10 @@
@elseif(Auth::user()->roles == 'operasi')
<a href="{{ route('home') }}"
class="rounded mr-2 mb-2 {{ Route::is('home') || Route::is('home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('home') }}" class="rounded mr-2 mb-2 {{ Route::is('home') || Route::is('home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-500 hover:text-gray-500 cursor-pointer items-center">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-grid" width="18"
height="18" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-grid" width="18" height="18" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z"></path>
<rect x="4" y="4" width="6" height="6" rx="1"></rect>
<rect x="14" y="4" width="6" height="6" rx="1"></rect>
@@ -175,59 +160,47 @@
</li>
</a>
<a href="{{ route('bajet') }}"
class="rounded mb-2 mr-2 {{ Route::is('bajet') || Route::is('bajet.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('bajet') }}" class="rounded mb-2 mr-2 {{ Route::is('bajet') || Route::is('bajet.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M5.636 18.364a9 9 0 010-12.728m12.728 0a9 9 0 010 12.728m-9.9-2.829a5 5 0 010-7.07m7.072 0a5 5 0 010 7.07M13 12a1 1 0 11-2 0 1 1 0 012 0z" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5.636 18.364a9 9 0 010-12.728m12.728 0a9 9 0 010 12.728m-9.9-2.829a5 5 0 010-7.07m7.072 0a5 5 0 010 7.07M13 12a1 1 0 11-2 0 1 1 0 012 0z" />
</svg>
<span class="ml-2 text-lg">Bajet </span>
</div>
</li>
</a>
<a href="{{ route('blacklist') }}"
class="rounded mb-2 mr-2 {{ Route::is('blacklist') || Route::is('blacklist.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('blacklist') }}" class="rounded mb-2 mr-2 {{ Route::is('blacklist') || Route::is('blacklist.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636" />
</svg>
<span class="ml-2 text-lg">Blacklist</span>
</div>
</li>
</a>
<a href="{{ route('lelong') }}"
class="rounded mb-2 mr-2 {{ Route::is('lelong') || Route::is('lelong.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('lelong') }}" class="rounded mb-2 mr-2 {{ Route::is('lelong') || Route::is('lelong.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
{{-- <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18.364 18.364A9 9 0 005.636 5.636m12.728 12.728A9 9 0 015.636 5.636m12.728 12.728L5.636 5.636" />
</svg> --}}
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="currentColor" class="bi bi-hammer"
viewBox="0 0 16 16">
<path
d="M9.972 2.508a.5.5 0 0 0-.16-.556l-.178-.129a5.009 5.009 0 0 0-2.076-.783C6.215.862 4.504 1.229 2.84 3.133H1.786a.5.5 0 0 0-.354.147L.146 4.567a.5.5 0 0 0 0 .706l2.571 2.579a.5.5 0 0 0 .708 0l1.286-1.29a.5.5 0 0 0 .146-.353V5.57l8.387 8.873A.5.5 0 0 0 14 14.5l1.5-1.5a.5.5 0 0 0 .017-.689l-9.129-8.63c.747-.456 1.772-.839 3.112-.839a.5.5 0 0 0 .472-.334z" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="currentColor" class="bi bi-hammer" viewBox="0 0 16 16">
<path d="M9.972 2.508a.5.5 0 0 0-.16-.556l-.178-.129a5.009 5.009 0 0 0-2.076-.783C6.215.862 4.504 1.229 2.84 3.133H1.786a.5.5 0 0 0-.354.147L.146 4.567a.5.5 0 0 0 0 .706l2.571 2.579a.5.5 0 0 0 .708 0l1.286-1.29a.5.5 0 0 0 .146-.353V5.57l8.387 8.873A.5.5 0 0 0 14 14.5l1.5-1.5a.5.5 0 0 0 .017-.689l-9.129-8.63c.747-.456 1.772-.839 3.112-.839a.5.5 0 0 0 .472-.334z" />
</svg>
<span class="ml-2 text-lg">Lelong</span>
</div>
</li>
</a>
<a href="{{ route('wtd.index') }}"
class="rounded mb-2 mr-2 {{ Route::is('wtd') || Route::is('wtd.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('wtd.index') }}" class="rounded mb-2 mr-2 {{ Route::is('wtd') || Route::is('wtd.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m2 4h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M17 9V7a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2m2 4h10a2 2 0 002-2v-6a2 2 0 00-2-2H9a2 2 0 00-2 2v6a2 2 0 002 2zm7-5a2 2 0 11-4 0 2 2 0 014 0z" />
</svg>
<span class="ml-2 text-lg">WTD</span>
</div>
@@ -235,6 +208,7 @@
</a>
{{-- <a href="{{ route('tetapan') }}"
<<<<<<< HEAD
class="rounded mb-2 mr-2
{{ Route::is('tetapan') || Route::is('tetapan.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
@@ -251,30 +225,41 @@
</a> --}}
<a href="{{ route('tetapan.home') }}"
=======
>>>>>>> cb7a1c06 (Update codebase :)
class="rounded mb-2 mr-2
{{ Route::is('tetapan.home') || Route::is('tetapan.home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
{{ Route::is('tetapan') || Route::is('tetapan.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round"
d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z" />
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z" />
<path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
<span class="ml-2 text-lg">Tetapan</span>
</div>
</li>
</a>
</a> --}}
<a href="{{ route('tetapan.home') }}" class="rounded mb-2 mr-2
{{ Route::is('tetapan.home') || Route::is('tetapan.home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.324.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 011.37.49l1.296 2.247a1.125 1.125 0 01-.26 1.431l-1.003.827c-.293.24-.438.613-.431.992a6.759 6.759 0 010 .255c-.007.378.138.75.43.99l1.005.828c.424.35.534.954.26 1.43l-1.298 2.247a1.125 1.125 0 01-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.57 6.57 0 01-.22.128c-.331.183-.581.495-.644.869l-.213 1.28c-.09.543-.56.941-1.11.941h-2.594c-.55 0-1.02-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 01-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 01-1.369-.49l-1.297-2.247a1.125 1.125 0 01.26-1.431l1.004-.827c.292-.24.437-.613.43-.992a6.932 6.932 0 010-.255c.007-.378-.138-.75-.43-.99l-1.004-.828a1.125 1.125 0 01-.26-1.43l1.297-2.247a1.125 1.125 0 011.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.087.22-.128.332-.183.582-.495.644-.869l.214-1.281z" />
<path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
</svg>
<span class="text-sm ml-2 text-lg">Tetapan</span>
</div>
</li>
</a>
{{-- <a href="{{ route('kelulusan') }}" class="rounded mb-2 mr-2
{{ Route::is('kelulusan') || Route::is('kelulusan.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M14 10h4.764a2 2 0 011.789 2.894l-3.5 7A2 2 0 0115.263 21h-4.017c-.163 0-.326-.02-.485-.06L7 20m7-10V5a2 2 0 00-2-2h-.095c-.5 0-.905.405-.905.905 0 .714-.211 1.412-.608 2.006L7 11v9m7-10h-2M7 20H5a2 2 0 01-2-2v-6a2 2 0 012-2h2.5" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14 10h4.764a2 2 0 011.789 2.894l-3.5 7A2 2 0 0115.263 21h-4.017c-.163 0-.326-.02-.485-.06L7 20m7-10V5a2 2 0 00-2-2h-.095c-.5 0-.905.405-.905.905 0 .714-.211 1.412-.608 2.006L7 11v9m7-10h-2M7 20H5a2 2 0 01-2-2v-6a2 2 0 012-2h2.5" />
</svg>
<span class="ml-2 text-lg">Kelulusan</span>
</div>
@@ -282,41 +267,48 @@
</a> --}}
<a href="{{ route('akaun.home') }}"
class="rounded mb-2 mr-2 {{ Route::is('akaun.home') || Route::is('akaun.home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('akaun.home') }}" class="rounded mb-2 mr-2 {{ Route::is('akaun.home') || Route::is('akaun.home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
</svg>
<span class="ml-2 text-lg">Laporan</span>
</div>
</li>
</a>
<a href="{{ route('reports') }}"
class="rounded mb-2 mr-2 {{ Route::is('reports') || Route::is('reports.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('reports') }}" class="rounded mb-2 mr-2 {{ Route::is('reports') || Route::is('reports.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
</svg>
<span class="ml-2 text-lg">Laporan Keseluruhan</span>
</div>
</li>
</a>
<a href="{{ route('transaction.online.trail') }}" class="rounded mb-2 mr-2 {{ Route::is('transaction.online') || Route::is('transaction.online.trail') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg fill="#000000" width="28px" height="28px" viewBox="0 0 256 256" id="Flat" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M208,72V184a7.99989,7.99989,0,0,1-8,8H176V104L136,64H80V40.00006a7.99989,7.99989,0,0,1,8-8L168,32Z" opacity="0.2"></path> <path d="M213.65723,66.34326l-40-40A8.00076,8.00076,0,0,0,168,24H88A16.01833,16.01833,0,0,0,72,40V56H56A16.01833,16.01833,0,0,0,40,72V216a16.01833,16.01833,0,0,0,16,16H168a16.01833,16.01833,0,0,0,16-16V200h16a16.01833,16.01833,0,0,0,16-16V72A8.00035,8.00035,0,0,0,213.65723,66.34326ZM168,216H56V72h76.68652L168,107.314l.00781,84.53083c-.001.05212-.00781.10284-.00781.15521,0,.05255.00684.10345.00781.15576l.002,23.84375Zm32-32H184V104a8.00035,8.00035,0,0,0-2.34277-5.65674l-40-40A8.00076,8.00076,0,0,0,136,56H88V40h76.68652L200,75.314Zm-56-32a8.00008,8.00008,0,0,1-8,8H88a8,8,0,0,1,0-16h48A8.00008,8.00008,0,0,1,144,152Zm0,32a8.00008,8.00008,0,0,1-8,8H88a8,8,0,0,1,0-16h48A8.00008,8.00008,0,0,1,144,184Z"></path> </g></svg>
<span class="text-sm ml-2 text-lg">Trail Transaksi Online</span>
</div>
</li>
</a>
<a href="{{ route('transaction.online.billplz-transaction-review') }}" class="rounded mb-2 mr-2 {{ Route::is('transaction.online') || Route::is('transaction.online.billplz-transaction-review') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg version="1.1" id="_x32_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="28px" height="28px" viewBox="0 0 512 512" xml:space="preserve" fill="#000000"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <style type="text/css"> .st0{fill:#000000;} </style> <g> <rect x="136" y="400" class="st0" width="48" height="48"></rect> <rect x="136" y="320" class="st0" width="48" height="48"></rect> <rect x="136" y="240" class="st0" width="48" height="48"></rect> <rect x="232" y="400" class="st0" width="48" height="48"></rect> <rect x="232" y="320" class="st0" width="48" height="48"></rect> <rect x="232" y="240" class="st0" width="48" height="48"></rect> <rect x="328" y="320" class="st0" width="48" height="128"></rect> <rect x="328" y="240" class="st0" width="48" height="48"></rect> <path class="st0" d="M394.656,0H117.359C92.313,0,72,20.313,72,45.344v421.313C72,491.688,92.313,512,117.359,512h277.297 C419.703,512,440,491.688,440,466.656V45.344C440,20.313,419.703,0,394.656,0z M136,72h240v80H136V72z M416,466.656 c0,11.766-9.578,21.344-21.344,21.344H117.359C105.594,488,96,478.422,96,466.656V197.328h320V466.656z"></path> </g> </g></svg>
<span class="text-sm ml-2 text-lg">Review Transaksi Billplz</span>
</div>
</li>
</a>
{{-- <a href="{{ route('permohonan.index') }}" class="rounded mb-2 mr-2
{{ Route::is('permohonan') || Route::is('permohonan.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z" />
</svg>
<span class="ml-2 text-lg">Permohonan</span>
</div>
@@ -325,28 +317,22 @@
@elseif(Auth::user()->roles == 'akaun')
<a href="{{ route('audit.index') }}"
class="rounded mb-2 mr-2 {{ Route::is('audit.index') || Route::is('audit.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('audit.index') }}" class="rounded mb-2 mr-2 {{ Route::is('audit.index') || Route::is('audit.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
</svg>
<span class="ml-2 text-lg">Audit</span>
</div>
</li>
</a>
<a href="{{ route('akaun.home') }}"
class="rounded mb-2 mr-2 {{ Route::is('akaun.home') || Route::is('akaun.home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('akaun.home') }}" class="rounded mb-2 mr-2 {{ Route::is('akaun.home') || Route::is('akaun.home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
</svg>
<span class="ml-2 text-lg">Laporan</span>
</div>
@@ -357,10 +343,8 @@
{{ Route::is('permohonan') || Route::is('permohonan.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24"
stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M5 19a2 2 0 01-2-2V7a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1M5 19h14a2 2 0 002-2v-5a2 2 0 00-2-2H9a2 2 0 00-2 2v5a2 2 0 01-2 2z" />
</svg>
<span class="ml-2 text-lg">Permohonan</span>
</div>
@@ -368,6 +352,7 @@
</a> --}}
@elseif(Auth::user()->roles == 'kpo')
<<<<<<< HEAD
<a href="{{ route('home') }}"
class="rounded mr-2 mb-2 {{ Route::is('home') || Route::is('home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li
@@ -435,20 +420,75 @@
<a href="{{ route('pelanggan') }}"
class="rounded mb-2 mr-2 {{ Route::is('pelanggan') || Route::is('pelanggan.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
=======
<a href="{{ route('home') }}" class="rounded mr-2 mb-2 {{ Route::is('home') || Route::is('home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-500 hover:text-gray-500 cursor-pointer items-center">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-grid" width="18" height="18" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z"></path>
<rect x="4" y="4" width="6" height="6" rx="1">
</rect>
<rect x="14" y="4" width="6" height="6" rx="1">
</rect>
<rect x="4" y="14" width="6" height="6" rx="1">
</rect>
<rect x="14" y="14" width="6" height="6" rx="1">
</rect>
</svg>
<span class="text-sm ml-2 text-lg">Dashboard</span>
</div>
</li>
</a>
<a href="{{ route('akaun.home') }}" class="rounded mb-2 mr-2 {{ Route::is('akaun.home') || Route::is('akaun.home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
>>>>>>> cb7a1c06 (Update codebase :)
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-person-bounding-box" viewBox="0 0 16 16">
<path
d="M1.5 1a.5.5 0 0 0-.5.5v3a.5.5 0 0 1-1 0v-3A1.5 1.5 0 0 1 1.5 0h3a.5.5 0 0 1 0 1h-3zM11 .5a.5.5 0 0 1 .5-.5h3A1.5 1.5 0 0 1 16 1.5v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 1-.5-.5zM.5 11a.5.5 0 0 1 .5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 1 0 1h-3A1.5 1.5 0 0 1 0 14.5v-3a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v3a1.5 1.5 0 0 1-1.5 1.5h-3a.5.5 0 0 1 0-1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 1 .5-.5z" />
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
</svg>
<span class="text-sm ml-2 text-lg">Laporan</span>
</div>
</li>
</a>
@elseif(Auth::user()->roles == 'callcenter')
<a href="{{ route('home') }}" class="rounded mr-2 mb-2 {{ Route::is('home') || Route::is('home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-500 hover:text-gray-500 cursor-pointer items-center">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-grid" width="18" height="18" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z"></path>
<rect x="4" y="4" width="6" height="6" rx="1">
</rect>
<rect x="14" y="4" width="6" height="6" rx="1">
</rect>
<rect x="4" y="14" width="6" height="6" rx="1">
</rect>
<rect x="14" y="14" width="6" height="6" rx="1">
</rect>
</svg>
<span class="text-sm ml-2 text-lg">Dashboard</span>
</div>
</li>
</a>
<a href="{{ route('pelanggan') }}" class="rounded mb-2 mr-2 {{ Route::is('pelanggan') || Route::is('pelanggan.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-bounding-box" viewBox="0 0 16 16">
<path d="M1.5 1a.5.5 0 0 0-.5.5v3a.5.5 0 0 1-1 0v-3A1.5 1.5 0 0 1 1.5 0h3a.5.5 0 0 1 0 1h-3zM11 .5a.5.5 0 0 1 .5-.5h3A1.5 1.5 0 0 1 16 1.5v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 1-.5-.5zM.5 11a.5.5 0 0 1 .5.5v3a.5.5 0 0 0 .5.5h3a.5.5 0 0 1 0 1h-3A1.5 1.5 0 0 1 0 14.5v-3a.5.5 0 0 1 .5-.5zm15 0a.5.5 0 0 1 .5.5v3a1.5 1.5 0 0 1-1.5 1.5h-3a.5.5 0 0 1 0-1h3a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 1 .5-.5z" />
<path d="M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3zm8-9a3 3 0 1 1-6 0 3 3 0 0 1 6 0z" />
</svg>
<span class="ml-2 text-lg">Pelanggan</span>
</div>
</li>
</a>
</a>
<<<<<<< HEAD
<a href="{{ route('akaun.home') }}"
class="rounded mb-2 mr-2 {{ Route::is('akaun.home') || Route::is('akaun.home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li
@@ -463,6 +503,18 @@
</div>
</li>
</a>
=======
<a href="{{ route('akaun.home') }}" class="rounded mb-2 mr-2 {{ Route::is('akaun.home') || Route::is('akaun.home.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
</svg>
<span class="text-sm ml-2 text-lg">Laporan</span>
</div>
</li>
</a>
>>>>>>> cb7a1c06 (Update codebase :)
@endif
@@ -471,16 +523,12 @@
<hr class="mb-2">
<a href="{{ route('pengguna') }}"
class="rounded mb-2 mr-2 {{ Route::is('pengguna') || Route::is('pengguna.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<a href="{{ route('pengguna') }}" class="rounded mb-2 mr-2 {{ Route::is('pengguna') || Route::is('pengguna.*') ? 'bg-gray-200 rounded text-white-500' : 'hover:bg-yellow-300 ' }}">
<li class="flex w-full justify-between text-gray-600 hover:text-gray-500 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-person-workspace" viewBox="0 0 16 16">
<path
d="M4 16s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H4Zm4-5.95a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z" />
<path
d="M2 1a2 2 0 0 0-2 2v9.5A1.5 1.5 0 0 0 1.5 14h.653a5.373 5.373 0 0 1 1.066-2H1V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v9h-2.219c.554.654.89 1.373 1.066 2h.653a1.5 1.5 0 0 0 1.5-1.5V3a2 2 0 0 0-2-2H2Z" />
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-person-workspace" viewBox="0 0 16 16">
<path d="M4 16s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H4Zm4-5.95a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z" />
<path d="M2 1a2 2 0 0 0-2 2v9.5A1.5 1.5 0 0 0 1.5 14h.653a5.373 5.373 0 0 1 1.066-2H1V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v9h-2.219c.554.654.89 1.373 1.066 2h.653a1.5 1.5 0 0 0 1.5-1.5V3a2 2 0 0 0-2-2H2Z" />
</svg>
<span class="ml-2 text-lg">Pengguna</span>
</div>
@@ -490,10 +538,8 @@
<a href="#" class="hover:bg-yellow-300 rounded mb-2 mr-2">
<li class="flex w-full justify-between text-red-600 cursor-pointer items-center ">
<div class="flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-archive-fill" viewBox="0 0 16 16">
<path
d="M12.643 15C13.979 15 15 13.845 15 12.5V5H1v7.5C1 13.845 2.021 15 3.357 15h9.286zM5.5 7h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zM.8 1a.8.8 0 0 0-.8.8V3a.8.8 0 0 0 .8.8h14.4A.8.8 0 0 0 16 3V1.8a.8.8 0 0 0-.8-.8H.8z" />
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-archive-fill" viewBox="0 0 16 16">
<path d="M12.643 15C13.979 15 15 13.845 15 12.5V5H1v7.5C1 13.845 2.021 15 3.357 15h9.286zM5.5 7h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zM.8 1a.8.8 0 0 0-.8.8V3a.8.8 0 0 0 .8.8h14.4A.8.8 0 0 0 16 3V1.8a.8.8 0 0 0-.8-.8H.8z" />
</svg>
<span class="ml-2 text-lg">Arkib</span>
</div>
@@ -0,0 +1,88 @@
@extends('layouts.app')
@section('content')
<x-breadcrumb title="Billplz Transaction Review" />
<div class="container mx-auto p-4 pt-2">
<x-filter-date-card title="Billplz Transaction Review" action="{{ route('transaction.online.billplz-transaction-review') }}" :selectedDate="$date"/>
@if (Session::has('errormessage'))
<div id="errorMessage" class="bg-red-100 border-red-500 text-red-900 text-sm p-4 rounded-lg mb-4" role="alert">
<div class="flex">
<div class="py-1">
<svg class="fill-current h-6 w-6 text-red-500 mr-4" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20">
<path
d="M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z" />
</svg>
</div>
<div>
<p class="font-bold">{{ Session::get('errormessage') }}</p>
</div>
</div>
</div>
@endif
</div>
<div class="container mx-auto p-4 bg-yellow-50">
<x-table>
<x-slot name="header">
<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 ($billPlzTransactionReview as $data)
<tr>
<x-table.data :content="$data['bill_id']" />
<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">
@foreach ($data['arrahn_transactions'] as $transaction)
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap">
portal: {{ $transaction['portal'] }} <br>
norujukan: {{ $transaction['norujukan'] }} <br>
kodcaw: {{ $transaction['kodcaw'] }} <br>
customer_name: {{ $transaction['customer_name'] }} <br>
nokp: {{ $transaction['nokp'] }} <br>
total_payment: {{ $transaction['total_payment'] }} <br>
status: {{ $transaction['status'] }} <br>
paid_at: {{ $transaction['paid_at'] }} <br>
</p>
</div>
</div>
<br>
@endforeach
</div>
</div>
</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">
bill_id: {{ $data['billplz_latest_transaction']['bill_id'] }} <br>
id: {{ $data['billplz_latest_transaction']['id'] ?? '' }} <br>
status: {{ $data['billplz_latest_transaction']['status'] ?? '' }} <br>
completed_at: {{ $data['billplz_latest_transaction']['completed_at'] ?? '' }} <br>
payment_channel: {{ $data['billplz_latest_transaction']['payment_channel'] ?? '' }} <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
@@ -0,0 +1,217 @@
@extends('layouts.app')
@section('content')
<x-breadcrumb title="Online Payment Trail" />
<div class="container mx-auto p-4 pt-2">
<x-filter-card title="Online Payment Trail" action="{{ route('transaction.online.trail') }}" :selectedDate="$date"
:norujukan="$norujukan" />
@if (Session::has('errormessage'))
<div id="errorMessage" class="bg-red-100 border-red-500 text-red-900 text-sm p-4 rounded-lg mb-4" role="alert">
<div class="flex">
<div class="py-1">
<svg class="fill-current h-6 w-6 text-red-500 mr-4" xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20">
<path
d="M2.93 17.07A10 10 0 1 1 17.07 2.93 10 10 0 0 1 2.93 17.07zm12.73-1.41A8 8 0 1 0 4.34 4.34a8 8 0 0 0 11.32 11.32zM9 11V9h2v6H9v-4zm0-6h2v2H9V5z" />
</svg>
</div>
<div>
<p class="font-bold">{{ Session::get('errormessage') }}</p>
</div>
</div>
</div>
@endif
</div>
<div class="container mx-auto p-4 bg-yellow-50">
<div class="flex border-b border-gray-200 mb-4">
<button class="tab-button active" data-tab="transactions-online">Transactions Online</button>
<button class="tab-button" data-tab="transactions">Transactions</button>
<button class="tab-button" data-tab="transaksi-keuntungan">Transaksi Keuntungan</button>
<button class="tab-button" data-tab="gldetail">GL Detail</button>
</div>
@php
$isGroupedByNorujukan = request()->groupedByNorujukan === 'on' ? true : false;
$pageVariation = $isGroupedByNorujukan ? 'grouped-by-norujukan' : '';
@endphp
<div id="transactions-online" class="tab-content active">
<div class="relative overflow-hidden">
<div class="overflow-x-scroll scroll-content">
@include("online.trail.partials.{$pageVariation}.table-transactions-online")
</div>
</div>
</div>
<div id="transactions" class="tab-content hidden">
<div class="relative overflow-hidden">
<div class="overflow-x-scroll scroll-content">
@include("online.trail.partials.{$pageVariation}.table-transactions")
</div>
</div>
</div>
<div id="transaksi-keuntungan" class="tab-content hidden">
<div class="relative overflow-hidden">
<div class="overflow-x-scroll scroll-content">
@include("online.trail.partials.{$pageVariation}.table-transaksi-keuntungan")
</div>
</div>
</div>
<div id="gldetail" class="tab-content hidden">
<div class="relative overflow-hidden">
<div class="overflow-x-scroll scroll-content">
@include("online.trail.partials.{$pageVariation}.table-gldetail")
</div>
</div>
</div>
</div>
@endsection
@push('additional_scripts')
<script>
(function() {
setTimeout(function() {
var errorMessage = document.getElementById('errorMessage');
if (errorMessage) {
errorMessage.style.display = 'none';
}
}, 3000);
})();
document.addEventListener('DOMContentLoaded', function() {
const tabButtons = document.querySelectorAll('.tab-button');
const tabContents = document.querySelectorAll('.tab-content');
tabButtons.forEach(button => {
button.addEventListener('click', () => {
const tabId = button.getAttribute('data-tab');
// Deactivate all tabs
tabButtons.forEach(btn => btn.classList.remove('active'));
tabContents.forEach(content => content.classList.remove('active'));
// Activate the clicked tab
button.classList.add('active');
console.log(tabId)
document.getElementById(tabId).classList.add('active');
});
});
});
function scrollContent(tabId, direction) {
const scrollContainer = document.querySelector(`#${tabId} .scroll-content`);
const scrollAmount = 300; // Adjust this value to control scroll distance
if (direction === 'left') {
scrollContainer.scrollLeft -= scrollAmount;
} else {
scrollContainer.scrollLeft += scrollAmount;
}
}
</script>
<script>
document.addEventListener('DOMContentLoaded', function() {
let scrollableContents = document.querySelectorAll('.scroll-content');
scrollableContents.forEach(x => attachScrollEvents(x));
function attachScrollEvents(scrollableDiv) {
let isMouseDown = false;
let startX;
let scrollLeft;
let longPressTimer;
scrollableDiv.addEventListener('mousedown', function(e) {
isMouseDown = false;
startX = e.pageX - scrollableDiv.offsetLeft;
scrollLeft = scrollableDiv.scrollLeft;
// Start a timer for long press
longPressTimer = setTimeout(() => {
isMouseDown = true;
scrollableDiv.style.cursor = 'grabbing';
}, 200); // Adjust this value to change how long a "long press" is
});
scrollableDiv.addEventListener('mouseleave', function() {
isMouseDown = false;
scrollableDiv.style.cursor = 'grab';
clearTimeout(longPressTimer);
});
scrollableDiv.addEventListener('mouseup', function() {
isMouseDown = false;
scrollableDiv.style.cursor = 'grab';
clearTimeout(longPressTimer);
});
scrollableDiv.addEventListener('mousemove', function(e) {
if (!isMouseDown) return;
e.preventDefault();
const x = e.pageX - scrollableDiv.offsetLeft;
const walk = (x - startX) * 8; // Adjust scrolling speed here
scrollableDiv.scrollLeft = scrollLeft - walk;
});
}
});
</script>
@endpush
@push('additional_styles')
<style>
.tab-button {
padding: 10px 15px;
background-color: #f3f4f6;
border: none;
cursor: pointer;
transition: background-color 0.3s;
}
.tab-button.active {
background-color: #ffffff;
border-bottom: 2px solid #3b82f6;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.relative {
position: relative;
}
.scroll-arrow {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: rgba(0, 0, 0, 0.5);
color: white;
padding: 10px;
cursor: pointer;
z-index: 10;
}
.left-arrow {
left: 0;
}
.right-arrow {
right: 0;
}
.scroll-content {
max-width: 100%;
overflow-x: auto;
scroll-behavior: smooth;
}
</style>
@endpush
@@ -0,0 +1,58 @@
<div>
<x-table.horizontal-scroller scrollDirection="right" tabContent="glDetail" />
@forelse ($transactionTrail['glDetail'] as $norujukan => $transaction)
<span>
<h1 class="p-3 pb-4 font-bold">{{ $norujukan }}</h1>
</span>
<x-table>
<x-slot name="header">
<x-table.header content="kodcaw" />
<x-table.header content="recno" />
<x-table.header content="tarikh" />
<x-table.header content="dtacct" />
<x-table.header content="ktacct" />
<x-table.header content="descpt" />
<x-table.header content="acttype" />
<x-table.header content="fracttype" />
<x-table.header content="amaun" />
<x-table.header content="teller" />
<x-table.header content="pelulus" />
<x-table.header content="terima" />
<x-table.header content="jenisbyr" />
<x-table.header content="bkcode" />
<x-table.header content="nocek" />
<x-table.header content="pendahuluan" />
<x-table.header content="serahan" />
</x-slot>
<x-slot name="body">
@foreach ($transaction as $data)
<tr>
<x-table.data :content="$data['kodcaw']" />
<x-table.data :content="$data['recno']" />
<x-table.data :content="$data['tarikh']" />
<x-table.data :content="$data['dtacct']" />
<x-table.data :content="$data['ktacct']" />
<x-table.data :content="$data['descpt']" />
<x-table.data :content="$data['acttype']" />
<x-table.data :content="$data['fracttype']" />
<x-table.data :content="$data['amaun']" />
<x-table.data :content="$data['teller']" />
<x-table.data :content="$data['pelulus']" />
<x-table.data :content="$data['terima']" />
<x-table.data :content="$data['jenisbyr']" />
<x-table.data :content="$data['bkcode']" />
<x-table.data :content="$data['nocek']" />
<x-table.data :content="$data['pendahuluan']" />
<x-table.data :content="$data['serahan']" />
</tr>
@endforeach
</x-slot>
</x-table>
<x-table.horizontal-scroller scrollDirection="left" tabContent="glDetail" />
@ @empty
<div class="bg-white text-center py-6">
No data available for the date selected
</div>
@endforelse
</div>
@@ -0,0 +1,60 @@
<div>
<x-table.horizontal-scroller scrollDirection="left" tabContent="transactions-online" />
@forelse ($transactionTrail['transactionsOnline'] as $norujukan => $transaction)
<span>
<h1 class="p-3 pb-4 font-bold">{{ $norujukan }}</h1>
</span>
<x-table>
<x-slot name="header">
<x-table.header content="id" />
<x-table.header content="nokp" />
<x-table.header content="customer_name" />
<x-table.header content="reference_no" />
<x-table.header content="nosiri" />
<x-table.header content="billplz_id" />
<x-table.header content="norujukan" />
<x-table.header content="kodcaw" />
<x-table.header content="total_payment" />
<x-table.header content="tarikh" />
<x-table.header content="masa" />
<x-table.header content="status" />
<x-table.header content="paid_at" />
<x-table.header content="update_status" />
<x-table.header content="update_serahan" />
<x-table.header content="tempohbayar" />
<x-table.header content="tagportal" />
<x-table.header content="jenisbayaran" />
</x-slot>
<x-slot name="body">
@foreach ($transaction as $data)
<tr>
<x-table.data :content="$data['id']" />
<x-table.data :content="$data['nokp']" />
<x-table.data :content="$data['customer_name']" />
<x-table.data :content="$data['reference_no']" />
<x-table.data :content="$data['nosiri']" />
<x-table.data :content="$data['billplz_id']" />
<x-table.data :content="$data['norujukan']" />
<x-table.data :content="$data['kodcaw']" />
<x-table.data :content="$data['total_payment']" />
<x-table.data :content="$data['tarikh']" />
<x-table.data :content="$data['masa']" />
<x-table.data :content="$data['status']" />
<x-table.data :content="$data['paid_at']" />
<x-table.data :content="$data['update_status']" />
<x-table.data :content="$data['update_serahan']" />
<x-table.data :content="$data['tempohbayar']" />
<x-table.data :content="$data['tagportal']" />
<x-table.data :content="$data['jenisbayaran']" />
</tr>
@endforeach
</x-slot>
</x-table>
@empty
<div class="bg-white text-center py-6">
No data available for the date selected
</div>
@endforelse
<x-table.horizontal-scroller scrollDirection="right" tabContent="transactions-online" />
</div>
@@ -0,0 +1,50 @@
<div>
<x-table.horizontal-scroller scrollDirection="right" tabContent="transactions" />
@forelse ($transactionTrail['transaction'] as $norujukan => $transaction)
<span>
<h1 class="p-3 pb-4 font-bold">{{ $norujukan }}</h1>
</span>
<x-table>
<x-slot name="header">
<x-table.header content="id" />
<x-table.header content="trans_type" />
<x-table.header content="norujukan" />
<x-table.header content="nokp" />
<x-table.header content="teller" />
<x-table.header content="kodcaw" />
<x-table.header content="duit_masuk" />
<x-table.header content="duit_keluar" />
<x-table.header content="created_at" />
<x-table.header content="bakiharga" />
<x-table.header content="nowakil" />
<x-table.header content="duitpelanggan" />
<x-table.header content="bakipelanggan" />
</x-slot>
<x-slot name="body">
@foreach ($transaction as $data)
<tr>
<x-table.data :content="$data['id']" />
<x-table.data :content="$data['trans_type']" />
<x-table.data :content="$data['norujukan']" />
<x-table.data :content="$data['nokp']" />
<x-table.data :content="$data['teller']" />
<x-table.data :content="$data['kodcaw']" />
<x-table.data :content="$data['duit_masuk']" />
<x-table.data :content="$data['duit_keluar']" />
<x-table.data :content="$data['created_at']" />
<x-table.data :content="$data['bakiharga']" />
<x-table.data :content="$data['nowakil']" />
<x-table.data :content="$data['duitpelanggan']" />
<x-table.data :content="$data['bakipelanggan']" />
</tr>
@endforeach
</x-slot>
</x-table>
@empty
<div class="bg-white text-center py-6">
No data available for the date selected
</div>
@endforelse
<x-table.horizontal-scroller scrollDirection="left" tabContent="transactions" />
</div>
@@ -0,0 +1,52 @@
<div>
<x-table.horizontal-scroller scrollDirection="right" tabContent="transaksi-keuntungan" />
@forelse ($transactionTrail['transaksiKeuntungan'] as $norujukan => $transaction)
<span>
<h1 class="p-3 pb-4 font-bold">{{ $norujukan }}</h1>
</span>
<x-table>
<x-slot name="header">
<x-table.header content="id" />
<x-table.header content="norujukan" />
<x-table.header content="bayaran_keuntungan" />
<x-table.header content="bayaran_pembiayaan" />
<x-table.header content="keuntungan_rebet" />
<x-table.header content="tarikh_bayaran" />
<x-table.header content="kodcaw" />
<x-table.header content="ujrah" />
<x-table.header content="ujrah_rebet" />
<x-table.header content="onepercent" />
<x-table.header content="onepercent_rebet" />
<x-table.header content="tempoh" />
<x-table.header content="beza_tempoh" />
<x-table.header content="margin_semasa" />
</x-slot>
<x-slot name="body">
@foreach ($transaction as $data)
<tr>
<x-table.data :content="$data['id']" />
<x-table.data :content="$data['norujukan']" />
<x-table.data :content="$data['bayaran_keuntungan']" />
<x-table.data :content="$data['bayaran_pembiayaan']" />
<x-table.data :content="$data['keuntungan_rebet']" />
<x-table.data :content="$data['tarikh_bayaran']" />
<x-table.data :content="$data['kodcaw']" />
<x-table.data :content="$data['ujrah']" />
<x-table.data :content="$data['ujrah_rebet']" />
<x-table.data :content="$data['onepercent']" />
<x-table.data :content="$data['onepercent_rebet']" />
<x-table.data :content="$data['tempoh']" />
<x-table.data :content="$data['beza_tempoh']" />
<x-table.data :content="$data['margin_semasa']" />
</tr>
@endforeach
</x-slot>
</x-table>
<x-table.horizontal-scroller scrollDirection="left" tabContent="transaksi-keuntungan" />
@empty
<div class="bg-white text-center py-6">
No data available for the date selected
</div>
@endforelse
</div>
@@ -0,0 +1,52 @@
<div>
<x-table.horizontal-scroller scrollDirection="right" tabContent="glDetail" />
<x-table>
<x-slot name="header">
<x-table.header content="kodcaw" />
<x-table.header content="recno" />
<x-table.header content="tarikh" />
<x-table.header content="dtacct" />
<x-table.header content="ktacct" />
<x-table.header content="descpt" />
<x-table.header content="acttype" />
<x-table.header content="fracttype" />
<x-table.header content="amaun" />
<x-table.header content="teller" />
<x-table.header content="pelulus" />
<x-table.header content="terima" />
<x-table.header content="jenisbyr" />
<x-table.header content="bkcode" />
<x-table.header content="nocek" />
<x-table.header content="pendahuluan" />
<x-table.header content="serahan" />
</x-slot>
<x-slot name="body">
@forelse ($transactionTrail['glDetail'] as $data)
<tr>
<x-table.data :content="$data['kodcaw']" />
<x-table.data :content="$data['recno']" />
<x-table.data :content="$data['tarikh']" />
<x-table.data :content="$data['dtacct']" />
<x-table.data :content="$data['ktacct']" />
<x-table.data :content="$data['descpt']" />
<x-table.data :content="$data['acttype']" />
<x-table.data :content="$data['fracttype']" />
<x-table.data :content="$data['amaun']" />
<x-table.data :content="$data['teller']" />
<x-table.data :content="$data['pelulus']" />
<x-table.data :content="$data['terima']" />
<x-table.data :content="$data['jenisbyr']" />
<x-table.data :content="$data['bkcode']" />
<x-table.data :content="$data['nocek']" />
<x-table.data :content="$data['pendahuluan']" />
<x-table.data :content="$data['serahan']" />
</tr>
@empty
<tr>
<x-table.data colspan="17" class="text-center" content="No data available for the date selected" />
</tr>
@endforelse
</x-slot>
</x-table>
<x-table.horizontal-scroller scrollDirection="left" tabContent="glDetail" />
</div>
@@ -0,0 +1,54 @@
<div>
<x-table.horizontal-scroller scrollDirection="left" tabContent="transactions-online" />
<x-table>
<x-slot name="header">
<x-table.header content="id" />
<x-table.header content="nokp" />
<x-table.header content="customer_name" />
<x-table.header content="reference_no" />
<x-table.header content="nosiri" />
<x-table.header content="billplz_id" />
<x-table.header content="norujukan" />
<x-table.header content="kodcaw" />
<x-table.header content="total_payment" />
<x-table.header content="tarikh" />
<x-table.header content="masa" />
<x-table.header content="status" />
<x-table.header content="paid_at" />
<x-table.header content="update_status" />
<x-table.header content="update_serahan" />
<x-table.header content="tempohbayar" />
<x-table.header content="tagportal" />
<x-table.header content="jenisbayaran" />
</x-slot>
<x-slot name="body">
@forelse ($transactionTrail['transactionsOnline'] as $data)
<tr>
<x-table.data :content="$data['id']" />
<x-table.data :content="$data['nokp']" />
<x-table.data :content="$data['customer_name']" />
<x-table.data :content="$data['reference_no']" />
<x-table.data :content="$data['nosiri']" />
<x-table.data :content="$data['billplz_id']" />
<x-table.data :content="$data['norujukan']" />
<x-table.data :content="$data['kodcaw']" />
<x-table.data :content="$data['total_payment']" />
<x-table.data :content="$data['tarikh']" />
<x-table.data :content="$data['masa']" />
<x-table.data :content="$data['status']" />
<x-table.data :content="$data['paid_at']" />
<x-table.data :content="$data['update_status']" />
<x-table.data :content="$data['update_serahan']" />
<x-table.data :content="$data['tempohbayar']" />
<x-table.data :content="$data['tagportal']" />
<x-table.data :content="$data['jenisbayaran']" />
</tr>
@empty
<tr>
<x-table.data colspan="18" class="text-center" content="No data available for the date selected" />
</tr>
@endforelse
</x-slot>
</x-table>
<x-table.horizontal-scroller scrollDirection="right" tabContent="transactions-online" />
</div>
@@ -0,0 +1,44 @@
<div>
<x-table.horizontal-scroller scrollDirection="right" tabContent="transactions" />
<x-table>
<x-slot name="header">
<x-table.header content="id" />
<x-table.header content="trans_type" />
<x-table.header content="norujukan" />
<x-table.header content="nokp" />
<x-table.header content="teller" />
<x-table.header content="kodcaw" />
<x-table.header content="duit_masuk" />
<x-table.header content="duit_keluar" />
<x-table.header content="created_at" />
<x-table.header content="bakiharga" />
<x-table.header content="nowakil" />
<x-table.header content="duitpelanggan" />
<x-table.header content="bakipelanggan" />
</x-slot>
<x-slot name="body">
@forelse($transactionTrail['transaction'] as $data)
<tr>
<x-table.data :content="$data['id']" />
<x-table.data :content="$data['trans_type']" />
<x-table.data :content="$data['norujukan']" />
<x-table.data :content="$data['nokp']" />
<x-table.data :content="$data['teller']" />
<x-table.data :content="$data['kodcaw']" />
<x-table.data :content="$data['duit_masuk']" />
<x-table.data :content="$data['duit_keluar']" />
<x-table.data :content="$data['created_at']" />
<x-table.data :content="$data['bakiharga']" />
<x-table.data :content="$data['nowakil']" />
<x-table.data :content="$data['duitpelanggan']" />
<x-table.data :content="$data['bakipelanggan']" />
</tr>
@empty
<tr>
<x-table.data colspan="18" class="text-center" content="No data available for the date selected" />
</tr>
@endforelse
</x-slot>
</x-table>
<x-table.horizontal-scroller scrollDirection="left" tabContent="transactions" />
</div>
@@ -0,0 +1,46 @@
<div>
<x-table.horizontal-scroller scrollDirection="right" tabContent="transaksi-keuntungan" />
<x-table>
<x-slot name="header">
<x-table.header content="id" />
<x-table.header content="norujukan" />
<x-table.header content="bayaran_keuntungan" />
<x-table.header content="bayaran_pembiayaan" />
<x-table.header content="keuntungan_rebet" />
<x-table.header content="tarikh_bayaran" />
<x-table.header content="kodcaw" />
<x-table.header content="ujrah" />
<x-table.header content="ujrah_rebet" />
<x-table.header content="onepercent" />
<x-table.header content="onepercent_rebet" />
<x-table.header content="tempoh" />
<x-table.header content="beza_tempoh" />
<x-table.header content="margin_semasa" />
</x-slot>
<x-slot name="body">
@forelse ($transactionTrail['transaksiKeuntungan'] as $data)
<tr>
<x-table.data :content="$data['id']" />
<x-table.data :content="$data['norujukan']" />
<x-table.data :content="$data['bayaran_keuntungan']" />
<x-table.data :content="$data['bayaran_pembiayaan']" />
<x-table.data :content="$data['keuntungan_rebet']" />
<x-table.data :content="$data['tarikh_bayaran']" />
<x-table.data :content="$data['kodcaw']" />
<x-table.data :content="$data['ujrah']" />
<x-table.data :content="$data['ujrah_rebet']" />
<x-table.data :content="$data['onepercent']" />
<x-table.data :content="$data['onepercent_rebet']" />
<x-table.data :content="$data['tempoh']" />
<x-table.data :content="$data['beza_tempoh']" />
<x-table.data :content="$data['margin_semasa']" />
</tr>
@empty
<tr>
<x-table.data colspan="18" class="text-center" content="No data available for the date selected" />
</tr>
@endforelse
</x-slot>
</x-table>
<x-table.horizontal-scroller scrollDirection="left" tabContent="transaksi-keuntungan" />
</div>
@@ -44,14 +44,14 @@
<td class="px-5 py-2 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap">{{ $cawangan->details_caw }}</p>
<p class="text-gray-900 whitespace-no-wrap">{{ $cawangan['details_caw'] }}</p>
</div>
</div>
</td>
<td class="px-5 py-2 border-b border-gray-200 bg-white text-sm">
<div class="flex items-center">
<div class="ml-3">
<p class="text-gray-900 whitespace-no-wrap">{{ $cawangan->kodcaw }}</p>
<p class="text-gray-900 whitespace-no-wrap">{{ $cawangan['kodcaw'] }}</p>
</div>
</div>
</td>
@@ -59,7 +59,7 @@
<div class="flex items-center">
<div class="ml-3">
<div class="flex items-center">
<input {{ $cawangan->gadaian_ujrah_payable === 1 ? 'checked' : '' }} name="checkbox-gadai-ujrah-payable" data-gadai-ujrah-payable-branch="{{ $cawangan->kodcaw }}" id="checked-checkbox" type="checkbox" class="w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
<input {{ $cawangan['gadaian_ujrah_payable'] === 1 ? 'checked' : '' }} name="checkbox-gadai-ujrah-payable" data-gadai-ujrah-payable-branch="{{ $cawangan['kodcaw'] }}" id="checked-checkbox" type="checkbox" class="w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
</div>
</div>
</div>
@@ -69,12 +69,12 @@
<div class="ml-3">
<div class="flex items-center">
@php
$selected = $cawangan->cawangan_information->version ?? '';
$selected = $cawangan['cawangan_information']['version'] ?? '';
$select_color_v1 = 'bg-green-500 text-white';
$select_color_v2 = 'bg-indigo-500 text-white';
@endphp
<select name="version_tawarruq" data-tawarruq-version-branch="{{ $cawangan->kodcaw }}" class="mt-1 block w-full p-2 border border-gray-300 rounded-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 {{$selected == 'v1' ? $select_color_v1 : $select_color_v2}}">
<select name="version_tawarruq" data-tawarruq-version-branch="{{ $cawangan['kodcaw'] }}" class="mt-1 block w-full p-2 border border-gray-300 rounded-md focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 {{$selected == 'v1' ? $select_color_v1 : $select_color_v2}}">
<option {{ $selected === 'v1' ? 'selected' : '' }} value="v1" class="bg-white text-black">v1</option>
<option {{ $selected === 'v2' ? 'selected' : '' }} value="v2" class="bg-white text-black">v2</option>
</select>