@extends('admin.layout.layout') @section('content')

Products

Add Product {{-- Displaying The Validation Errors: https://laravel.com/docs/9.x/validation#quick-displaying-the-validation-errors AND https://laravel.com/docs/9.x/blade#validation-errors --}} {{-- Determining If An Item Exists In The Session (using has() method): https://laravel.com/docs/9.x/session#determining-if-an-item-exists-in-the-session --}} {{-- Our Bootstrap success message in case of updating admin password is successful: --}} @if (Session::has('success_message')) @endif
{{-- DataTable --}} {{-- using the id here for the DataTable --}} {{-- Through the relationship --}} {{-- Through the relationship --}} {{-- Through the relationship --}} @foreach ($products as $product) {{-- Through the relationship --}} {{-- Through the relationship --}} @endforeach
ID Product Name Product Code Product Color Product Image CategorySectionAdded byStatus Actions
{{ $product['id'] }} {{ $product['product_name'] }} {{ $product['product_code'] }} {{ $product['product_color'] }} @if (!empty($product['product_image'])) {{-- Show the 'small' image size from the 'small' folder --}} @else {{-- Show the 'no-image' Dummy Image: If you have for example a table with an 'images' column (that can exist or not exist), use a 'Dummy Image' in case there's no image. Example: https://dummyimage.com/ --}} @endif {{ $product['category']['category_name'] }}{{ $product['section']['name'] }} @if ($product['admin_type'] == 'vendor') {{ ucfirst($product['admin_type']) }} @else {{ ucfirst($product['admin_type']) }} @endif @if ($product['status'] == 1) {{-- Using HTML Custom Attributes. Check admin/js/custom.js --}} {{-- Icons from Skydash Admin Panel Template --}} @else {{-- if the admin status is inactive --}} {{-- Using HTML Custom Attributes. Check admin/js/custom.js --}} {{-- Icons from Skydash Admin Panel Template --}} @endif {{-- Icons from Skydash Admin Panel Template --}} {{-- Icons from Skydash Admin Panel Template --}} {{-- Icons from Skydash Admin Panel Template --}} {{-- Confirm Deletion JS alert and Sweet Alert --}} {{-- --}} {{-- --}} {{-- Icons from Skydash Admin Panel Template --}} {{-- --}} {{-- Check admin/js/custom.js and web.php (routes) --}} {{-- Icons from Skydash Admin Panel Template --}}
@endsection