<!DOCTYPE html>
<html lang="fa">
<head>
<meta charset="UTF-8">
<style>
    body { font-family: 'vazirmatn'; direction: rtl; text-align: right; unicode-bidi: embed; }
    table { width:100%; border-collapse: collapse; }
    table, th, td { border:1px solid #000; padding:6px; }
</style>
</head>
<body>

<h3>لیست درخواست‌ها</h3>

<table dir="rtl">
    <thead>
        <tr>
            <th>کد</th>
            <th>نام</th>
            <th>نام خانوادگی</th>
            <th>تلفن</th>
            <th>مزرعه</th>
            <th>کد ملی</th>
            <th>تاریخ</th>
        </tr>
    </thead>
    <tbody>
        @foreach($requests as $req)
        <tr>
            <td>{{ $req->id }}</td>
            <td>{{ $req->first_name }}</td>
            <td>{{ $req->last_name }}</td>
            <td>{{ $req->phone }}</td>
            <td>{{ $req->farm_name }}</td>
            <td>{{ $req->melli_code }}</td>
            <td>{{ jdate($req->created_at)->format('Y/m/d') }}</td>
        </tr>
        @endforeach
    </tbody>
</table>

</body>
</html>
