@extends('layouts.master') @section('styles') @endsection @section('content')

Stock Report

Export Report
Total Products: {{collect($data['sellable'])->count()}}
@if (collect($data['sellable_total'])->count()>0) @foreach (collect($data['sellable_total']) as $unit)
{{$unit->name}}:{{$unit->total_after_damage}}
@endforeach @endif {{--
Dozen: 450
Half Dozen: 450
--}}
@if(collect($data['sellable'])->count()>0) @foreach (collect($data['sellable']) as $item) @if(collect($item->prefs)->count()>0) @php $t = 0; @endphp @foreach ($item->prefs as $pref) @php $t++ @endphp @endforeach @if((3-$t>0)) @for($i=1; $i<=(3-$t); $i++) @endfor @endif @else @endif @if(collect($item->prefs)->count()>0) @php $t1 = 0; @endphp @foreach ($item->prefs as $pref) @php $t1++ @endphp @endforeach @if((3-$t1>0)) @for($i=1; $i<=(3-$t1); $i++) @endfor @endif @else @endif @endforeach @endif
Code Product Category Sellable Damaged
Cartons/Bundles Box/Strips Pieces Cartons/Bundles Box/Strips Pieces
{{$item->item_sku}} {{$item->item_name}} {{$item->main_category_name}}{{ ( ($pref['total_after_damage'] > 0) && $item->resultType == 'minus') ? '-' : '' }}{{$pref['total_after_damage']}}0{{$pref['total_damage']}}0
@endsection