<commit_before>@extends('layouts.default')

@section('content')

<div class="panel panel-success">
		<div class="panel-heading">List Stock</div>
		
		<div class="panel-body">

		<div class='table-responsive'>
		<form action="/view" method="post">
		  <table class='table table-bordered table-hover'>
		    <thead>
		      <tr>
		        <th>ID</th>
		        <th>TYPE</th>
		        <th>NAME/DESCRIPTION</th>
		        <th>STOCK IMAGE</th>
		        <th>SIZE</th>
		        <th>QUANTITY</th>
		        <th>ACTION</th>
		      </tr>
		    </thead>
		    <tbody>
			<!-- iterate through the array of the stocks to display them -->
			@foreach($liststock as $liststocks) 
				<tr>
					<td>{{$liststocks->STK_ID}}</td>
					<td>{{$liststocks->STK_TYPE}}</td>
					<td>{{$liststocks->STK_NAME}}</td>
					<td><img src='{{asset("/images/$liststocks->STK_ID.jpg")}}' width="150px" height="150px" class="img-thumbnail img-responsive" title="{{$liststocks->STK_NAME.' '.$liststocks->STK_TYPE}}"/></td>
					<td>{{$liststocks->STK_SIZE}}</td>
					<td>{{$liststocks->STK_QTY}}</td>
					
					
					<td align="center"><a href='/edit/{{$liststocks->STK_ID}}' data-toggle="tooltip" title="Update Stock" class='btn btn-success' onclick='return confirm("Edit stock?");'><i class='fa fa-fw fa-gear'></i></a>
					<button type='submit' class='btn btn-danger' onclick='return confirm("Delete stock?");' data-toggle="tooltip" title="Delete Stock"><i class='fa fa-fw fa-trash'></i></button></td>
					<td style='display:none;'><input type='text' name='delstock' value='{{$liststocks->STK_ID}}' style='display:none;'></td>
					<input type = "hidden" name = "_token" value = "<?php echo csrf_token() ?>">
				</tr>
			@endforeach
				<commit_msg>update view page, to display information from db with lowercase<commit_after>@extends('layouts.default')

@section('content')

<div class="panel panel-success">
		<div class="panel-heading">List Stock</div>
		
		<div class="panel-body">

		<div class='table-responsive'>
		<form action="/view" method="post">
		  <table class='table table-bordered table-hover'>
		    <thead>
		      <tr>
		        <th>ID</th>
		        <th>TYPE</th>
		        <th>NAME/DESCRIPTION</th>
		        <th>STOCK IMAGE</th>
		        <th>SIZE</th>
		        <th>QUANTITY</th>
		        <th>ACTION</th>
		      </tr>
		    </thead>
		    <tbody>
			<!-- iterate through the array of the stocks to display them -->
			@foreach($liststock as $liststocks) 
				<tr>
					<td>{{$liststocks->id}}</td>
					<td>{{$liststocks->stk_type}}</td>
					<td>{{$liststocks->stk_name}}</td>
					<td><img src='{{asset("/images/$liststocks->id.jpg")}}' width="150px" height="150px" class="img-thumbnail img-responsive" title="{{$liststocks->stk_name.' '.$liststocks->stk_type}}"/></td>
					<td>{{$liststocks->stk_size}}</td>
					<td>{{$liststocks->stk_qty}}</td>
					
					
					<td align="center"><a href='/edit/{{$liststocks->id}}' data-toggle="tooltip" title="Update Stock" class='btn btn-success' onclick='return confirm("Edit stock?");'><i class='fa fa-fw fa-gear'></i></a>
					<button type='submit' class='btn btn-danger' onclick='return confirm("Delete stock?");' data-toggle="tooltip" title="Delete Stock"><i class='fa fa-fw fa-trash'></i></button></td>
					<td style='display:none;'><input type='text' name='delstock' value='{{$liststocks->id}}' style='display:none;'></td>
					{{ csrf_field() }}
				</tr>
			@endforeach
				
{'fraction_non_alphanumeric': 0.21807580174927113, 'fraction_numerical': 0.003498542274052478, 'mean_word_length': 3.5263852242744065, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 135, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1992765', 'n_tokens_mistral': 1416, 'n_tokens_neox': 1174, 'n_words': 207}