@extends('layout.layout') @section('content') @include('components.alert')
@can('retention_products_create') @endcan
Filters
@foreach ($products as $index => $item) {{ $products->firstItem() + $index }} {{ $item->name_en }} {{ $item->name_ar }} {{ $item->productType->name_en ?? 'N/A' }} {{ $item->price }} {{ $item->count_of_students ?? 0 }}
@can('retention_products_update') @endcan @can('retention_products_destroy') @if ($item->can_delete == 'yes') @else @endif @endcan
@endforeach
@foreach ($products as $item) @can('retention_products_update') @include('dashboard.academics.products.update-modal', ['item' => $item]) @endcan @can('retention_products_destroy') @if ($item->can_delete == 'yes') @include('dashboard.academics.products.delete-modal', ['item' => $item]) @endif @endcan @endforeach @can('retention_products_create') @include('dashboard.academics.products.create-modal') @endcan
@endsection @push('styles') @endpush