
<button class="btn btn-success btn-lg btn-lg pull-right" wire:click="showformadd" type="button">{{ trans('Students_trans.add_student') }}</button><br><br>

<div class="table-responsive">
    <table id="datatable" class="table  table-hover table-sm table-bordered p-0" data-page-length="50"
           style="text-align: center">
        <thead>
        <tr class="table-success">
            <th>#</th>
             <th>{{ trans('Students_trans.email') }}</th>
            <th>{{ trans('Students_trans.name_ar') }}</th>
            <th>{{ trans('Students_trans.Nationality') }}</th>
             <th>{{ trans('Students_trans.Religion') }}</th>
            <th>{{ trans('Students_trans.ssn') }}</th>
             <th>{{ trans('Students_trans.Processes') }}</th>
        </tr>
        </thead>
        <tbody>
       
        @foreach ($users as $user)
            <tr>
               
               <td>{{ $user->id }}</td>
                <td>{{ $user->email }}</td>
                <td>{{ $user->name }}</td>
                 <td>{{ $user->nationalitie_id }}</td>
                <td>{{ $user->religion_id }}</td>
                <td>{{ $user->ssn }}</td>
                <td>
                    <button wire:click="edit({{ $user->id }})" title="{{ trans('Grades_trans.Edit') }}" 
                            class="btn btn-primary btn-sm"><i class="fa fa-edit"></i></button>
                    <button type="button" class="btn btn-danger btn-sm" wire:click="delete({{ $user->id }})" title="{{ trans('Grades_trans.Delete') }}"><i class="fa fa-trash"></i></button>
                    <button  wire:click="show({{ $user->id }})" title="{{ trans('main_trans.show') }}"  
                            class="btn btn-primary btn-sm"><i class="fa fa-eye"></i></button>
                           
                </td>
            </tr>
        @endforeach
    </table>
</div>
