<table id="example22" class="table table-striped table-bordered dt-responsive nowrap" style="width:100%">
    <thead>
        <tr>
        <th>Frame Name</th>
    <th>Qty</th>
    <th>Frame Rate</th>
    <th>Glass Name</th>
    <th>Glass Rate</th>
    <th>Amount</th>
    <th>Action</th>
        </tr>
    </thead>
    <tbody>

        @foreach($data as $result)
            @if($result->GlassRate == '')
            @php $GlassRate = 0; @endphp
            @else
            @php $GlassRate = $result->GlassRate; @endphp
            @endif
        <tr>
            <td>{{$result->FrameName}}</td>
            <td>{{$result->Qty}}</td>
            <td>&#8377;{{number_format($result->Rate,2)}}</td>
            <td>{{$result->GlassName}}</td>
            <td>&#8377;{{number_format($GlassRate,2)}}</td>
            <td>&#8377;{{number_format($result->TotalAmount,2)}}</td>
            <input type="hidden" class="txt2" value="{{$result->TotalAmount}}">
            <td><a data-id="{{$result->id}}" href='javascript:void(0);' data-toggle="tooltip" data-placement="top" title="Delete" data-original-title="Delete" class="delete"><i class="lnr lnr-trash text-danger"></i></a></td>

        </tr>

        @endforeach
    </tbody>
</table>
<script type="text/javascript">
$(document).ready(function() {
    $('#example22').DataTable({
        responsive: true
    });
});
</script>