
<div id="print_div">
    <div class="pathology-bill">
<div class="row">
<div class="col-2" style="width: 20%">
    <p>Date : {!! formatedDate(date('Y-m-d')) !!}</p>
</div>
<div class="col-7" style="text-align: center;">
    <p style="color:#0b5ed7;font-size:18px;margin-bottom: -4px !important"><b>{!! $company->name ?? '' !!}</b></p>
    <p style="font-size: 14px;"><b>Products Statement</b></p>
</div>
<div class="col-2" style="text-align: right; width:20%">
    <p>Time : {!! formatedTime(date('H:i:s')) !!}</p>
</div>
</div>

<div>
    <table class="table table-bordered report-container">
        <tbody class="report-content">
            <tr>
                <td class="report-content-cell">
                    <div class="row">
                        <div class="col-12">

                            <table class="table table-bordered-print w-100 table-only-header-full-width mb-1" id="quotation_products">  
                                <thead>
                                    <tr class="text-uppercase">
                                        <th class ="thbutton">S.No</th>
                                        <th style ="text-align: left;">Product Name</th>
                                        <th style ="text-align: left;">Batch</th>
                                        <th style ="text-align: left;">HSN</th>
                                        <th style ="text-align: left;">Category</th>
                                        <th style ="text-align: left;">Brand</th>
                                        <th style ="text-align: left;">Product Group</th>
                                        <th style ="text-align: left;">Packing</th>
                                        <th style ="text-align: left;">Tax%</th>
                                        <th style ="text-align: left;">MRP</th>
                                        <th style ="text-align: left;">Purchase Price</th>
                                        <th style ="text-align: left;">Sale Price</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    @php $i=1;@endphp
                                    @if(count($data)>0)
                                    @foreach($data as $key=> $list)
                                    <tr>
                                        <td class ="text-left">{{$key+1}}</td>
                                        <td class ="text-left">{{$list->product_name ?? ''}}</td>
                                        <td class ="text-left">{{$list->batch ?? ''}}</td>
                                        <td class ="text-left">{{$list->product_hsncode ?? ''}}</td>
                                        <td class ="text-left">{{$list->category_name ?? ''}}</td>
                                        <td class ="text-left">{{$list->brand_name ?? ''}}</td>
                                        <td class ="text-left">{{$list->product_group_name ?? ''}}</td>
                                        <td class ="text-left">{{$list->product_packaging_name ?? ''}}</td>
                                        <td class ="text-left">{{ isset($list->total_percentage) ? $list->total_percentage . '%' : '0' }}</td>
                                        <td class ="text-left">{{$list->mrp ?? ''}}</td>
                                        <td class ="text-left">{{$list->purchase_price ?? ''}}</td>
                                        <td class ="text-left">{{$list->sale_price ?? ''}}</td>
                                    </tr>
                                    @php $i++; @endphp
                                    @endforeach
                                    @else
                                    <tr>
                                    <td colspan="10" class="text-center">No Data Found</td>
                                    </tr>
                                    @endif

                                </tbody>
                            </table>
                        </div>
                    </div>
                </td>
            </tr>
        </tbody>
    </table>
</div>
</div>
</div>
@if(count($data)>0)
<div class="row">
<div class="col-md-6" style="text-align: right;">
    <button id="btn_print" type="button" class="btn btn-primary btn-lg"><i class="bi bi-printer text-white"></i> Print Statement </button>
</div>

<div class="col-md-6" style="text-align: left;">
    <a href="javascript:;" class="btn btn-outline-primary export-statement"><i class="bi bi-download"></i> Export</a>
</div>
</div>
@endif
