Skip to content

Instantly share code, notes, and snippets.

@uiaciel
Created October 13, 2022 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uiaciel/5d3a87531cb53b263f7bc321072f50c4 to your computer and use it in GitHub Desktop.
Save uiaciel/5d3a87531cb53b263f7bc321072f50c4 to your computer and use it in GitHub Desktop.
@extends('layouts.app')
@section('title', 'Page Title')
@section('content')
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered">
<thead>
<tr>
<th scope="col">No</th>
<th scope="col">Tanggal</th>
<th scope="col">Status</th>
<th scope="col">Qty</th>
</tr>
</thead>
<tbody>
@foreach ($datastok as $index => $datastok )
<tr class="">
<td>{{$index+1}}</td>
<td scope="row">{{$datastok->tanggal}}</td>
<td>{{$datastok->status}}</td>
<td>{{$datastok->qty}}</td>
</tr>
@endforeach
<tr class="">
<td scope="row">Item</td>
<td>Item</td>
<td>Item</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<form action="{{route('datastok.store')}}" method="POST" enctype="multipart/form-data">
@csrf
<div class="card">
<div class="card-body">
<div class="mb-3">
<label for="" class="form-label">Tanggal</label>
<input type="date"
class="form-control" name="tanggal" id="" aria-describedby="helpId" placeholder="">
<small id="helpId" class="form-text text-muted">Help text</small>
</div>
<div class="mb-3">
<label for="" class="form-label">STOK ID</label>
<input type="text"
class="form-control" name="stok_id" value="{{$stok->id}}" aria-describedby="helpId" placeholder="">
<small id="helpId" class="form-text text-muted">Help text</small>
</div>
<div class="mb-3">
<label for="" class="form-label">QTY</label>
<input type="text"
class="form-control" name="qty" id="" aria-describedby="helpId" placeholder="">
<small id="helpId" class="form-text text-muted">Help text</small>
</div>
<div class="mb-3">
<label for="" class="form-label">Status</label>
<select class="form-control" name="status" id="">
<option>Masuk</option>
<option>Keluar</option>
</select>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div>
</div>
@endsection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment