@extends('admin.layouts.main') @section('title') auaj - {{__("messages.$inlog")}} @endsection @section('content')

From Changes

@if($archives->causer_type == "projects") @elseif($archives->causer_type == "branch") @else @endif
user type type change user name form name date
{{$archives->causer_type}} {{$archives->description}}{{$archives->causer->hse_manager_name }} {{$archives->causer->user_name}}{{$archives->causer->name ?? ''}}{{$archives->subject->form->name}} {{$archives->created_at}}
@if(!empty($archives)) @if($archives->description == 'updated')
@foreach($archives['properties']['attributes'] as $key =>$attr ) @if(! in_array($key,$notShowing)) @if($key == "password") @else @endif @endif @endforeach
- new
{{__("messages.$key")}}****{!! $attr!!}
@foreach($archives['properties']['old'] as $key =>$attr ) @if(! in_array($key,$notShowing)) @if($key == "password") @else @endif @endif @endforeach
- old
{{__("messages.$key")}}****{!! $attr!!}
@elseif($archives->description == 'created')
@foreach($archives['properties']['attributes'] as $key =>$attr ) @if(! in_array($key,$notShowing)) @if($key == "password") @else @endif @endif @endforeach
{{__("messages.$key")}}****{!! $attr!!}
@elseif($archives->description == 'deleted')
@foreach($archives['properties']['old'] as $key =>$attr ) @if(! in_array($key,$notShowing)) @if($key == "password") @endif @endif @endforeach
{{__("messages.$key")}}**** {!! $attr!!}
@endif @endif

input Changes For all

@if(!empty($projectInput)) @foreach($projectInput as $input)

{{$input->subject->formInput->label}}

@if($input['causer_type'] == "projects") @elseif($input['causer_type'] == "branch") @else @endif
input name input type change status change by {{__('messages.created_at')}}
{{$input->subject->formInput->label}} {{$input->subject->formInput->input_type}} {{$input['description']}}{{$input->causer->hse_manager_name }} {{$input->causer->user_name}}{{$input->causer->name}}{{$input['created_at']}}
@if($input->description == 'updated')
@foreach($input['properties']['attributes'] as $key =>$attr ) @if(! in_array($key,$notShowing)) @if($key == "password") @elseif($key == "answer" && $attr != null && $input['properties']['attributes']['input_type'] == 'file') @if($input['properties']['attributes']['file_type'] == "application/pdf") @else @endif @elseif($key == "answer" && $input['properties']['attributes']['input_type'] == 'radio') @if($attr != null) @else {!! $attr!!} @endif @elseif($key == "answer" && $input['properties']['attributes']['input_type'] == 'checkbox') @if($attr != null) @php $myKeys = $input->subject->formInput->inputsElemnts->whereIn('id',$attr)->pluck('name')->toArray(); @endphp @else @endif @else @endif @endif @endforeach
- new
{{__("messages.$key")}}**** {{$input->subject->formInput->inputsElemnts->where('id',$attr)->first()->name ?? ''}} @if(!empty($myKeys)) {{'( ' . implode(' , ', $myKeys) . ' )'}} @endif {!! $attr!!}
@foreach($input['properties']['old'] as $key =>$attr ) @if(! in_array($key,$notShowing)) @if($key == "password") @elseif($key == "answer" && $attr != null && $input['properties']['old']['input_type'] == 'file') @if($input['properties']['old']['file_type'] == "application/pdf") @else @endif @elseif($key == "answer" && $input['properties']['old']['input_type'] == 'radio') @if($attr != null) @else {!! $attr!!} @endif @elseif($key == "answer" && $input['properties']['old']['input_type'] == 'checkbox') @if($attr != null) @php $myKeys = $input->subject->formInput->inputsElemnts->whereIn('id',json_decode($attr,true))->pluck('name')->toArray(); @endphp @else @endif @else @endif @endif @endforeach
- old
{{__("messages.$key")}}**** {{$input->subject->formInput->inputsElemnts->where('id',$attr)->first()->name ?? ''}} @if(!empty($myKeys)) {{'( ' . implode(' , ', $myKeys) . ' )'}} @endif {!! $attr!!}
@elseif($input->description == 'created')
@foreach($input['properties']['attributes'] as $key =>$attr ) @if(! in_array($key,$notShowing)) @if($key == "password") @elseif($key == "answer" && $attr != null && $input['properties']['attributes']['input_type'] == 'file') @if($input['properties']['attributes']['file_type'] == "application/pdf") @else @endif @elseif($key == "answer" && $input['properties']['attributes']['input_type'] == 'radio') @if($attr != null) @else {!! $attr!!} @endif @elseif($key == "answer" && $input['properties']['attributes']['input_type'] == 'checkbox') @if($attr != null) @php $myKeys = $input->subject->formInput->inputsElemnts->whereIn('id',json_decode($attr,true))->pluck('name')->toArray(); @endphp @else @endif @else @endif @endif @endforeach
{{__("messages.$key")}}**** {{$input->subject->formInput->inputsElemnts->where('id',$attr)->first()->name ?? ''}} @if(!empty($myKeys)) {{'( ' . implode(' , ', $myKeys) . ' )'}} @endif {!! $attr!!}
@elseif($input->description == 'deleted')
@foreach($input['properties']['old'] as $key =>$attr ) @if(! in_array($key,$notShowing)) @if($key == "password") @elseif($key == "answer" && $attr != null && $input['properties']['old']['input_type'] == 'file') @if($input['properties']['old']['file_type'] == "application/pdf") @else @endif @elseif($key == "answer" && $input['properties']['old']['input_type'] == 'radio') @if($attr != null) @else {!! $attr!!} @endif @elseif($key == "answer" && $input['properties']['old']['input_type'] == 'checkbox') @if($attr != null) @php $myKeys = $input->subject->formInput->inputsElemnts->whereIn('id',json_decode($attr,true))->pluck('name')->toArray(); @endphp @else @endif @else @endif @endif @endforeach
{{__("messages.$key")}}**** {{$input->subject->formInput->inputsElemnts->where('id',$attr)->first()->name ?? ''}} @if(!empty($myKeys)) {{'( ' . implode(' , ', $myKeys) . ' )'}} @endif {!! $attr!!}
@endif @endforeach @endif
@endsection