@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-12">
            

            <nav aria-label="breadcrumb">
                <ol class="breadcrumb pb-3">
                  <li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
                  <li class="breadcrumb-item active" aria-current="page">Harga Emas</li>
                </ol>
              </nav>

            <div class="card">
                <div class="card-body text-center">
                    <table class="table table-striped table-bordered table-hover">
                        <thead class="thead-dark">
                            <tr>
                                {{-- <th>Bil</th> --}}
                                <th>Mutu Emas</th>
                                <th>Karat</th>
                                <th>Harga/Gram</th>
                            </tr>
                        </thead>
                        <tbody>
                            @foreach($harga_emas as $harga)
                            <tr>
                                {{-- <td>{{ $harga['recno'] }}</td> --}}
                                <td>{{ $harga['keterangan'] }}</td>
                                <td>{{ $harga['karat'] }}</td>
                                <td>{{ number_format($harga['harga'],2) }}</td>
                            </tr>
                            @endforeach
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection