Viewing File: /home/ubuntu/todaykat-backend-base/resources/views/exports/products.blade.php

<!DOCTYPE html>
<html>

<head>
    <title>{{tr('products')}}</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>
        <tr class="first_row_design">
            <th>{{tr('s_no')}}</th>

            <th>{{tr('ref_id')}}</th>

            <th >{{tr('name')}}</th>

            <th >{{tr('description')}}</th>

            <th >{{tr('category')}}</th>

            <th >{{tr('sub_category')}}</th>

            <th >{{tr('price')}}</th>

            <th >{{tr('our_price')}}</th>

            <th> {{ tr('thc') }} </th>

            <th> {{ tr('cbd') }} </th>

            <th> {{ tr('plant_type') }} </th>
        </tr>

        @foreach($data as $i => $product)

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

                <td>{{ $i+1 }}</td>

                <td>{{ $product->unique_id ? : tr('na') }}</td>

                <td>{{ $product->name ? : tr('na') }}</td>

                <td>{{ $product->description_formatted ? : tr('na') }}</td>

                <td>{{ $product->category->name ?? tr('na') }}</td>

                <td>{{ $product->subCategory->name ?? tr('na') }}</td>

                <td>{{ $product->price ? formatted_amount($product->price) : formatted_amount(0) }}</td>

                <!-- <td>{{ $product->price ? formatted_amount($product->price) : formatted_amount(0) }}</td> -->

                <td> {{ $product->price ? number_format((float)$product->price * 0.01131, 2, '.', '') : formatted_amount(0) }} </td>

                <td> 
                    {{ cannabidiol_per_formatted($product->thc_from, $product->thc_to, $product->thc_per_unit, request('decimal') ? : 0) }} <br />
                    {{ cannabidiol_formatted($product->thc_from, $product->thc_to, $product->thc_unit) }}
                </td>

                <td> 
                    {{ cannabidiol_per_formatted($product->cbd_from, $product->cbd_to, $product->cbd_per_unit, request('decimal') ? : 0) }} <br />
                    {{ cannabidiol_formatted($product->cbd_from, $product->cbd_to, $product->cbd_unit) }}
                </td>

                <td>{{ $product->plant_type ? : tr('na') }}</td>

            </tr>

        @endforeach

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