<div class="layui-card"> <div class="layui-card-body"> <div class="layui-tab"> <ul class="layui-tab-title"> @if(checkPerm('ViewAllLog')) <li style="padding: 0" class="layui-this" id="base_info">全部</li> @endif @if(checkPerm('ViewUpdateLog')) <li style="padding: 0" id="contact">修改记录</li> @endif @if(checkPerm('ViewLog')) <li style="padding: 0" id="ruler">查看记录</li> @endif @if(checkPerm('ViewSupplierLog')) <li style="padding: 0" id="ruler">信息记录</li> @endif </ul> <div class="layui-tab-content"> <div class="layui-tab-item layui-show"> @if(checkPerm('ViewAllLog')) @if(checkPerm('AddSupplierLog')) <form class="layui-form" action=""> <div class="layui-form-item" style="margin-left: -70px;margin-bottom: 0"> @inject('statusPresenter','App\Presenters\StatusPresenter') {!! $statusPresenter->render('type','类型', '',config('fixed.SupplierLogType'),['required'=>false]) !!} </div> <div class="layui-form-item layui-form-text" style="margin-left: -70px"> <div class="layui-input-block"> <textarea name="desc" placeholder="请输入具体的信息内容" class="layui-textarea"></textarea> </div> </div> <div class="layui-form-item"> <div align="left" style="margin-top: 20px;margin-left: 40px"> <button type="button" class="layui-btn layui-btn-info layui-btn-sm submit-loading" lay-submit lay-filter="addSupplierLog">添加信息记录 </button> </div> </div> </form> @endif <div id="logs" style="margin-left: 5px"> {{--所有操作记录列表查看--}} @foreach($logs as $log) @if(is_array($log['content'])) <p><b>{{$log['action']}}</b> : </p> @foreach($log['content'] as $content) <p>{{$content}}</p> @endforeach @else <p><b>{{$log['action']}}</b> : {{$log['content']}}</p> @endif <p style="color: grey">{{$log['add_time'].' '.$log['admin_name']}}</p> <hr/> @endforeach </div> @endif </div> <div class="layui-tab-item"> @if(checkPerm('ViewUpdateLog')) @foreach($updateLogs as $log) @if(is_array($log['content'])) <p><b>{{$log['action']}}</b> : </p> @foreach($log['content'] as $content) <p>{{$content}}</p> @endforeach @else <p><b>{{$log['action']}}</b> : {{$log['content']}}</p> @endif <p style="color: grey">{{$log['add_time'].' '.$log['admin_name']}}</p> <hr/> @endforeach @endif </div> <div class="layui-tab-item"> @if(checkPerm('ViewLog')) @foreach($viewLogs as $log) @if(is_array($log['content'])) <p><b>{{$log['action']}}</b> : </p> @foreach($log['content'] as $content) <p>{{$content}}</p> @endforeach @else <p><b>{{$log['action']}}</b> : {{$log['content']}}</p> @endif <p style="color: grey">{{$log['add_time'].' '.$log['admin_name']}}</p> <hr/> @endforeach @endif </div> <div class="layui-tab-item"> @if(checkPerm('ViewSupplierLog')) @foreach($supplierLogs as $log) <p>{{$log['desc']}}</p> <p style="color: grey">{{$log['add_time'].' '.$log['admin_name']}}</p> <hr/> @endforeach @endif </div> </div> </div> </div> </div>