115 lines
4.4 KiB
PHP
115 lines
4.4 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
|
|
<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>
|
|
@if ($message = Session::get('success'))
|
|
<div class="alert alert-success">
|
|
<p>{{ $message }}</p>
|
|
</div>
|
|
@endif
|
|
<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 Cawangan : </b>{{ $getnamacaw->caw_name }}</p>
|
|
<table class="table table-bordered table-xl text-center" id="tablekaunter" style="width:100%">
|
|
<thead class="bg-primary text-white">
|
|
<tr>
|
|
<th>No</th>
|
|
<th>Batch Lelong</th>
|
|
<th>Nama</th>
|
|
<th>No Kad Pengenalan</th>
|
|
<th>No Telefon</th>
|
|
<th>Bilangan Surat</th>
|
|
<th>Jumlah Bidaan (RM)</th>
|
|
<th class="text-center">Tindakan</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($listwinner as $winner)
|
|
<tr>
|
|
<td> {{ $loop->iteration }} </td>
|
|
<td>{{ $lelong_id}}</td>
|
|
<td>{{ $winner['details']['name']}}</td>
|
|
<td>{{ $winner['details']['nokp']}}</td>
|
|
<td>{{ $winner['details']['notelbimbit']}}</td>
|
|
<td>{{ $winner['total_surat']}}</td>
|
|
<td>{{ $winner['totalBid']}}</td>
|
|
<td>
|
|
<a href=" {{ route('lelong.senaraisagpemenang', ['user_id'=>$winner['user_id'],'lelong_id'=>$lelong_id]) }} " data-toggle="tooltip" data-placement="top" title="Butiran Bidaan" ><i class="far fa-edit"></i></a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<div class="modal-footer" style="margin-top:2%;">
|
|
{{-- <a href="{{ route('lelong.listpemenang') }}" class="btn btn-primary">Kembali</a> --}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
//Enable tooltips everywhere
|
|
$(function () {
|
|
$('[data-toggle="tooltip"]').tooltip()
|
|
})
|
|
|
|
var tablekaunter = $('#tablekaunter').DataTable({
|
|
"columnDefs": [
|
|
{
|
|
"targets": 0,
|
|
"orderable": false
|
|
},
|
|
{
|
|
"targets": 6,
|
|
"orderable": false
|
|
}
|
|
],
|
|
order: [[1, '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
|
|
|