@extends('admin.setting.index')

@section('sub_content')
    <div class="company-detail-body">
        <div class="company-detail-body-inner">
            <div class="row justify-content-center mt-4 g-0">
                <div class="col-xl-6 col-lg-8 col-md-10">
                    <div class="card">
                        @forelse($updates as $update)
                            <div class="card-header">
                                <h5 class="card-title">@lang('Version') {{ $update->version }} | @lang('Uploaded'):
                                    {{ $update->created_at->format('Y-m-d') }}</h5>
                            </div>
                            <div class="card-body p-0">
                                <ul class="list-group">
                                    @foreach ($update->update_log as $log)
                                        <li class="list-group-item">{{ __($log) }}</li>
                                    @endforeach
                                </ul>
                            </div>
                        @empty
                            <x-empty-message message="No update log found yet!" />
                        @endforelse
                    </div>
                </div>
            </div>
        </div>
        @if ($updates->hasPages())
            <div class="pagination-wrapper">
                {{ paginateLinks($updates) }}
            </div>
        @endif
    </div>
@endsection

@push('style')
    <style>
        .empty-list-area .empty-list-icon img {
            width: 130px;
            margin-bottom: 20px
        }
    </style>
@endpush
