add scaffold for perubatan
This commit is contained in:
@@ -14,15 +14,46 @@
|
||||
</nav>
|
||||
|
||||
<div class="card-body text-center">
|
||||
@foreach($paginate as $page)
|
||||
<div class="post">
|
||||
<h2>{{ $page->name }}</h2>
|
||||
<p>{{ $page->perubatan }}</p>
|
||||
<p>{{ $page->perubatan_asal }}</p>
|
||||
<div>
|
||||
<form method="GET" action="{{ route('perubatan.search') }}" class="d-flex w-50 mb-2 float-right">
|
||||
<input type="text" name="search" value="{{ request('search') }}" placeholder="Search..." class="form-control"/>
|
||||
<button class="btn btn-primary ml-2" type="submit">Search</button>
|
||||
</form>
|
||||
|
||||
<table class="table table-bordered">
|
||||
<thead class="bg-secondary">
|
||||
<tr>
|
||||
<th scope="col">#</th>
|
||||
<th scope="col">Nama</th>
|
||||
<th scope="col">Baki Perubatan</th>
|
||||
<th scope="col">Perubatan</th>
|
||||
<th scope="col">Tindakan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($paginate as $page)
|
||||
<tr>
|
||||
<td>{{ ($paginate->currentPage() - 1) * $paginate->perPage() + $loop->index + 1 }}</td>
|
||||
<td scope="col">{{ $page->name }}</td>
|
||||
<td scope="col">{{ $page->perubatan }}</td>
|
||||
<td scope="col">
|
||||
<span class="d-none">{{ $page->perubatan_asal }}</span>
|
||||
<input name="perubatan" class="form-control w-50" value="{{ $page->perubatan_asal }}"/>
|
||||
</td>
|
||||
<td>
|
||||
<btn class="btn btn-primary" id="editButton" onclick="editfunc()">Edit</btn>
|
||||
<div class="d-none">
|
||||
<btn class="btn btn-primary" id="saveButton" onclick="savefunc()">Save</btn>
|
||||
<btn class="btn btn-danger" id="cancelButton" onclick="cancelfunc()">Cancel</btn>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@endforeach
|
||||
<!-- Display pagination links -->
|
||||
<div class="pagination">
|
||||
<div class="pagination float-right">
|
||||
{{ $paginate->links() }}
|
||||
</div>
|
||||
|
||||
@@ -31,4 +62,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="{{ asset('js/perubatan.js') }}"></script>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user