Files
hatame 2f431971c0 git add .
git commit "Complete project development and finalize features"
2026-08-22 11:14:07 +03:30

141 lines
3.9 KiB
PHP

@extends('admin.layouts.app')
@section('breadcrumb')
<span>
گزارش فعالیت‌ها
</span>
@endsection
@section('content')
<div class="container mt-4">
<div class="card shadow">
<div class="card-body">
<h5 class="mb-4">
گزارش تغییرات سیستم
</h5>
<div class="table-responsive">
<table class="table table-bordered text-center align-middle">
<thead class="table-light">
<tr>
<th>شناسه</th>
<th>مدیر</th>
<th>عملیات</th>
<th>بخش</th>
<th>شناسه مورد</th>
<th>توضیحات</th>
<th>تاریخ</th>
</tr>
</thead>
<tbody>
@forelse($logs as $log)
<tr>
<td>
{{ $loop->iteration }}
</td>
<td>
{{ $log->admin->first_name ?? '-' }}
</td>
<td>
@switch($log->action)
@case('create')
<span class="badge bg-success">
ایجاد
</span>
@break
@case('update')
<span class="badge bg-warning">
ویرایش
</span>
@break
@case('delete')
<span class="badge bg-danger">
حذف
</span>
@break
@default
{{ $log->action }}
@endswitch
</td>
<td>
@if($log->model == 'Flight')
پرواز
@elseif($log->model == 'Tour')
تور
@else
{{ $log->model }}
@endif
</td>
<td>
{{ $log->model_id }}
</td>
<td>
{{ $log->description }}
</td>
<td>
{{ $log->created_at->toJalali()->format('Y/m/d H:i') }}
</td>
</tr>
@empty
<tr>
<td colspan="7">
موردی یافت نشد
</td>
</tr>
@endforelse
</tbody>
</table>
</div>
{{ $logs->links() }}
</div>
</div>
</div>
@endsection