@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')
{{ __('Record updates') }}

{!! Form::open(array('route' => ['admin.activity.store'], 'class' => 'form-inline margin-bottom-0','id' => 'myform')) !!}
{!! Form::close() !!} @foreach ($activities as $index => $activity) {{-- @continue(!@$subject->id) --}} @php $subject = optional($activity->subject); @endphp @endforeach
{{ __('Title') }} {{ __('Category') }} {{ __('User') }} {{ __('Date') }}
{{ $loop->index +1 }} {!! @$subject->id !!} @if (@$subject->category) {{ @$subject->category->title }} @endif {{ @$activity->causer->name }}

{{ Date::parse($activity->created_at)->format('l-d-m h:i') }} {{ __(Date::parse($activity->created_at)->format('A')) }}

@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)) }}
  • {!! @$subject->title !!} {!! __('Edit') !!}
  • {!! __('Date created') !!} @if ($subject->created_at) {{ @$subject->created_at->format('Y-m-d h:i:s') }} @endif
  • {!! __('Modified date') !!} @if ($subject->updated_at) {{ @$subject->updated_at->format('Y-m-d h:i:s') }} @endif
  • {!! __('Short Link') !!} {{ @$subject->id }}
  • {!! __('Created By') !!} {{ @$subject->creator->name }}
  • {!! __('Modified By') !!} {{ @$subject->updater->name }}
@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