@extends('layouts.main') @section('title', 'BookStock Sample View - ' . $Distributormaster->distributor_name) @section('container')

BookStock Sample View - {{ $Distributormaster->distributor_name }}

@if(Auth::user()->role_id != 8) @if($Distributormaster->semple_status == 3) Update Status @endif @endif
@php $columns = [ "Item_SKU_Code" => "Item/SKU Code", "Item_Name" => "Item Name", "EAN_Code" => "EAN Code", "Pack_Size" => "Pack Size", "item_type" => "Item Type", "item_sub_type" => "Item Sub Type", "brand" => "Brand", "uom" => "UOM", "batch_number" => "Batch Number", "item_mrp" => "Item MRP", "item_rate" => "Item Rate", "item_qty" => "Item Quantity", "value" => "Value", "field_1" => "Field 1", "field_2" => "Field 2", "field_3" => "Field 3", "field_4" => "Field 4", "field_5" => "Field 5" ]; $j = 1; @endphp @foreach($columns as $key => $label) @endforeach @foreach($qu_templete as $row) @endforeach
@foreach($user as $row)
{{ strtoupper(substr($row->name ?? '', 0, 2)) }}
{{ $row->name }}
@if($row->id == $teamleder->lead_auditor_id) Team Leader @else Auditor @endif
{{ $row->mobile }}
{{ $row->email }}
{{ $row->pid }}
Status: @if($Distributormaster->status == 1) Pending @elseif($Distributormaster->status == 2) WIP @elseif($Distributormaster->status == 3) Submit @endif @if($row->status == 1) Active @else Block @endif
@php $Project = App\Models\Project::where('id',$Distributormaster->project_id)->first(); $total = App\Models\BookStockTemplete::where('template_id', $Project->bookstock_templete_id)->whereNull('dist_id')->where('new_iteam', 0) ->count(); $new = App\Models\BookStockTemplete::where('template_id', $Project->bookstock_templete_id)->whereNull('dist_id')->where('new_iteam', 2) ->where('user_id',$row->id)->count(); $BookStockOrignal = App\Models\BookStockOrignal::where('dist_id',$id)->pluck('id'); $wip = App\Models\Entry::where('user_id',$row->id)->whereIn('orignals_item_id',$BookStockOrignal->toArray())->distinct('orignals_item_id')->count(); @endphp
{{ $total }}
Total Items
{{ $wip }}
Working Items
{{ $new }}
New Items
{{ $total + $new - $wip }}
Pending Items
@endforeach
@endsection