MIF_31211725/resources/views/dashboard/user.blade.php

87 lines
3.8 KiB
PHP

@extends('layouts.main')
@section('title')
User
@endsection
@push('styles')
<link rel="stylesheet" href="{{ asset('assets/extensions/simple-datatables/style.css') }}" />
@endpush
@section('container')
<section class="section">
<div class="card">
<div class="card-header">
<h5 class="card-title">Table Pelanggan</h5>
</div>
<div class="card-body">
<table class="table table-striped" id="table1">
<thead>
<tr>
<th>No</th>
<th>Nama</th>
<th>Email</th>
<th>No. Telepon</th>
<th>Alamat</th>
</tr>
</thead>
<tbody>
@foreach ($user as $item)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ $item->name }}</td>
<td>{{ $item->email }}</td>
<td>{{ $item->notelp }}</td>
<td>{{ $item->alamat }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</section>
{{-- modal add --}}
<div class="modal fade text-left" id="add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel1"
data-bs-backdrop="false" aria-hidden="true">
<div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="myModalLabel1">Basic Modal</h5>
<button type="button" class="close rounded-pill" data-bs-dismiss="modal" aria-label="Close">
<i data-feather="x"></i>
</button>
</div>
<div class="modal-body">
<p>
Bonbon caramels muffin. Chocolate bar oat cake cookie pastry dragée pastry.
Carrot cake
chocolate tootsie roll chocolate bar candy canes biscuit.
Gummies bonbon apple pie fruitcake icing biscuit apple pie jelly-o sweet
roll. Toffee sugar
plum sugar plum jelly-o jujubes bonbon dessert carrot cake. Cookie dessert
tart muffin topping
donut icing fruitcake. Sweet roll cotton candy dragée danish Candy canes
chocolate bar cookie.
Gingerbread apple pie oat cake. Carrot cake fruitcake bear claw. Pastry
gummi bears
marshmallow jelly-o.
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn" data-bs-dismiss="modal">
<i class="bx bx-x d-block d-sm-none"></i>
<span class="d-none d-sm-block">Close</span>
</button>
<button type="button" class="btn btn-primary ms-1" data-bs-dismiss="modal">
<i class="bx bx-check d-block d-sm-none"></i>
<span class="d-none d-sm-block">Accept</span>
</button>
</div>
</div>
</div>
</div>
@endsection
@push('scripts')
<script src="{{ asset('assets/extensions/simple-datatables/umd/simple-datatables.js') }}"></script>
<script src="{{ asset('assets/static/js/pages/simple-datatables.js') }}"></script>
@endpush