@php $actions = [ 'view' => [ 'url' => route('admin.testimonials.show', ['testimonial' => $testimonial->id, 'locale' => app()->getLocale()]), 'icon' => 'fas fa-eye', 'text' => __('View'), 'class' => 'btn-outline-info' ], 'edit' => [ 'url' => route('admin.testimonials.edit', ['testimonial' => $testimonial->id, 'locale' => app()->getLocale()]), 'icon' => 'fas fa-edit', 'text' => __('Edit'), 'class' => 'btn-outline-primary' ], 'toggle_active' => [ 'url' => '#', 'icon' => $testimonial->is_active ? 'fas fa-toggle-on' : 'fas fa-toggle-off', 'text' => $testimonial->is_active ? __('Deactivate') : __('Activate'), 'class' => $testimonial->is_active ? 'btn-outline-warning' : 'btn-outline-success', 'onclick' => 'toggleActive(' . $testimonial->id . ')' ], 'toggle_featured' => [ 'url' => '#', 'icon' => $testimonial->is_featured ? 'fas fa-star' : 'fas fa-star-o', 'text' => $testimonial->is_featured ? __('Unfeature') : __('Feature'), 'class' => $testimonial->is_featured ? 'btn-outline-secondary' : 'btn-outline-warning', 'onclick' => 'toggleFeatured(' . $testimonial->id . ')' ], 'delete' => [ 'url' => '#', 'icon' => 'fas fa-trash', 'text' => __('Delete'), 'class' => 'btn-outline-danger', 'onclick' => 'deleteTestimonial(' . $testimonial->id . ')' ] ]; @endphp
@push('scripts') @endpush