@include('admin.partials.header', ['extra' => $extra])
{{ __('lang.sno') }} |
{{ __('lang.type') }} |
{{ __('lang.voucher') }} |
{{ __('lang.details') }} |
{{ __('lang.action_type') }} |
{{ __('lang.date_time') }} |
{{ __('lang.user') }} |
@foreach ($logs_data as $log_data)
@php
$type = $log_data['type'];
$action_type = $log_data['action_type'];
$description = $log_data['description'];
$created_at = $log_data['created_at'];
$created_by = $log_data['created_by'];
$properties = $log_data['properties'];
$type_class = "";
if($action_type =='created'){
$type_class = "badge-success";
}
elseif($action_type =='updated'){
$type_class = "table-primary";
}
elseif($action_type =='deleted'){
$type_class = "badge-danger";
}
elseif($action_type =='restored'){
$type_class = "badge-info";
}
@endphp
{{ $loop->iteration }} |
{{ $type }} |
{!! $description !!} |
{!! $properties !!} |
{{ ucfirst($action_type) }}
|
{{ $created_at }} |
{{ $created_by }} |
@endforeach