@foreach($umrahTrips as $key=> $row)
<tr>
    <th scope="row">
        {{$loop->iteration}}
{{--        <div class="custom-control custom-checkbox">--}}
{{--            <input type="checkbox" class="custom-control-input selectOne deleteCheck" id="customCheck{{$row->id}}" value="{{$row->id}}" name="id[]">--}}
{{--            <label class="custom-control-label" for="customCheck{{$row->id}}"></label>--}}
{{--        </div>--}}
    </th>
    <td>{{$row->name}}</td>
    <td>
        <ul>
            @foreach($row->umrah_trip_date as $umrahTripDate)
                <li>{{$umrahTripDate}}</li>
            @endforeach
        </ul>
    </td>
{{--    <td>{{__('umrahTrips.'.$row->package_type)}}</td>--}}
    <td colspan="2">{{ \Carbon\Carbon::parse($row->created_at)->format('Y/m/d') }}</td>
    <td>
{{--        @if($row->deleted_at)--}}
{{--            <a href="{{ route ('umrahTrips.restore', $row->id) }}" data-method="put" class="icon rowAction" title="{{ __('dashboard.restore') }}"><img src="{{ asset('assets/admin/images/icons/restore.svg') }}" alt="{{ __('dashboard.restore') }}"></a>--}}

{{--            <a href="{{ route ('umrahTrips.destroy', $row->id) }}" data-method="delete" class="icon rowAction" title="{{ __('dashboard.delete') }}"><img src="{{ asset('assets/admin/images/icons/close.svg') }}" alt="{{ __('dashboard.delete') }}"></a>--}}
{{--        @else--}}
            <a href="{{ route ('umrahTrips.edit', $row->id) }}" class="icon" title="{{ __('dashboard.edit') }}"><img src="{{ asset('assets/admin/images/icons/draw.svg') }}" alt="{{ __('dashboard.edit') }}"></a>
            <a style="cursor: pointer" class="active_umrah_trip icon" data-href="{{route('umrahTrips.activeUmrahTrip', $row->id)}}"><i class="fa fa-2x {{$row->status ? 'fa-check text-success' : 'fa-times text-danger'}}"></i></a>

{{--            <a href="{{ route ('umrahTrips.destroy', $row->id) }}" data-method="delete" class="icon rowAction" title="{{ __('dashboard.trash') }}"><img src="{{ asset('assets/admin/images/icons/del.svg') }}" alt="{{ __('dashboard.trash') }}"></a>--}}
{{--        @endif--}}
    </td>
</tr>
@endforeach

@if( count( $umrahTrips ) )
<tr> <td></td><td> {{ $umrahTrips->links() }} </td> </tr>
@endif

