Skip to content

Commit

Permalink
app show and pre_sale detail page fixed..
Browse files Browse the repository at this point in the history
  • Loading branch information
cuneytsenturk committed May 27, 2021
1 parent faca470 commit 6d44006
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/views/modules/item/pre_sale.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<div class="card-footer">
@can('create-modules-item')
@if ($module->install)
<a href="#" class="btn btn-warning btn-block" disabled="disabled">
<a href="javascript:void(0)" class="btn btn-warning btn-block" disabled="disabled">
{{ trans('modules.pre_sale') }}
</a>
@else
Expand Down
10 changes: 7 additions & 3 deletions resources/views/modules/item/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,14 @@
<td class="col-7 text-right">{{ Date::parse($module->updated_at)->diffForHumans() }}</td>
</tr>
@endif
@if ($module->category)
@if ($module->categories)
<tr class="row">
<th class="col-5">{{ trans_choice('general.categories', 1) }}</th>
<td class="col-7 text-right"><a href="{{ route('apps.categories.show', $module->category->slug) }}">{{ $module->category->name }}</a></td>
<th class="col-5">{{ trans_choice('general.categories', (count($module->categories) > 1) ? 2 : 1) }}</th>
<td class="col-7 text-right">
@foreach ($module->categories as $module_category)
<a href="{{ route('apps.categories.show', $module_category->slug) }}">{{ $module_category->name }}</a> </br>
@endforeach
</td>
</tr>
@endif
<tr class="row">
Expand Down

0 comments on commit 6d44006

Please sign in to comment.