@extends('home') @section('title') @lang('site.site_name') @endsection @section('styles') {!! Html::style(Theme::current()->assetPath.'/activities/css/profile-rtl.min.css') !!} {!! Html::style(Theme::current()->assetPath.'/global/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css') !!} {!! Html::style(Theme::current()->assetPath.'/global/plugins/select2/css/select2.min.css') !!} {!! Html::style(Theme::current()->assetPath.'/global/plugins/select2/css/select2-bootstrap.min.css') !!} {!! Html::style(Theme::current()->assetPath.'/global/plugins/bootstrap-fileinput/bootstrap-fileinput.css') !!} {!! Html::style(Theme::current()->assetPath.'/global/plugins/bootstrap-switch/css/bootstrap-switch-rtl.min.css') !!} @endsection @section('content')
{{ __('Activities') }}

{{ __('Refresh') }} {{ Form::open(['method' => 'DELETE','class' => 'btn btn-xs ' ,'route' => ['admin.activity.destroy', 0]]) }} {{ Form::close() }} {{ __('Home') }}
@foreach ($activities as $index => $activity) @continue(!@$activity->subject->id) @endforeach
{{ __('Title') }} {{ __('Category') }} {{ __('Writer') }} {{ __('Date') }}
{{ $loop->index +1 }} {!! $activity->subject->id !!} {{ $activity->subject->category->title }} {{ @$activity->causer->name }} {{ $activity->created_at->format('Y-m-d h:i:s') }} @php $font_icon = 'fa fa-cog'; switch (@mb_strtolower($activity->description)) { case 'add': $font_icon = 'fa fa-file'; break; case 'edited': case 'updated': $font_icon = 'fa fa-edit'; break; case 'publish': $font_icon = 'fa fa-check-square-o'; break; case 'unpublish': $font_icon = 'fa fa-close'; break; default: break; } @endphp {{ __(ucfirst(@$activity->description)) }}
@endsection @section('scripts') {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-confirmation/bootstrap-confirmation.min.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/select2/js/select2.full.min.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-markdown/lib/markdown.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-markdown/js/bootstrap-markdown.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/jquery-validation/js/jquery.validate.min.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/jquery-validation/js/additional-methods.min.js') !!} {!! Html::script(Theme::current()->assetPath.'/activities/scripts/form-validation.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/jquery-ui/jquery-ui.min.js') !!} @endsection