2024-01-11 08:59:40 +11:00
|
|
|
@extends('home')
|
2023-09-02 20:50:54 +10:00
|
|
|
|
|
|
|
@section('page_title')
|
2025-01-15 23:29:53 +11:00
|
|
|
@include('fragment.dn.header')
|
2023-09-02 20:50:54 +10:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('main-content')
|
2025-01-15 18:32:41 +11:00
|
|
|
<x-note/>
|
|
|
|
<x-success/>
|
|
|
|
<x-error/>
|
2023-09-02 20:50:54 +10:00
|
|
|
|
|
|
|
<div class="main-card mb-3 card">
|
2024-01-11 08:59:40 +11:00
|
|
|
<form id="dn-update" method="POST" class="needs-validation" action="{{ url('entry/update/commit') }}" novalidate>
|
|
|
|
@csrf
|
|
|
|
<input type="hidden" name="dn" value="{{ $o->getDNSecure() }}">
|
2025-01-15 18:32:41 +11:00
|
|
|
|
2024-01-11 08:59:40 +11:00
|
|
|
<div class="card-body">
|
|
|
|
<div class="row">
|
2025-01-16 12:47:55 +11:00
|
|
|
<div class="col-12 col-lg-6 mx-auto pt-3">
|
2023-09-02 20:50:54 +10:00
|
|
|
|
|
|
|
<div class="card-title"><h3>@lang('Do you want to make the following changes?')</h3></div>
|
2025-01-16 12:47:55 +11:00
|
|
|
<table class="table table-bordered table-striped w-100">
|
2023-09-02 20:50:54 +10:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Attribute</th>
|
|
|
|
<th>OLD</th>
|
|
|
|
<th>NEW</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
2025-01-16 12:47:55 +11:00
|
|
|
@foreach ($o->getAttributesAsObjects()->filter(fn($item)=>$item->isDirty()) as $key => $oo)
|
2023-09-02 20:50:54 +10:00
|
|
|
<tr>
|
2025-01-16 12:47:55 +11:00
|
|
|
<th rowspan="{{ $x=max($oo->values->keys()->max(),$oo->old_values->keys()->max())+1}}">
|
|
|
|
<abbr title="{{ $oo->description }}">{{ $oo->name }}</abbr>
|
|
|
|
</th>
|
2023-09-02 20:50:54 +10:00
|
|
|
@for($xx=0;$xx<$x;$xx++)
|
|
|
|
@if($xx)
|
|
|
|
</tr><tr>
|
|
|
|
@endif
|
|
|
|
|
2025-01-16 12:47:55 +11:00
|
|
|
<td>{{ $oo->render_item_old($xx) ?: '['.strtoupper(__('New Value')).']' }}</td>
|
|
|
|
<td>{{ $oo->render_item_new($xx) ?: '['.strtoupper(__('Deleted')).']' }}<input type="hidden" name="{{ $key }}[]" value="{{ Arr::get($oo->values,$xx) }}"></td>
|
2023-09-02 20:50:54 +10:00
|
|
|
@endfor
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2024-01-11 08:59:40 +11:00
|
|
|
</div>
|
2023-09-02 20:50:54 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-11 08:59:40 +11:00
|
|
|
</form>
|
|
|
|
|
2025-01-15 18:32:41 +11:00
|
|
|
<div class="row p-3">
|
|
|
|
<div class="col-12 offset-sm-2 col-sm-4 col-lg-2 mx-auto">
|
|
|
|
<x-form.cancel/>
|
|
|
|
<x-form.submit action="Update" form="dn-update"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-01-11 08:59:40 +11:00
|
|
|
|
2025-01-15 18:32:41 +11:00
|
|
|
</div>
|
|
|
|
@endsection
|