@include('Admin.include.export_header')
<table>
    <thead>
        <tr class="header">
            <th
                style="padding: 1px 10px; background-color: #82C202;  color: #1d1a1a;  width: 150px;  text-align: center;">
                S.No.</th>
            <th
                style="padding: 1px 10px; background-color: #82C202;  color: #1d1a1a;  width: 150px;  text-align: center;">
                Employee Name</th>
            <th
                style="padding: 1px 10px; background-color: #82C202;  color: #1d1a1a;  width: 150px;  text-align: center;">
                Employee ID</th>
            <th
                style="padding: 1px 10px; background-color: #82C202;  color: #1d1a1a;  width: 150px;  text-align: center;">
                Customer Name</th>
            <th
                style="padding: 1px 10px; background-color: #82C202;  color: #1d1a1a;  width: 150px;  text-align: center;">
                IS Arts Created</th>
            <th
                style="padding: 1px 10px; background-color: #82C202;  color: #1d1a1a;  width: 150px;  text-align: center;">
                Status</th>
            <th
                style="padding: 1px 10px; background-color: #82C202;  color: #1d1a1a;  width: 150px;  text-align: center;">
                Created At</th>
            <th
                style="padding: 1px 10px; background-color: #82C202;  color: #1d1a1a;  width: 150px;  text-align: center;">
                Updated At</th>
            <th
                style="padding: 1px 10px; background-color: #82C202;  color: #1d1a1a;  width: 150px;  text-align: center;">
                Deleted At</th>
        </tr>
    </thead>
    <tbody>
        @if (count($data['data']) > 0)
            @foreach ($data['data'] as $k => $v)
                <tr>
                    <td>{{ $k + 1 }}</td>
                    <td>{{ (!empty($v->employeeName->employee_name)?$v->employeeName->employee_name:'') }}</td>
                    <td>{{ (!empty($v->employeeName->employee_name)?$v->employeeName->employee_id:'') }}</td>
                    <td>{{ $v->customer }}</td>
                    <td>{{ isset($v->upload) ? 'Yes' : 'NO' }}</td>
                    <td>{{ $v->status == 1 ? 'Active' : 'Deactive' }}</td>
                    <td>{{ !empty($v->created_at) ? Date('d M, Y h:i A', strtotime($v->created_at)) : '' }}</td>
                    <td>{{ !empty($v->updated_at) ? Date('d M, Y h:i A', strtotime($v->updated_at)) : '' }}</td>
                    <td>{{ !empty($v->deleted_at) ? Date('d M, Y h:i A', strtotime($v->deleted_at)) : '' }}</td>
                </tr>
            @endforeach
        @endif
    </tbody>
</table>

@include('Admin.include.export_footer')
