Pregmatch Removed

This commit is contained in:
Devansh 2021-11-24 15:57:21 +05:30
parent 255f757521
commit cde969868d
1 changed files with 2 additions and 8 deletions

View File

@ -2,21 +2,15 @@
<thead>
<tr>
@foreach ($columns as $key => $value)
<?php
$title = $value == 'increment_id' ? 'order_id' : $value;
?>
<th>{{ $title }}</th>
<th>{{ $value == 'increment_id' ? 'order_id' : $value }}</th>
@endforeach
</tr>
</thead>
<tbody>
@foreach ($records as $record)
<tr>
@foreach($record as $column => $value)
@php
$value = preg_replace('/[^A-Za-z0-9@#$%^&*()_!+\-]/', '', $value);
@endphp
<td>{{ $value }} </td>
@endforeach
</tr>