Skip to content

Commit

Permalink
Update UI, Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajifatur committed Nov 4, 2021
1 parent 42302a6 commit 9ad4c8a
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 44 deletions.
36 changes: 18 additions & 18 deletions resources/views/admin/file/detail-ebook.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,25 @@
<div class="embedded">
<iframe class="embed-responsive-item" src={!! html_entity_decode($src) !!} height="360" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
</div>
@endif

@if($file->file_konten != '')
<div class="row">
<div class="col-12 mx-auto text-center" id="image-wrapper">
@foreach($file_list as $key=>$data)
@php
$explode_dot = explode('.', $data->nama_fd);
$explode_strip = explode('-', $explode_dot[0]);
@endphp
<p class="font-weight-bold mb-1">{{ remove_zero($explode_strip[1]) }} / {{ count($file_list) }}</p>
@if($key == 0)
<img class="border border-secondary mb-2 first-image" style="max-width: 100%;" src="{{ asset('assets/uploads/'.$data->nama_fd) }}">
@else
<img class="border border-secondary mb-2 lazy" style="max-width: 100%;" data-src="{{ asset('assets/uploads/'.$data->nama_fd) }}">
@endif
@endforeach
@else
@if($file->file_konten != '')
<div class="row">
<div class="col-12 mx-auto text-center" id="image-wrapper">
@foreach($file_list as $key=>$data)
@php
$explode_dot = explode('.', $data->nama_fd);
$explode_strip = explode('-', $explode_dot[0]);
@endphp
<p class="font-weight-bold mb-1">{{ remove_zero($explode_strip[1]) }} / {{ count($file_list) }}</p>
@if($key == 0)
<img class="border border-secondary mb-2 first-image" style="max-width: 100%;" src="{{ asset('assets/uploads/'.$data->nama_fd) }}">
@else
<img class="border border-secondary mb-2 lazy" style="max-width: 100%;" data-src="{{ asset('assets/uploads/'.$data->nama_fd) }}">
@endif
@endforeach
</div>
</div>
</div>
@endif
@endif
</div>
<!-- /Tile Body -->
Expand Down
2 changes: 1 addition & 1 deletion resources/views/admin/file/edit-ebook.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<input type="file" id="file" class="d-none" accept="image/*">
<a class="btn btn-sm btn-secondary btn-image" href="#"><i class="fa fa-image mr-2"></i>Pilih Gambar...</a>
<br>
<img src="{{ image('assets/images/file/'.$file->file_thumbnail, 'file') }}" id="img-file" class="mt-2 img-thumbnail {{ $file->file_thumbnail != '' ? '' : 'd-none' }}" style="max-height: 150px">
<img src="{{ image('assets/images/file/'.$file->file_thumbnail, 'ebook') }}" id="img-file" class="mt-2 img-thumbnail {{ $file->file_thumbnail != '' ? '' : 'd-none' }}" style="max-height: 150px">
<input type="hidden" name="gambar">
<input type="hidden" name="gambar_url">
</div>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/admin/file/edit-script.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '#'],
]
]])
Expand Down Expand Up @@ -61,7 +61,7 @@
<input type="file" id="file" class="d-none" accept="image/*">
<a class="btn btn-sm btn-secondary btn-image" href="#"><i class="fa fa-image mr-2"></i>Pilih Gambar...</a>
<br>
<img src="{{ image('assets/images/file/'.$file->file_thumbnail, 'file') }}" id="img-file" class="mt-2 img-thumbnail {{ $file->file_thumbnail != '' ? '' : 'd-none' }}" style="max-height: 150px">
<img src="{{ image('assets/images/file/'.$file->file_thumbnail, 'script') }}" id="img-file" class="mt-2 img-thumbnail {{ $file->file_thumbnail != '' ? '' : 'd-none' }}" style="max-height: 150px">
<input type="hidden" name="gambar">
<input type="hidden" name="gambar_url">
</div>
Expand Down
4 changes: 2 additions & 2 deletions resources/views/admin/file/edit-tools.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '#'],
]
]])
Expand Down Expand Up @@ -62,7 +62,7 @@
<input type="file" id="file" class="d-none" accept="image/*">
<a class="btn btn-sm btn-secondary btn-image" href="#"><i class="fa fa-image mr-2"></i>Pilih Gambar...</a>
<br>
<img src="{{ image('assets/images/file/'.$file->file_thumbnail, 'file') }}" id="img-file" class="mt-2 img-thumbnail {{ $file->file_thumbnail != '' ? '' : 'd-none' }}" style="max-height: 150px">
<img src="{{ image('assets/images/file/'.$file->file_thumbnail, 'tools') }}" id="img-file" class="mt-2 img-thumbnail {{ $file->file_thumbnail != '' ? '' : 'd-none' }}" style="max-height: 150px">
<input type="hidden" name="gambar">
<input type="hidden" name="gambar_url">
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/admin/file/edit-video.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<input type="file" id="file" class="d-none" accept="image/*">
<a class="btn btn-sm btn-secondary btn-image" href="#"><i class="fa fa-image mr-2"></i>Pilih Gambar...</a>
<br>
<img src="{{ image('assets/images/file/'.$file->file_thumbnail, 'file') }}" id="img-file" class="mt-2 img-thumbnail {{ $file->file_thumbnail != '' ? '' : 'd-none' }}" style="max-height: 150px">
<img src="{{ image('assets/images/file/'.$file->file_thumbnail, 'video') }}" id="img-file" class="mt-2 img-thumbnail {{ $file->file_thumbnail != '' ? '' : 'd-none' }}" style="max-height: 150px">
<input type="hidden" name="gambar">
<input type="hidden" name="gambar_url">
</div>
Expand Down
36 changes: 18 additions & 18 deletions resources/views/member/file/detail-ebook.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,25 @@
<div class="embedded">
<iframe class="embed-responsive-item" src={!! html_entity_decode($src) !!} height="360" frameborder="0" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe>
</div>
@endif

@if($file->file_konten != '')
<div class="row">
<div class="col-12 mx-auto text-center" id="image-wrapper">
@foreach($file_list as $key=>$data)
@php
$explode_dot = explode('.', $data->nama_fd);
$explode_strip = explode('-', $explode_dot[0]);
@endphp
<p class="font-weight-bold mb-1">{{ remove_zero($explode_strip[1]) }} / {{ count($file_list) }}</p>
@if($key == 0)
<img class="border border-secondary mb-2 first-image" style="max-width: 100%;" src="{{ asset('assets/uploads/'.$data->nama_fd) }}">
@else
<img class="border border-secondary mb-2 lazy" style="max-width: 100%;" data-src="{{ asset('assets/uploads/'.$data->nama_fd) }}">
@endif
@endforeach
@else
@if($file->file_konten != '')
<div class="row">
<div class="col-12 mx-auto text-center" id="image-wrapper">
@foreach($file_list as $key=>$data)
@php
$explode_dot = explode('.', $data->nama_fd);
$explode_strip = explode('-', $explode_dot[0]);
@endphp
<p class="font-weight-bold mb-1">{{ remove_zero($explode_strip[1]) }} / {{ count($file_list) }}</p>
@if($key == 0)
<img class="border border-secondary mb-2 first-image" style="max-width: 100%;" src="{{ asset('assets/uploads/'.$data->nama_fd) }}">
@else
<img class="border border-secondary mb-2 lazy" style="max-width: 100%;" data-src="{{ asset('assets/uploads/'.$data->nama_fd) }}">
@endif
@endforeach
</div>
</div>
</div>
@endif
@endif
</div>
<!-- /Tile Body -->
Expand Down
2 changes: 1 addition & 1 deletion resources/views/template/admin/_header-admin.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ul class="app-nav d-block">
<li class="app-nav__item" style="line-height: 15px">
<h5 class="d-inline-block text-truncate m-0" style="color: var(--primary)">@yield('title')</h5>
<div class="m-0 text-muted small">
<div class="m-0 text-muted small d-none d-md-block">
<ul class="breadcrumb breadcrumb-nav mb-0 p-0 bg-transparent"></ul>
</div>
</li>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/template/admin/_header-member.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<ul class="app-nav d-block">
<li class="app-nav__item" style="line-height: 15px">
<h5 class="d-inline-block text-truncate m-0" style="color: var(--primary)">@yield('title')</h5>
<div class="m-0 text-muted small">
<div class="m-0 text-muted small d-none d-md-block">
<ul class="breadcrumb breadcrumb-nav mb-0 p-0 bg-transparent"></ul>
</div>
</li>
Expand Down

0 comments on commit 9ad4c8a

Please sign in to comment.