Server : Apache System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 User : vapecompany ( 2719) PHP Version : 7.4.33 Disable Function : NONE Directory : /home/vapecompany/demo.vapecompany.com.bd/resources/views/backend/exports/ |
Upload File : |
<table style="table-layout: auto;width: 80%;"> <thead> @if($companyInfo) <tr><td colspan="{{$colors->count()+5}}" style="text-align: center;"> {{$companyInfo->company_name ? $companyInfo->company_name: "MAKTEL LIMITED"}}</td></tr> <tr><td colspan="{{$colors->count()+5}}" style="text-align: center;"> {{$companyInfo->company_address ? $companyInfo->company_address : "House-277(Level-4),Lane-4,Baridhara DOHS,Dhaka-806."}}</td></tr> <tr><td colspan="{{$colors->count()+5}}" style="text-align: center;"> Hotline: +{{$companyInfo->company_phone ? $companyInfo->company_phone: "88 01844241530"}}</td></tr> <tr><td colspan="{{$colors->count()+5}}" style="text-align: center;"> Email: {{$companyInfo->company_email ? $companyInfo->company_email : "info@maktel.com.bd"}}</td></tr> <tr><td colspan="{{$colors->count()+5}}" style="text-align: center;"> Web: {{$companyInfo->company_website ? $companyInfo->company_website : "www.maktel.com.bd"}}</td></tr> <tr><td colspan="{{$colors->count()+5}}" style="text-align: center;">Facebook: {{$companyInfo->company_facebook ? $companyInfo->company_facebook : "www.facebook.com/maktel"}}</td></tr> @else <tr><td colspan="{{$colors->count()+5}}">MAKTEL LIMITED</td></tr> <tr><td colspan="{{$colors->count()+5}}">House-277(Level-4),Lane-4,Baridhara DOHS,Dhaka-806.</td></tr> <tr><td colspan="{{$colors->count()+5}}">Hotline:+88 01844241530</td></tr> <tr><td colspan="{{$colors->count()+5}}">Email:info@maktel.com.bd</td></tr> <tr><td colspan="{{$colors->count()+5}}">Web:www.maktel.com.bd</td></tr> <tr><td colspan="{{$colors->count()+5}}">Facebook:www.facebook.com/maktel</td></tr> @endif <tr> <th class="min-mobile" colspan="{{$colors->count()+5}}">Stock Summary Report</th> </tr> <tr> <th class="min-mobile">SL</th> <th class="not-mobile">Brand</th> <th class="not-mobile">Product Name</th> <th class="not-mobile">Model</th> @foreach($colors as $color) <th class="not-mobile">{{$color->color_name}}</th> @endforeach <th class="not-mobile">Total</th> </tr> </thead> <tbody> @php $i=1;$g_total=0;$tatal_arr=array(); @endphp @foreach($stocks as $chalan) <tr> <td class="min-mobile">{{$i}}</td> <td class="min-mobile">{{$chalan->brand->brand_name}}</td> <td class="not-mobile">{{$chalan->product_name}}</td> <td class="not-mobile">{{$chalan->model->model_name}}</td> @php $total=0; @endphp @foreach($colors as $color) <td class="not-mobile"> @php $q= $chalan->barcodes->where('color_id',$color->color_id)->sum('quantity'); if(!isset($tatal_arr[$color->color_id])){ $tatal_arr[$color->color_id]=0; } $tatal_arr[$color->color_id] += $q; $total += $q; @endphp {{$q}} </td> @endforeach <td class="min-mobile">{{$total}}</td> </tr> @php $g_total += $total; $i++; @endphp @endforeach <tr> <td style="text-align:right;" colspan="4"><strong>Total:</strong></td> @foreach($colors as $color) <td><strong>{{$tatal_arr[$color->color_id]}}</strong></td> @endforeach <td><strong>{{$g_total}}</strong></td> </tr> </tbody> </table>