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

From

@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->name}} {{$archives->created_at}}
@if(!empty($archives)) @if($archives->description == 'updated')
@foreach($archives['properties']['attributes'] as $key =>$attr ) @if(! in_array($key,$notShowing)) @if($inlog =="form" && $key == "branches" && $attr!= null) @php $named = \App\Models\Branch::whereIn('id',json_decode($attr,true))->pluck('name')->toArray(); @endphp @if(!empty($named)) @endif @elseif($key == "approved") @else @endif @endif @endforeach
- new
{{__("messages.$key")}}{{'( ' . implode(' , ', $named) . ' )'}}{{$attr == 1 ? __('messages.approved_true'): __('messages.approved_false')}}{!! $attr!!}
@foreach($archives['properties']['old'] as $key =>$attr ) @if(! in_array($key,$notShowing)) @if($inlog =="form" && $key == "branches" && $attr!= null) @php $named = \App\Models\Branch::whereIn('id',json_decode($attr,true))->pluck('name')->toArray(); @endphp @if(!empty($named)) @endif @elseif($key == "approved") @else @endif @endif @endforeach
- old
{{__("messages.$key")}}{{'( ' . implode(' , ', $named) . ' )'}}{{$attr == 1 ? __('messages.approved_true'): __('messages.approved_false')}}{!! $attr!!}
@elseif($archives->description == 'created')
@foreach($archives['properties']['attributes'] as $key =>$attr ) @if(! in_array($key,$notShowing)) @if($inlog =="form" && $key == "branches" && $attr!= null) @php $named = \App\Models\Branch::whereIn('id',json_decode($attr,true))->pluck('name')->toArray(); @endphp @if(!empty($named)) @endif @elseif($key == "approved") @else @endif @endif @endforeach
{{__("messages.$key")}}{{'( ' . implode(' , ', $named) . ' )'}}{{$attr == 1 ? __('messages.approved_true'): __('messages.approved_false')}}{!! $attr!!}
@elseif($archives->description == 'deleted')
@foreach($archives['properties']['old'] as $key =>$attr ) @if(! in_array($key,$notShowing)) @endif @endforeach
{{__("messages.$key")}} {!! $attr!!}
@endif @endif

input Changes For all

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

{{$input->subject->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->label}} {{$input->subject->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)) @endif @endforeach
- new
{{__("messages.$key")}} {!! $attr!!}
@foreach($input['properties']['old'] as $key =>$attr ) @if(! in_array($key,$notShowing)) @endif @endforeach
- old
{{__("messages.$key")}} {!! $attr!!}
@elseif($input->description == 'created')
@foreach($input['properties']['attributes'] as $key =>$attr ) @if(! in_array($key,$notShowing)) @if($key == "input_type" && in_array($input['properties']['attributes']['input_type'],['radio','checkbox'])) @php $mykeys = $input->subject->inputsElemnts->pluck('name')->toArray(); @endphp @else @endif @endif @endforeach
{{__("messages.$key")}} {!! $attr!!} -- @if(!empty($mykeys)) {{'( ' . implode(' , ', $mykeys) . ' )'}} @endif {!! $attr!!}
@elseif($input->description == 'deleted')
@foreach($input['properties']['old'] as $key =>$attr ) @if(! in_array($key,$notShowing)) @endif @endforeach
{{__("messages.$key")}} {!! $attr!!}
@endif @endforeach @endif
@endsection