Files
lelong/resources/views/homeaccount.blade.php
2023-03-28 09:53:55 +08:00

116 lines
6.8 KiB
PHP

@extends('layouts.app')
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-md-11 mx-auto">
<div class="card">
<div class="card-header">{{ __('Dashboard') }}</div>
<div class="card-body">
@if (session('status'))
<div class="alert alert-success" role="alert">
{{ session('status') }}
</div>
@endif
@if(count($arrayinfoaccount)> 0)
<b>PENGESAHAN BAYARAN ONLINE</b>
<table class="table table-bordered table-xl text-center" id="senarailelongan" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
{{-- <th>Cawangan</th> --}}
<th>Nama</th>
{{-- <th>Jumlah Bayaran</th> --}}
{{-- <th>Jenis Bayaran</th> --}}
<th>Status Lelong</th>
</tr>
</thead>
<tbody>
@foreach($arrayinfoaccount as $data)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $data['detail']['lelong_id']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $data['detail']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<td align='left'>
@foreach($data['detailsinfo'] as $details)
{{-- <a href=" {{ route('account.listbayaranonline', ['lelong_id'=>$data['detail']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan"><i class="far fa-edit"></i></a> --}}
<strong><span class="m-2">{{ $details['caw_name']}}</span></strong><br>
@forelse($details['listwinner'] as $winner)
<a class="btn btn-warning btn-sm" href=" {{ route('account.sahsagonline', ['lelong_id'=>$data['detail']['lelong_id'],'user_id'=>$winner['user_id'], 'caw_code'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Pengesahan"><i class="far fa-user"></i>
<span style='text-transform: uppercase'>{{$winner['nama']}}</span></a><img src="{{ asset('img/new.gif') }}" alt="description of myimage"><br>
<br>
@empty
<br>
@endforelse
@endforeach
</td>
<td>
@if($data['detail']['sts_lelong'] == 3)
<button class="btn btn-success btn-sm" disabled>LELONG SELESAI</button>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
@if(count($arrayinfoaccountcdm)> 0)
<b>PENGESAHAN BAYARAN KAUNTER BANK/CDM</b>
<table class="table table-bordered table-xl text-center" id="senarailelongan" style="width:100%">
<thead class="bg-primary text-white">
<tr>
<th>No</th>
<th>Batch Lelong</th>
<th>Tarikh Lelong</th>
<th>Nama</th>
<th>Status Lelong</th>
</tr>
</thead>
<tbody>
@foreach($arrayinfoaccountcdm as $data)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $data['detailcdm']['lelong_id']}}</td>
<td>@php
$myDateTime = DateTime::createFromFormat('Y-m-d', $data['detailcdm']['tarikh_lelong'] );
$t_lelong = $myDateTime->format('d-m-Y');
echo($t_lelong);
@endphp</td>
<td align='left'>
@foreach($data['detailsinfocdm'] as $details)
{{-- <a href=" {{ route('account.listbayaranonline', ['lelong_id'=>$data['detail']['lelong_id'], 'kodcaw'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan"><i class="far fa-edit"></i></a> --}}
<strong><span class="m-2">{{ $details['caw_name']}}</span></strong><br>
@forelse($details['listwinner'] as $winner)
<a class="btn btn-warning btn-sm" href=" {{ route('account.sahsagcdm', ['lelong_id'=>$data['detailcdm']['lelong_id'],'user_id'=>$winner['user_id'], 'caw_code'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Pengesahan"><i class="far fa-user"></i>
<span style='text-transform: uppercase'>{{$winner['nama']}}</span></a><img src="{{ asset('img/new.gif') }}" alt="description of myimage"><br>
<br>
@empty
<br>
@endforelse
@endforeach
</td>
<td>
@if($data['detailcdm']['sts_lelong'] == 3)
<button class="btn btn-success btn-sm" disabled>LELONG SELESAI</button>
@endif
</td>
</tr>
@endforeach
</tbody>
</table>
@endif
</div>
</div>
</div>
</div>
</div>
@endsection