

<?php $__env->startSection('content'); ?> 
<style>
        :root {
            --primary-color: #2c3e50;
            --secondary-color: #3498db;
            --accent-color: #e74c3c;
            --light-color: #f8f9fa;
            --dark-color: #343a40;
            --success-color: #28a745;
            --border-color: #dee2e6;
            --shadow-color: rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Tajawal', sans-serif;
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1400px;
            margin: 30px auto;
        }
        
        .data-container {
            background: white;
            border-radius: 12px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            margin-bottom: 30px;
        }
        
        .data-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, #4a6580 100%);
            color: white;
            padding: 25px;
            text-align: center;
            position: relative;
        }
        
        .data-title {
            font-size: 28px;
            font-weight: 700;
            margin-bottom: 12px;
            color: #ffd700;
        }
        
        .data-subtitle {
            font-size: 18px;
            margin-bottom: 8px;
            font-weight: 600;
        }
        
        .data-body {
            padding: 30px;
        }
        
        .filters {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .filter-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .filter-label {
            font-weight: 600;
            color: var(--dark-color);
        }
        
        .filter-input, .filter-select {
            padding: 10px 15px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            font-family: 'Tajawal', sans-serif;
            font-size: 14px;
        }
        
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        
        .data-table th, .data-table td {
            border: 1px solid var(--border-color);
            padding: 12px 15px;
            text-align: center;
        }
        
        .data-table th {
            background-color: #f1f6fd;
            color: var(--primary-color);
            font-weight: 700;
            position: sticky;
            top: 0;
        }
        
        .data-table tr:nth-child(even) {
            background-color: #f8f9fa;
        }
        
        .data-table tr:hover {
            background-color: #e9ecef;
        }
        
        .action-cell {
            display: flex;
            gap: 10px;
            justify-content: center;
        }
        
        .action-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .view-btn {
            background: var(--secondary-color);
            color: white;
        }
        
        .edit-btn {
            background: var(--success-color);
            color: white;
        }
        
        .delete-btn {
            background: var(--accent-color);
            color: white;
        }
        
        .no-data {
            text-align: center;
            padding: 30px;
            color: #6c757d;
            font-style: italic;
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            margin-top: 20px;
            gap: 10px;
        }
        
        .pagination-btn {
            padding: 8px 15px;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: white;
            cursor: pointer;
            font-family: 'Tajawal', sans-serif;
        }
        
        .pagination-btn.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        .summary {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
            padding: 15px;
            background: #f1f6fd;
            border-radius: 8px;
            font-weight: 600;
        }
        
        @media (max-width: 768px) {
            .filters {
                flex-direction: column;
            }
            
            .data-table {
                display: block;
                overflow-x: auto;
            }
            
            .action-cell {
                flex-direction: column;
            }
            
            .summary {
                flex-direction: column;
                gap: 10px;
            }
        }
    </style>
</head>
<body>
     
    <div class="container">
        <!-- Data Container -->

        <div class="card shadow">
        <div class="card-header  text-white" style="background-color:#2C4E71">
            <div class="row">
                <div class="col-md-6">
                    <h4 class="mb-0">  قائمة المفروزات </h4>
                </div>
                <div class="col-md-6 text-right">
                    <a  href='<?php echo e(url("sorting/index")); ?>'  class="btn btn-light">
                        <i class="fas fa-plus"></i> إضافة  علية فرز جديدة
                    </a>
                </div>
            </div>
        </div>
        <div class="data-container">
            <!-- Data Header -->
             
            
            <!-- Data Body -->
            <div class="data-body">
                <!-- Filters -->
                
                
                <!-- Data Table -->
                <table id="example1" class="data-table">
                    <thead>
                        <tr>
                            
                            <th>تاريخ الفرز</th>
                            <th>الجهة المورد </th>
                            <th>فتره التجميع من</th>
                            <th>فتره التجميع الي</th>
                            <th>اسم الصنف</th>
                             <th>الكمية</th>
                            <th>ملاحظات</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach($sorting as $sort): ?>
                        <tr>
                            <td><?php echo e($sort->sort_date); ?> </td>
                            <td><?php echo e($sort->supplier->name); ?></td>
                            <td><?php echo e($sort->date_from); ?> </td>
                            <td><?php echo e($sort->date_to); ?> </td>
                            <td><?php echo e($sort->sell_store->store->sell_name); ?></td>
                            <td><?php echo e($sort->quantity); ?></td>
                            <td><?php echo e($sort->note); ?></td>
                        </tr>
                        <?php endforeach; ?>
                        
                        
                    </tbody>
                </table>
                
                <!-- Pagination -->
                
                
                <!-- Summary -->
                
            </div>
        </div>
    </div>
    <?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.masterHome2', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>