<p>??? ????? ? ?? ??? ?? ?? ??? ??? ? Livewire ??? ??? ??? ????. ?? ?? ?????? ??? ?? Livewire ??? ??? ?????. ??? ?? ?? ? ??? ???? ????? ? ??? ? ?? ??? ?????. </p>
<li>?? ??? ?? ???? ????? ?? ????? ?????? ????.</li>
<li>???? ??? ?? ??? ? ?? ???? ?? ?????.</li>
<li>URL? ???? ???? ????? ?? ??? ???? ??? ???? ?????. ?? ?? ??? ???? ???? ?? ???? ?????. </li>
</ul>
<p>?? ????? ???? ???? ??? ??? ???? ????? ??? ???? ???????. </p>
<p>??? ??? ???? ????? ?? ??? ?? ?????. ??? ??? ????? ???? ? ???? ?? ?????. </p>
<p><strong>ActivityLogs.php</strong></p>
<pre class="brush:php;toolbar:false;">class ActivityLogs? ?? ??? ?????.
{
WithPagination? ??????.
?? ?? $model;
?? ActivityLogRepository $activityLogRepository;
?? ?? ??(ActivityLogRepository $activityLogRepository): ??
{
$this->activityLogRepository = $activityLogRepository;
}
?? ?? ???(?? $model): ??
{
$this->?? = $??;
}
?? ?? render(): ??
{
return view('livewire.activity-logs.activity-logs', [
'??' => $this->activityLogRepository
->getLogsForModel($this->model)
->paginate(5, pageName: 'activityPage'),
]);
}
}</pre>
<p><strong>activity-logs.blade.php</strong></p>
<pre class="brush:php;toolbar:false;"><x-cards.simple class="col-span-6 lg:col-span-3 xl:col-span-2 overscroll-contain" ;
?? ??="lg"
title="{{ __('?? ??') }}"
icon="????"
>
<div class="my-2 pr-2 h-full lg:max-h-[300px]">
@if($activities->isNotEmpty())
@foreach($??? $????)
@dump($??)
@endforeach
<div class="mt-8">
{{ $activities->onEachSide(1)->links() }}
</div>
@? ??
<??>
{{ __('? ???? ??? ??? ????.') }}
</??>
@endif
</div>
</x-cards.simple></pre>
<p>? ??? ??? ??? ??? ??? ???????. ????! </p>