From 9ad4c8afbf2abb8793a07596955e070d7e59dcec Mon Sep 17 00:00:00 2001 From: Aji Fatur Date: Thu, 4 Nov 2021 11:25:32 +0700 Subject: [PATCH] Update UI, Fix bugs --- .../views/admin/file/detail-ebook.blade.php | 36 +++++++++---------- .../views/admin/file/edit-ebook.blade.php | 2 +- .../views/admin/file/edit-script.blade.php | 4 +-- .../views/admin/file/edit-tools.blade.php | 4 +-- .../views/admin/file/edit-video.blade.php | 2 +- .../views/member/file/detail-ebook.blade.php | 36 +++++++++---------- .../template/admin/_header-admin.blade.php | 2 +- .../template/admin/_header-member.blade.php | 2 +- 8 files changed, 44 insertions(+), 44 deletions(-) diff --git a/resources/views/admin/file/detail-ebook.blade.php b/resources/views/admin/file/detail-ebook.blade.php index e7908d6..4b5cc65 100644 --- a/resources/views/admin/file/detail-ebook.blade.php +++ b/resources/views/admin/file/detail-ebook.blade.php @@ -55,25 +55,25 @@
- @endif - - @if($file->file_konten != '') -
-
- @foreach($file_list as $key=>$data) - @php - $explode_dot = explode('.', $data->nama_fd); - $explode_strip = explode('-', $explode_dot[0]); - @endphp -

{{ remove_zero($explode_strip[1]) }} / {{ count($file_list) }}

- @if($key == 0) - - @else - - @endif - @endforeach + @else + @if($file->file_konten != '') +
+
+ @foreach($file_list as $key=>$data) + @php + $explode_dot = explode('.', $data->nama_fd); + $explode_strip = explode('-', $explode_dot[0]); + @endphp +

{{ remove_zero($explode_strip[1]) }} / {{ count($file_list) }}

+ @if($key == 0) + + @else + + @endif + @endforeach +
-
+ @endif @endif
diff --git a/resources/views/admin/file/edit-ebook.blade.php b/resources/views/admin/file/edit-ebook.blade.php index f22adef..250355d 100644 --- a/resources/views/admin/file/edit-ebook.blade.php +++ b/resources/views/admin/file/edit-ebook.blade.php @@ -62,7 +62,7 @@ Pilih Gambar...
- + diff --git a/resources/views/admin/file/edit-script.blade.php b/resources/views/admin/file/edit-script.blade.php index a085daa..39850b1 100644 --- a/resources/views/admin/file/edit-script.blade.php +++ b/resources/views/admin/file/edit-script.blade.php @@ -12,7 +12,7 @@ 'title' => 'Edit File', 'items' => [ ['text' => 'File Manager', 'url' => '#'], - ['text' => $kategori->prefix_kategori.' '.$kategori->icon_kategori, 'url' => route('admin.filemanager.index', ['kategori' => $kategori->slug_kategori])], + ['text' => $kategori->prefix_kategori.' '.$kategori->folder_kategori, 'url' => route('admin.filemanager.index', ['kategori' => $kategori->slug_kategori])], ['text' => 'Edit File', 'url' => '#'], ] ]]) @@ -61,7 +61,7 @@ Pilih Gambar...
- + diff --git a/resources/views/admin/file/edit-tools.blade.php b/resources/views/admin/file/edit-tools.blade.php index b644e34..7a011bd 100644 --- a/resources/views/admin/file/edit-tools.blade.php +++ b/resources/views/admin/file/edit-tools.blade.php @@ -12,7 +12,7 @@ 'title' => 'Edit File', 'items' => [ ['text' => 'File Manager', 'url' => '#'], - ['text' => $kategori->prefix_kategori.' '.$kategori->icon_kategori, 'url' => route('admin.filemanager.index', ['kategori' => $kategori->slug_kategori])], + ['text' => $kategori->prefix_kategori.' '.$kategori->folder_kategori, 'url' => route('admin.filemanager.index', ['kategori' => $kategori->slug_kategori])], ['text' => 'Edit File', 'url' => '#'], ] ]]) @@ -62,7 +62,7 @@ Pilih Gambar...
- + diff --git a/resources/views/admin/file/edit-video.blade.php b/resources/views/admin/file/edit-video.blade.php index 8c9bfa9..10931b4 100644 --- a/resources/views/admin/file/edit-video.blade.php +++ b/resources/views/admin/file/edit-video.blade.php @@ -61,7 +61,7 @@ Pilih Gambar...
- + diff --git a/resources/views/member/file/detail-ebook.blade.php b/resources/views/member/file/detail-ebook.blade.php index 19f8290..a69c2f3 100644 --- a/resources/views/member/file/detail-ebook.blade.php +++ b/resources/views/member/file/detail-ebook.blade.php @@ -55,25 +55,25 @@
- @endif - - @if($file->file_konten != '') -
-
- @foreach($file_list as $key=>$data) - @php - $explode_dot = explode('.', $data->nama_fd); - $explode_strip = explode('-', $explode_dot[0]); - @endphp -

{{ remove_zero($explode_strip[1]) }} / {{ count($file_list) }}

- @if($key == 0) - - @else - - @endif - @endforeach + @else + @if($file->file_konten != '') +
+
+ @foreach($file_list as $key=>$data) + @php + $explode_dot = explode('.', $data->nama_fd); + $explode_strip = explode('-', $explode_dot[0]); + @endphp +

{{ remove_zero($explode_strip[1]) }} / {{ count($file_list) }}

+ @if($key == 0) + + @else + + @endif + @endforeach +
-
+ @endif @endif
diff --git a/resources/views/template/admin/_header-admin.blade.php b/resources/views/template/admin/_header-admin.blade.php index f334b44..e31bcab 100644 --- a/resources/views/template/admin/_header-admin.blade.php +++ b/resources/views/template/admin/_header-admin.blade.php @@ -3,7 +3,7 @@