Files
lelong/resources/views/tangguhlelong/carian.blade.php
T
faiqahzaman de03c9536b update 21/6
2022-06-21 16:50:49 +08:00

52 lines
2.0 KiB
PHP

@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-md-center">
<div class="col-md-6 mx-auto card">
@if ($message = Session::get('success'))
<div class="alert alert-success" style="margin-top:1%;">
<p>{{ $message }}</p>
@php
$declarez = Session::get('norujukan');
foreach($declarez as $index=>$dec)
{
echo '<p>' . $dec['norujukan'] . '</p>';
}
@endphp
</div>
@elseif ($message = Session::get('failed'))
<div class="alert alert-danger" style="margin-top:1%;">
<p>{{ $message }}</p>
</div>
@endif
<h3 class="pt-3" style="margin-left:2%;">Sila Masukkan No Kad Pengenalan</h3>
<form action="{{route('tangguhlelong.searchbyic')}}" method="POST" id="formcariannokp">
@csrf
<input type="hidden" name="lelong_id" value="{{ $lelong_id }}">
<div class="form-group row" style="margin-top:2%; margin-left:1%;">
<label for="nokp" class=" col-form-label mr-3" style="margin-left:2%;">No Kad Pengenalan</label>
<div>
<input type="text" class="form-control" id="nokp" name="nokp" placeholder="xxxxxxxxxxxx">
</div>
</div>
<div class="d-flex justify-content-center" style="margin:2% 0%; ">
<a href="{{ route('tangguhlelong.senleluntuktangguh') }}" class="btn btn-primary mr-2">Kembali</a>
<button type="button" class="btn btn-primary" onclick="find()" >Carian</button>
</div>
</form>
</div>
</div>
</div>
<script>
function find()
{
$("#formcariannokp").submit();
}
</script>
@endsection