@php $article = \App\Article::with('category')->with('maincategory')->select('image')->where('code',$row['article'])->first();
@endphp
{{$i }} |
{{ !empty($article->maincategory) ? $article->maincategory->name : $row['section'] }} |
{{ !empty($article->category) ? $article->category->name : $row['subsection'] }} |
{{ $row['article'] }} |
{{ $row['color'] }} |
{{ $row['size'] }} |
{{ $row['barcode'] }} |
{{ $row['hsn'] }} |
{{ $row['mrp'] }} |
@php
if($row['mrp'] >= 1000)
{
$tax = 12;
}else
{
$tax = 5;
}
@endphp
{{ $tax }} |
@php
if($row['qty'] > 1)
{
$row['qty'] = 1;
}
$gtotalqty = $gtotalqty + $row['qty'];
@endphp
{{ $row['qty'] }} |
@php $i++; @endphp
@endforeach