@extends("admin.layouts.app") @section("content")
Image | Item Code | Item Name | Item Type | Before Qty | After Qty | Before Stock Status | After Stock Status | SMS | Warehouses | option |
---|---|---|---|---|---|---|---|---|---|---|
|
{{$code}} | @if(!is_null($relation)&&$relation->is_active) {!! IHouse::wrapHtmlElementWithLink( $name, \IHouse::getModelLink($relation,$model), ) !!} @else {{ $name }} @endif | {{$type}} | {{$sync_batch_activity->before_quantity}} | {{$sync_batch_activity->after_quantity}} | {{$sync_batch_activity->before_stock_status}} | {{$sync_batch_activity->after_stock_status}} | @if($sync_batch_activity->sync_activity_sms()->count()>0) | @else No SMS @endif
@foreach($sync_batch_activity->sync_activity_warehouses as $sync_activity_warehouse)
{{$sync_activity_warehouse->warehouse?$sync_activity_warehouse->warehouse->title:"-"}}
: {{$sync_activity_warehouse->stock}}
@endforeach |
@if(($type=='Accessory Color'| $type=='Item Color')&&$relation) @if($type=='Item Color') @lang("constants.edit") @endif @if($type=='Accessory Color') @lang("constants.edit") @endif Stock Details @endif |
{!! $sync_batch_activities->links()!!} |
Image | Name | Code | Visible | Balance | Type | Id | Action | |
---|---|---|---|---|---|---|---|---|
{{Form::text("name",request()->get("name"),['class'=>"form-control form-filter input-sm"])}} | {{Form::text("code",request()->get("code"),['class'=>"form-control form-filter input-sm"])}} | {{Form::checkbox("show_locked",1, request()->get('show_locked', 1))}} | {{Form::checkbox("has-balance",1, request()->get('has-balance', 1))}} | {!! Form::close() !!} | ||||
@php
$entityData = findEntityByCode($missing->code);
@endphp
@if($entityData)
|
@if($entityData && $entityData['entity']->is_active) {!! IHouse::wrapHtmlElementWithLink( ($entityData['relation'] instanceof \App\Models\Item) ? $entityData['relation']->nickname : optional($entityData['relation'])->name, \IHouse::getModelLink($entityData['relation'], $entityData['entity']), ) !!} @else {{ $missing->name ??'-' }} @endif | {{ $missing->code??'' }} | @if (!$missing->is_locked) @else @endif | {{ $missing->stock_balance ?? '-' }} | @if($entityData) {!! generateEntityStatus($entityData) !!} @endif | @if($entityData) {{ $entityData['entity']->id }} @endif | @if($entityData) @php $type = $entityData['type']; $relation = $entityData['relation']; @endphp @if(($type === 'AccessoryColor' || $type === 'ItemColor') && $relation) @if($type === 'ItemColor') @lang("constants.edit") @endif @if($type === 'AccessoryColor') @lang("constants.edit") @endif Stock Details @endif @endif | |
No data found. | ||||||||
{!! $missings->links() !!} |
Name | Code | UnHide | Balance | Type | Id | Action |
---|---|---|---|---|---|---|
{{Form::text("name_hiding",request()->get("name_hiding"),['class'=>"form-control form-filter input-sm"])}} | {{Form::text("code_hiding",request()->get("code_hiding"),['class'=>"form-control form-filter input-sm"])}} | {{Form::checkbox("has-balance",1, request()->get('has-balance-hiding', 1))}} | {!! Form::close() !!} | |||
{{ $missing->name }} | {{ $missing->code }} | @if (!$missing->is_locked) @else @endif | {{$missing->stock_balance??'-'}} |
@php
$accessory = \App\Models\Accessory::withTrashed()->where("code",$missing->code)->first();
if($accessory){
echo "Accessory";
echo $accessory->is_locked ? " Locked" : ""; echo $accessory->deleted_at ? " Deleted" : ""; echo $accessory->is_active ? "" : " Not Active"; } $accessory_color = \App\Models\AccessoryColor::withTrashed()->where("code",$missing->code)->first(); if($accessory_color){ echo "Accessory Color"; echo $accessory_color->is_locked ? " Locked" : ""; echo $accessory_color->deleted_at ? " Deleted" : ""; echo $accessory_color->is_active ? "" : " Not Active"; echo optional($accessory_color->accessory)->is_active ? "" : " Accessory Not Active"; } $item = \App\Models\Item::where("code",$missing->code)->first(); if($item){ echo "Item"; echo $item->is_locked ? " Locked" : ""; echo $item->deleted_at ? " Deleted" : ""; echo $item->is_active ? "" : " Not Active"; } $item_color = \App\Models\ItemColor::withTrashed()->where("code",$missing->code)->first(); if($item_color){ echo "Item Color"; echo $item_color->is_locked ? " Locked" : ""; echo $item_color->deleted_at ? " Deleted" : ""; echo $item_color->is_active ? "" : " Not Active"; echo optional($item_color->item)->is_active ? "" : " Item Not Active"; } $used_item = \App\Models\UsedItem::withTrashed()->where("code",$missing->code)->first(); if($used_item){ echo "Used Item"; echo $used_item->deleted_at ? " Deleted" : ""; echo $used_item->is_active ? "" : " Not Active"; } @endphp |
@if($accessory) {{$accessory->id}} @elseif($accessory_color) {{$accessory_color->id}} @elseif($item) {{$item->id}} @elseif($item_color) {{$item_color->id}} @elseif($used_item) {{$used_item->id}} @endif | @empty |
No data found. | ||||||
{!! $showLockedMissings->links() !!} |