<?php

namespace App\Http\Controllers;

use App\Models\Specifications;
use Illuminate\Http\Request;

class EnterDataController extends Controller
{
    //
    public function index()
    {
      



 
 $specifications = [
    [
        'product_id' => 148,
        'title_ar' => 'الذاكرة الداخلية',
        'title_en' => 'Internal Storage',
        'option_ar' => '64 جيجابايت',
        'option_en' => '64 GB',
    ],
    [
        'product_id' => 148,
        'title_ar' => 'الذاكرة العشوائية',
        'title_en' => 'RAM',
        'option_ar' => '4 جيجابايت',
        'option_en' => '4 GB',
    ],
    [
        'product_id' => 148,
        'title_ar' => 'الكاميرا الخلفية',
        'title_en' => 'Rear Camera',
        'option_ar' => 'كاميرا مزدوجة بدقة 13 ميجابكسل + 2 ميجابكسل',
        'option_en' => 'Dual Camera 13 MP + 2 MP',
    ],
    [
        'product_id' => 148,
        'title_ar' => 'الكاميرا الأمامية',
        'title_en' => 'Front Camera',
        'option_ar' => 'كاميرا بدقة 8 ميجابكسل',
        'option_en' => '8 MP Camera',
    ],
    [
        'product_id' => 148,
        'title_ar' => 'البطارية',
        'title_en' => 'Battery',
        'option_ar' => '5000 مللي أمبير',
        'option_en' => '5000 mAh',
    ],
    [
        'product_id' => 148,
        'title_ar' => 'الشاشة',
        'title_en' => 'Display',
        'option_ar' => 'شاشة IPS LCD بحجم 6.56 إنش',
        'option_en' => '6.56-inch IPS LCD Display',
    ],
    [
        'product_id' => 148,
        'title_ar' => 'الدقة',
        'title_en' => 'Resolution',
        'option_ar' => '1612 × 720 بكسل',
        'option_en' => '1612 x 720 pixels',
    ],
    [
        'product_id' => 148,
        'title_ar' => 'المعالج',
        'title_en' => 'Processor',
        'option_ar' => 'معالج MediaTek Helio G35',
        'option_en' => 'MediaTek Helio G35 Processor',
    ],
    [
        'product_id' => 148,
        'title_ar' => 'نظام التشغيل',
        'title_en' => 'Operating System',
        'option_ar' => 'أندرويد 12 مع واجهة ColorOS 12.1',
        'option_en' => 'Android 12 with ColorOS 12.1',
    ],
    [
        'product_id' => 148,
        'title_ar' => 'الألوان',
        'title_en' => 'Colors',
        'option_ar' => 'أسود، أزرق',
        'option_en' => 'Black, Blue',
    ],
    [
        'product_id' => 148,
        'title_ar' => 'الأبعاد',
        'title_en' => 'Dimensions',
        'option_ar' => '163.8 × 75.1 × 8 مم',
        'option_en' => '163.8 x 75.1 x 8 mm',
    ],
    [
        'product_id' => 148,
        'title_ar' => 'الوزن',
        'title_en' => 'Weight',
        'option_ar' => '187 جرام',
        'option_en' => '187 grams',
    ],
    [
        'product_id' => 148,
        'title_ar' => 'الطول',
        'title_en' => 'Length',
        'option_ar' => '163.8 مم (6.44 بوصة)',
        'option_en' => '163.8 mm (6.44 inches)',
    ],
    [
        'product_id' => 148,
        'title_ar' => 'العرض',
        'title_en' => 'Width',
        'option_ar' => '75.1 مم (2.96 بوصة)',
        'option_en' => '75.1 mm (2.96 inches)',
    ],
    [
        'product_id' => 148,
        'title_ar' => 'السماكة',
        'title_en' => 'Thickness',
        'option_ar' => '8 مم (0.31 بوصة)',
        'option_en' => '8 mm (0.31 inches)',
    ],
];



foreach ($specifications as $spec) {
    Specifications::create($spec);
}

    }
}
