Skip to content

Commit

Permalink
feat: add page produk
Browse files Browse the repository at this point in the history
  • Loading branch information
iitpranata committed Jul 8, 2024
1 parent f90c959 commit a077a35
Show file tree
Hide file tree
Showing 9 changed files with 344 additions and 212 deletions.
4 changes: 2 additions & 2 deletions public/xvito-responsive-bootstrap/nav-sidebar/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@
@endif
</td>
<td class="text-right">
<a href="{{ route('kategori.edit', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
</td>
</tr>
@empty
Expand Down Expand Up @@ -100,12 +102,14 @@
@endif
</td>
<td class="text-right">
<a href="{{ route('kategori.edit', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
</td>
</tr>
@empty
Expand Down Expand Up @@ -148,12 +152,14 @@
@endif
</td>
<td class="text-right">
<a href="{{ route('kategori.edit', ['jenis' => 'brand', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'brand', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'brand', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'brand', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
</td>
</tr>
@empty
Expand Down Expand Up @@ -196,12 +202,14 @@
@endif
</td>
<td class="text-right">
<a href="{{ route('kategori.edit', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
</td>
</tr>
@empty
Expand Down
168 changes: 96 additions & 72 deletions resources/views/Pemilik/partials/kategori/section-left/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,37 +54,43 @@
<td class="text-right">
@if (Request::segment(3) == 'edit')
@if (Request::segment(5) != $item->slug)
<a href="{{ route('kategori.edit', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
@else
<span class="text-info"><div class="spinner-border spinner-border-sm align-middle" role="status">
<span class="sr-only">Loading...</span>
</div> Data sedang diedit...</span>
@endif
@elseif (Request::segment(3) == 'hapus')
@if (Request::segment(5) != $item->slug)
<a href="{{ route('kategori.edit', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
@else
<span class="text-info"><div class="spinner-border spinner-border-sm align-middle" role="status">
<span class="sr-only">Loading...</span>
</div> Data sedang dihapus...</span>
@endif
@elseif (Request::segment(3) == 'tambah')
<a href="{{ route('kategori.edit', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'produk', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
@endif
</td>
</tr>
Expand Down Expand Up @@ -130,37 +136,43 @@
<td class="text-right">
@if (Request::segment(3) == 'edit')
@if (Request::segment(5) != $item->slug)
<a href="{{ route('kategori.edit', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
@else
<span class="text-info"><div class="spinner-border spinner-border-sm align-middle" role="status">
<span class="sr-only">Loading...</span>
</div> Data sedang diedit...</span>
@endif
@elseif (Request::segment(3) == 'hapus')
@if (Request::segment(5) != $item->slug)
<a href="{{ route('kategori.edit', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
@else
<span class="text-info"><div class="spinner-border spinner-border-sm align-middle" role="status">
<span class="sr-only">Loading...</span>
</div> Data sedang dihapus...</span>
<span class="sr-only">Loading...</span>
</div> Data sedang dihapus...</span>
@endif
@elseif (Request::segment(3) == 'tambah')
<a href="{{ route('kategori.edit', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'kategori', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
@endif
</td>
</tr>
Expand Down Expand Up @@ -206,37 +218,43 @@
<td class="text-right">
@if (Request::segment(3) == 'edit')
@if (Request::segment(5) != $item->slug)
<a href="{{ route('kategori.edit', ['jenis' => 'brand', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'brand', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'brand', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'brand', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
@else
<span class="text-info"><div class="spinner-border spinner-border-sm align-middle" role="status">
<span class="sr-only">Loading...</span>
</div> Data sedang diedit...</span>
@endif
@elseif (Request::segment(3) == 'hapus')
@if (Request::segment(5) != $item->slug)
<a href="{{ route('kategori.edit', ['jenis' => 'brand', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'brand', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'brand', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'brand', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
@else
<span class="text-info"><div class="spinner-border spinner-border-sm align-middle" role="status">
<span class="sr-only">Loading...</span>
</div> Data sedang dihapus...</span>
<span class="sr-only">Loading...</span>
</div> Data sedang dihapus...</span>
@endif
@elseif (Request::segment(3) == 'tambah')
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'brand', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'brand', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
@endif
</td>
</tr>
Expand Down Expand Up @@ -282,37 +300,43 @@
<td class="text-right">
@if (Request::segment(3) == 'edit')
@if (Request::segment(5) != $item->slug)
<a href="{{ route('kategori.edit', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
@else
<span class="text-info"><div class="spinner-border spinner-border-sm align-middle" role="status">
<span class="sr-only">Loading...</span>
</div> Data sedang diedit...</span>
@endif
@elseif (Request::segment(3) == 'hapus')
@if (Request::segment(5) != $item->slug)
<a href="{{ route('kategori.edit', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
@else
<span class="text-info"><div class="spinner-border spinner-border-sm align-middle" role="status">
<span class="sr-only">Loading...</span>
</div> Data sedang dihapus...</span>
<span class="sr-only">Loading...</span>
</div> Data sedang dihapus...</span>
@endif
@elseif (Request::segment(3) == 'tambah')
<a href="{{ route('kategori.edit', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
<div class="d-flex justify-content-start">
<a href="{{ route('kategori.edit', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-edit"></i>
</a>
<a href="{{ route('kategori.delete', ['jenis' => 'tipe', 'slug' => $item->slug]) }}" class="btn btn-link btn-sm px-2 text-dark">
<i class="zmdi zmdi-delete"></i>
</a>
</div>
@endif
</td>
</tr>
Expand Down
Loading

0 comments on commit a077a35

Please sign in to comment.