119 lines
4.9 KiB
PHP
119 lines
4.9 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>
|
|
|
|
<table cellspacing="" cellpadding="4" text-align="left" border="0" height="25" align="left" id="sim" class="table table-striped table-xl">
|
|
<thead class="bg-light ">
|
|
@foreach ($arrayinfo as $laporan)
|
|
<tr>
|
|
<td><b>Batch Lelong: {{ $laporan['laporan']['lelong_id']}} <b></td>
|
|
<td><b>Fasa Lelong: {{ $laporan['laporan']['fasa']}} <b></td>
|
|
<td><b>Tarikh Lelong : @php
|
|
$myDateTime = DateTime::createFromFormat('Y-m-d', $laporan['laporan']['tarikh_lelong'] );
|
|
$datez = $myDateTime->format('d-m-Y');
|
|
echo($datez);
|
|
@endphp</b></td>
|
|
@foreach($laporan['details'] as $details)
|
|
<td><b>Nama Cawangan : {{ $details['caw_name']}}</b></td>
|
|
<td><b>Kod Cawangan : {{ $details['caw_code']}}</b></td>
|
|
@endforeach
|
|
</tr>
|
|
@endforeach
|
|
|
|
</thead>
|
|
</table>
|
|
|
|
|
|
|
|
|
|
@if ($message = Session::get('success'))
|
|
<div class="alert alert-success">
|
|
<p>{{ $message }}</p>
|
|
</div>
|
|
@endif
|
|
<div class="text-left pt-4">
|
|
|
|
<a href="{{ route('lelonghargajual.senaraimarhunkhasbelumjual',[$lelongid,$cawid]) }}" class="btn btn-success">Belum Jual</a>
|
|
<a href="{{ route('lelonghargajual.senaraimarhunkhastelahjual',[$lelongid,$cawid]) }}" class="btn btn-success">Telah Jual</a>
|
|
<a href="{{ route('lelonghargajual.resitpemenang',[$lelongid,$cawid]) }}" class="btn btn-success">Resit Pemenang</a>
|
|
|
|
</div>
|
|
<form id="deletesag" action="{{route('lelonghargajual.deletemarhun')}}" method="POST">
|
|
@csrf
|
|
<input type="hidden" name="lelongid" value="{{$lelongid}}">
|
|
<input type="hidden" name="cawid" value="{{$cawid}}">
|
|
<table class="table table-striped table-xl" id="marhun" style="width:100%">
|
|
<thead class="bg-primary text-white">
|
|
<tr>
|
|
<th>No</th>
|
|
<th>Nama Pemenang</th>
|
|
<th>Hargajual (RM)</th>
|
|
<th>Cetak Resit</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($arraymarhun as $index=> $marhun)
|
|
<tr>
|
|
<td>{{$loop->iteration}}</td>
|
|
<td>{{ $marhun['name']}}</td>
|
|
<td>{{ number_format($marhun['totalhargajual'], 2, '.', ',') }}</td>
|
|
<td>
|
|
<a href="{{ route('lelonghargajual.slipserahan',['user_id'=>$marhun['nopembeli'],'lelong_id'=>$lelongid]) }}" target = "blank" data-toggle="tooltip" data-placement="top" title="Muat Turun Penyata Bayaran" ><i class="fas fa-download"></i></a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
|
|
</table>
|
|
<div class="text-right pt-4">
|
|
{{-- <a href="{{ route('lelong.show',$lelongid) }}" class="btn btn-primary">Kembali</a> --}}
|
|
{{-- <button type="button" class="btn btn-danger" onclick="confirm()">Hapus</button> --}}
|
|
</div>
|
|
{{-- <a href="{{url('lelong/senarailelong')}}" class="btn btn-primary">Kembali</a> --}}
|
|
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<script>
|
|
|
|
function confirm() {
|
|
$.confirm({
|
|
title: 'Confirmation',
|
|
content: 'Anda pasti?',
|
|
type: 'red',
|
|
typeAnimated: true,
|
|
buttons: {
|
|
Delete: {
|
|
btnClass: 'btn-danger',
|
|
action: function() {
|
|
$("#deletesag").submit();
|
|
}
|
|
},
|
|
Batal: {
|
|
btnClass: 'btn-default',
|
|
action: function() {}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
var tablemarhun = $('#marhun').DataTable({
|
|
"info": false,
|
|
"lengthChange": false,
|
|
"pageLength": 999999,
|
|
dom: 'Bfrtip',
|
|
});
|
|
</script>
|
|
@endsection |