@extends('layouts.admin') @php $Disname='حركات المخزون'; $icon='fa fa-history'; @endphp @section('title', $Disname) @section('head') @endsection @section('page_subheader')
@endsection @section('page_content')

{{$Disname}}

اضافة حركة مخزون للمنتج:
@csrf @if(count($product->variants) > 1)
@show_error('product_variant_id')
@endif
@show_error('type')
@show_error('qty')
@show_error('price')

@if(isset($out) && count($out) > 0)
@foreach($out as $o) @endforeach
# المنتج السعر نوع الحركة رقم الطلب تاريخ الحركة وقت الحركة الكمية
{{$loop->iteration}} {{$o->productVariant?$o->productVariant->name:$o->product->name}} {{@$o->price}} {{HELPER::set_if($config['currency_ar'])}} @if($o->operation_type == 'AddToStock') @if($o->order_id ) اعادة مخزون @else اضافة منتج @endif {{-- @elseif($o->type == 'GetFromStock')--}} {{-- سحب منتج --}} @else شراء منتج @endif @if($o->order_id ) @if($o->order) @cando('view','orders') {{$o->order_id?'#'.$o->order_id:'-'}} @elsecando {{$o->order_id?'#'.$o->order_id:'-'}} @endcando @else {{'#'.$o->order_id}} @endif @else - @endif {{@$o->created_at->toDateString()}} {{@$o->created_at->toTimeString()}} @if(is_null($o->amount)) كمية غير محدودة @else @if($o->amount > 0 || $o->operation_type == 'AddToStock') {{$o->amount}} @else {{$o->amount * -1}} @endif @endif
المجموع {{$product->available_quantity}}
{!! $out->links() !!} @else

لا يوجد بيانات للعرض

@endif
@endsection @section('custom_scripts') @endsection