57 lines
2.5 KiB
PHP
57 lines
2.5 KiB
PHP
@extends('layouts.app')
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
<div class="card">
|
|
<div class="card-header">Export Data Lelong</div>
|
|
<div class="card-body">
|
|
<a href="{{ route('lelong.senarailelong') }}" class="btn btn-light">
|
|
<h3><i class="fas fa-arrow-alt-circle-left"></i></h3>
|
|
</a>
|
|
@if ($message = Session::get('success'))
|
|
<div class="alert alert-success">
|
|
{{ $message }}
|
|
</div>
|
|
@endif
|
|
<p>Batch Lelong: {{$lelong['id']}}</p>
|
|
<p>Tarikh Lelong: {{$lelong['tarikh_lelong']}}</p>
|
|
<p>Masa Mula Lelong: {{$lelong['masamula_lelong']}}</p>
|
|
<p>Masa Tamat Lelong: {{$lelong['masatamat_lelong']}}</p>
|
|
<table class="table table-striped table-xl text-center" id="senarailelongtaklaku" style="width:100%">
|
|
<thead class="bg-primary text-white">
|
|
<tr>
|
|
<th>Bil</th>
|
|
<th>Kod Cawangan</th>
|
|
<th>Cawangan</th>
|
|
<th>Status</th>
|
|
<th>Tindakan</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<form action="{{ route('lelong.exportDataToApi') }}" method="POST">
|
|
@csrf
|
|
<input type="hidden" name="lelong_id" value="{{ $lelong->id }}">
|
|
<input type="hidden" name="tarikh_lelong" value="{{ $lelong->tarikh_lelong }}">
|
|
@foreach($lelong->cawangan as $data)
|
|
<tr>
|
|
<td>{{$loop->iteration}}</td>
|
|
<td>{{$data->caw_code}}</td>
|
|
<td>{{$data->caw_name}}</td>
|
|
@if($data->pivot->export_data_sts == null)
|
|
<td><span class="badge badge-danger">Belum Selesai</span></td>
|
|
<td><button type="submit" name="cawangan" value="{{ $data->id }}" class="btn btn-sm btn-primary">EXPORT <i class="fas fa-file-export"></i></button></td>
|
|
@elseif($data->pivot->export_data_sts == "SUCCESS")
|
|
<td class="text-success">Selesai</td>
|
|
<td></td>
|
|
@endif
|
|
</tr>
|
|
@endforeach
|
|
</form>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@endsection |