add view photo resit
This commit is contained in:
@@ -0,0 +1,233 @@
|
||||
@extends('layouts.app')
|
||||
|
||||
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="container-fluid">
|
||||
{{-- @include('marhun.partials.camera_modals_per_marhun')
|
||||
@include('marhun.partials.camera_modals') --}}
|
||||
<div class="row ">
|
||||
<div class="col mx-auto p-4">
|
||||
<div class="card">
|
||||
<div class="card-header header-style">
|
||||
<a href="javascript:window.history.go(-1);" class="header-style-icon">
|
||||
<i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
<div class="header-style-title">
|
||||
Pengesahan Bayaran Kaunter Bank/CDM
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
</div>
|
||||
@endif
|
||||
<div class="container">
|
||||
<div class="row mb-2">
|
||||
<div class="col-md-12 mx-auto card p-4" style="margin-top:2%; margin-bottom:2%;">
|
||||
<p> <b>Nama Pembida : </b> {{ $userdetails['name'] }}</p>
|
||||
<p> <b>No Kad Pengenalan : </b> {{ $userdetails['nokp'] }}</p>
|
||||
<p> <b>No Telefon : </b> {{ $userdetails['notelbimbit'] }}</p>
|
||||
{{-- <p> <b>No Resit: </b>{{ $noresit['reference_no'] }}</p> --}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form action="{{ route('account.sahbayaronline') }}" method="POST" id="formsahbayaronline">
|
||||
@csrf
|
||||
<input type="hidden" name="lelong_id" value="{{ $lelong_id }}" />
|
||||
<input type="hidden" name="user_id" value="{{ $user_id }}" />
|
||||
<input type="hidden" name="senarai_sag" value="{{ $senaraisag }}" />
|
||||
<table class="table table-bordered text-center" style="width:100%">
|
||||
{{-- <thead class="bg-primary text-white">
|
||||
<tr>
|
||||
<th>No</th>
|
||||
<th>No Rujukan</th>
|
||||
<th>Tarikh Lelong</th>
|
||||
<th>Harga Asas (RM)</th>
|
||||
<th>Harga Bida (RM)</th>
|
||||
<th>Masa Bidaan</th>
|
||||
<th>No Resit</th>
|
||||
<th>Nota</th>
|
||||
<th class="text-center">Status</th>
|
||||
</tr>
|
||||
</thead> --}}
|
||||
{{-- <tbody>
|
||||
@foreach($senaraisag as $sag)
|
||||
<tr>
|
||||
<td> {{ $loop->iteration }} </td>
|
||||
<td>{{ $sag['norujukan'] }}</td>
|
||||
<td>@php
|
||||
$myDateTime = DateTime::createFromFormat('Y-m-d', $sag['t_lelong'] );
|
||||
$t_lelong = $myDateTime->format('d-m-Y');
|
||||
echo($t_lelong);
|
||||
@endphp</td>
|
||||
<td>{{ number_format($sag['hargaasas'], 2, '.', ',') }}</td>
|
||||
<td>{{ number_format($sag['hargabida'], 2, '.', ',') }}</td>
|
||||
<td>{{ $sag['masa_bidaan'] }}</td>
|
||||
<td>{{ $sag['reference_no'] }}</td>
|
||||
<td>
|
||||
<button class="btn btn-outline-success btn-sm" disabled><b>{{ $sag['remark'] }}</b></button>
|
||||
</td>
|
||||
<td>
|
||||
<span class="btn btn-success btn-sm hovernone-success" disabled>TELAH DIBAYAR</span>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody> --}}
|
||||
{{-- <tr>
|
||||
|
||||
<td colspan="2"><b> No.Resit</b></td>
|
||||
<td colspan="2"></td>
|
||||
<td><b>{{ $noresit['reference_no'] }}</b></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr> --}}
|
||||
<tr>
|
||||
{{-- {{dd($senaraisag->sum('hargabida'))}} --}}
|
||||
<td><b> Jumlah Bayaran</b></td>
|
||||
<td><b>RM{{ number_format($senaraisag->sum('hargabida'), 2, '.', ',') }}</b></td>
|
||||
<td>
|
||||
<span class="btn btn-info btn-sm hovernone-info" disabled>TELAH DIBAYAR</span>
|
||||
</td>
|
||||
{{-- <td>
|
||||
@if($getresit)
|
||||
<button type="button" class="btn btn-outline-secondary" data-toggle="modal" data-target="#exampleModal">
|
||||
Lihat Resit <i class="fas fa-file-alt"></i>
|
||||
</button>
|
||||
@else
|
||||
@endif
|
||||
</td> --}}
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="hidden" name="photo_type" value="1">
|
||||
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12">
|
||||
<div class="card card-overall-marhun">
|
||||
<div class="card-header">Bukti Pembayaran(Resit)</div>
|
||||
@foreach ($fileresit as $item)
|
||||
<div class="card-body pl-0 pr-0" style="align-self: center; justify-content: center;">
|
||||
{{-- <button type="button" data-toggle="modal" onclick="kesulurahanMarhunData(this)" data-lelongid="{{$lelong_id}}" data-lelongbidid="" data-lelongbid_status_semak="" data-fileid="{{ $item->fileresit_id }}" data-target="#modaloverallphoto"> --}}
|
||||
<img src="{{ route('account.showphotoresit', ['user_id' => $user_id, 'fileresit_id' => $item->fileresit_id]) }}" width="100%">
|
||||
{{-- </button> --}}
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="margin-top:2%; align:center">
|
||||
{{-- <a href="{{ route('account.listbayaranonline', [$lelong_id,$caw_code]) }}" class="btn btn-primary">Kembali</a> --}}
|
||||
{{-- @foreach($senaraisag as $senarai) --}}
|
||||
{{-- @if($sag['checking_payment'])
|
||||
<button type="button" class="btn btn-success" disabled>Berjaya Disahkan</button>
|
||||
@else --}}
|
||||
<button type="button" class="btn btn-success" onclick="confirm()" >Sahkan</button>
|
||||
{{-- @endif --}}
|
||||
{{-- @endforeach --}}
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Resit Bayaran CDM</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body text-center" style="padding:3rem">
|
||||
{{-- @foreach($getresit as $resit)
|
||||
<div class=".col-6 .col-sm-4 form-check form-check-inline">
|
||||
<img src="data:image/png;base64, {{ $resit['filename'] }}" alt="Image Preview" style="max-width:700px; maxheight:650px; border: 1px solid #dee2e6"/>
|
||||
</div>
|
||||
@endforeach --}}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Kembali</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
function confirm() {
|
||||
$.confirm({
|
||||
title: 'Confirmation',
|
||||
content: 'Anda pasti?',
|
||||
type: 'orange',
|
||||
typeAnimated: true,
|
||||
buttons: {
|
||||
Sahkan: {
|
||||
btnClass: 'btn-warning',
|
||||
action: function () {
|
||||
$("#formsahbayaronline").submit();
|
||||
}
|
||||
},
|
||||
Batal: {
|
||||
btnClass: 'btn-default',
|
||||
action: function () {}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
var tablekaunter = $('#tablekaunter').DataTable({
|
||||
"columnDefs": [
|
||||
{
|
||||
"targets": 0,
|
||||
"orderable": false
|
||||
},
|
||||
{
|
||||
"targets": 7,
|
||||
"orderable": false
|
||||
}
|
||||
],
|
||||
order: [[0, 'asc']],
|
||||
"info": false,
|
||||
"lengthChange": false,
|
||||
"pageLength": 15,
|
||||
dom: 'Bfrtip',
|
||||
// buttons: [
|
||||
// {
|
||||
// className: 'btn btn-outline-success pl-4 pr-4 btn-sm addcaw',
|
||||
// text: '<i class="fas fa-plus" id="test"></i>',
|
||||
// titleAttr: 'Tambah Cawangan',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// // alert( 'Button activated' );
|
||||
// // console.log('hye');
|
||||
|
||||
// $('#myModal').modal("show");
|
||||
// $('#myModal').on('shown.bs.modal', function () {
|
||||
// $('#rolename').trigger('focus')
|
||||
// })
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// className: 'btn btn-outline-secondary pl-4 pr-4 btn-sm export',
|
||||
// titleAttr: 'Export to CSV',
|
||||
// text: '<i class="fas fa-download"></i>',
|
||||
// action: function ( e, dt, node, config ) {
|
||||
// $("#exportform").submit();
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
});
|
||||
|
||||
// $('.addcaw').tooltip();
|
||||
// $('.export').tooltip();
|
||||
// // $( '.dt-buttons').addClass('btn-group');
|
||||
// $( '.addcaw').removeClass('dt-button');
|
||||
// $( '.export').removeClass('dt-button');
|
||||
</script>
|
||||
|
||||
@endsection
|
||||
@@ -4,10 +4,17 @@
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row ">
|
||||
<div class="col-md-11 mx-auto card p-4">
|
||||
<div class="nav nav-tabs" id="nav-tab" role="tablist">
|
||||
<button type="button" class="btn btn-light" ><a href="javascript:window.history.go(-1);"><h3><i class="fas fa-arrow-alt-circle-left"></i></h3></a></button>
|
||||
</div>
|
||||
<div class="col mx-auto p-4">
|
||||
<div class="card">
|
||||
<div class="card-header header-style">
|
||||
<a href="javascript:window.history.go(-1);" class="header-style-icon">
|
||||
<i class="fas fa-arrow-left"></i>
|
||||
</a>
|
||||
<div class="header-style-title">
|
||||
Pengesahan Bayaran Online
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success">
|
||||
<p>{{ $message }}</p>
|
||||
|
||||
@@ -469,46 +469,56 @@
|
||||
@endforelse
|
||||
@endforeach
|
||||
</td>
|
||||
{{-- <td align='left'>
|
||||
@foreach($data['detailsinfo'] as $details)
|
||||
@forelse($details['listwinner'] as $winner)
|
||||
{{ number_format($winner['totalPay'], 2, '.', ',') }}
|
||||
|
||||
<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 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-edit"></i></a>
|
||||
{{$winner['nama']}}<img src="{{ asset('img/new.gif') }}" alt="description of myimage"><br>
|
||||
<br>
|
||||
@empty
|
||||
<br>
|
||||
@endforelse
|
||||
@endforelse
|
||||
@endforeach
|
||||
</td> --}}
|
||||
{{-- <td align='left'>
|
||||
@foreach($data['listwinner'] as $details)
|
||||
<a href=" {{ route('account.sahsagonline', ['lelong_id'=>$data['detail']['lelong_id'],'user_id'=>$details['user_id'], 'caw_code'=>$details['caw_code']]) }} " data-toggle="tooltip" data-placement="top" title="Pengesahan"><i class="far fa-edit"></i></a>
|
||||
<span class="m-2">{{ $details['caw_name']}}</span> {{$details['nama']}}<br>
|
||||
@endforeach
|
||||
|
||||
</td> --}}
|
||||
{{-- <td align='left'>
|
||||
@foreach($data['detailsinfo'] as $details)
|
||||
@forelse($details['listwinner'] as $winner)
|
||||
@if($winner['jenisbayaran'] != NULL)
|
||||
@if($winner['jenisbayaran']['status_payment_opt'] == 1)
|
||||
TUNAI
|
||||
@elseif($winner['jenisbayaran']['status_payment_opt'] == 2)
|
||||
FPX
|
||||
@elseif($winner['jenisbayaran']['status_payment_opt'] == 3)
|
||||
KAUNTER BANK/CDM
|
||||
|
||||
@endif
|
||||
@else
|
||||
|
||||
@endif
|
||||
<br>
|
||||
@empty
|
||||
<br>
|
||||
@endforelse
|
||||
@endforeach
|
||||
</td> --}}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
@if($data['detail']['sts_lelong'] == 3)
|
||||
@if($data['detailcdm']['sts_lelong'] == 3)
|
||||
<button class="btn btn-success btn-sm" disabled>LELONG SELESAI</button>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user