Commit 0958ab60 by Siti Aisah

setting post view

parent 88e7809a
......@@ -168,5 +168,15 @@ class SettingsTableSeeder extends Seeder
'userid_created' => 'Aan Choesni Herlingga',
'userid_updated' => 'Aan Choesni Herlingga',
]);
// POST VIEWER
DB::table('swp_settings')->insert([
'id' => Str::uuid()->toString(),
'show_name_setting' => 'POST VIEWER',
'name_setting' => 'post_views',
'value_setting' => '1',
'userid_created' => 'Aan Choesni Herlingga',
'userid_updated' => 'Aan Choesni Herlingga',
]);
}
}
......@@ -37,7 +37,9 @@
<div class="blog-carousel-meta">
<span><i class="fa fa-calendar"></i>
<time title="{!! $data->post_data !!}" datetime="{!! $data->post_data !!}">{!! InseoHelper::tglbulanindo2($data->post_date) !!}</time> - kategori <a href="#">{!! $data->rCategory->name !!}</a></span>
@if(!isset($setting['post_views']) || $setting['post_views'] == 1)
<span><i class="fa fa-eye"></i> <a href="#">{!! $data->viewer !!} Views</a></span>
@endif
{{-- <span><i class="fa fa-user"></i> <a href="#">Redaksi</a></span> --}}
</div><!-- end blog-carousel-meta -->
</div><!-- end blog-carousel-header -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment