Viewing File: /home/ubuntu/route-and-root-backend-base/resources/views/exports/countries.blade.php

<!DOCTYPE html>
<html>

<head>
    <title>{{tr('countries')}}</title>
</head>

<style type="text/css">

    table {
        font-family: arial, sans-serif;
        border-collapse: collapse;
    }

    .first_row_design {
        background-color: #187d7d;
        color: #ffffff;
    }

    .row_col_design {
        background-color: #cccccc;
    }

    th {
        border: 1px solid #dddddd;
        text-align: left;
        padding: 8px;
        font-weight: bold;

    }

    td {
        border: 1px solid #dddddd;
        text-align: left;
        padding: 8px;

    }
    
</style>

<body>
    <table>
        @foreach($data as $i => $countries)

            <tr @if($i % 2 == 0) class="row_col_design" @endif>

                <td>{{ $countries->state ? : tr('na') }}</td>

                <td>{{ $countries->country ? : tr('na') }}</td>

                <td>{{ $countries->country_code ? : tr('na') }}</td>

            </tr>

        @endforeach
    </table>
</body>
</html>
Back to Directory File Manager