@extends('layouts.app') @section('css') {{-- select2 css --}} {{-- DataTable --}} {{--Lightbox--}} @endsection @section('content')
{{ __('Items') }} >> @if (isset($parentItem->name) && !empty($parentItem->name)) {{ $parentItem->name . '>>' }} @endif {{ $primaryItem->name }}
@if (count($variants) > 0) @if ($tab == 'variant' && empty($parentItem))  {{ __('Add Variant') }} @endif @endif
@if(count($variants) == 0)
{{ __('No variant available yet') }}!  {{ __('Enter first one') }}
@else
{!! $dataTable->table(['class' => 'table table-striped table-hover dt-responsive', 'width' => '100%', 'id' => 'variant-list-info', 'cellspacing' => '0']) !!}
@endif
{{ $currency_symbol }}
{{ $currency_symbol }}
{{ __('Note') }}! {{ __('Allowed File Extensions: jpg, png, gif') }}
@if (!empty($files[0]->file_name) && file_exists("public/uploads/items/".$files[0]->file_name)) Item Image @else Item Image @endif
{{ __('Manage Stock Level') }}
is_stock_managed == 1 ? 'checked':''}} >
@if($checkVariantArray)
@if(! empty($itemInfo->size))
@endif @if(! empty($itemInfo->color))
@endif @if(! empty($itemInfo->weight))
@endif
@php $i = 1; @endphp @foreach($customVariants as $cusVariant)
@php $i++; @endphp @endforeach
@endif
{{ __('Cancel') }}
@if(count($transations)>0)
@foreach($transations as $result) @endforeach
{{ __('Transaction Type') }} {{ __('Date') }} {{ __('Location') }} {{ __('Quantity In') }} {{ __('Quantity Out') }} {{ __('Quantity On Hand') }}
@if($result->transaction_type == 'PURCHINVOICE') {{ __('Purchase') }} @elseif($result->transaction_type == 'SALESINVOICE') {{ __('Sale') }} @elseif($result->transaction_type == 'STOCKMOVEIN') {{ __('Transfer') }} @elseif($result->transaction_type == 'POSINVOICE') {{ __('Pos Invoice') }} @elseif($result->transaction_type == 'STOCKMOVEOUT') {{ __('Transfer') }} @elseif($result->transaction_type == 'INITIALSTOCKIN') Initial Stock @elseif($result->transaction_type == 'STOCKIN') {{ __('Adjustment') }} @elseif($result->transaction_type == 'STOCKOUT') {{ __('Adjustment') }} @endif {{formatDate($result->transaction_date)}} {{$result->location->name}} @if($result->quantity >0 ) {{formatCurrencyAmount($result->quantity)}} @else - @endif @if($result->quantity <0 ) {{formatCurrencyAmount(str_ireplace('-','',$result->quantity))}} @else - @endif {{formatCurrencyAmount($sum[$result->location_id] += $result->quantity)}}
{{ __('Total') }} {{formatCurrencyAmount($StockIn)}} {{formatCurrencyAmount(str_ireplace('-','',$StockOut))}} {{formatCurrencyAmount(floatval($StockIn) + floatval($StockOut))}}
@else
{{ __('Transaction not available') }} @endif
@if(!empty($locData)) @foreach ($locData as $data)
{{ __('Location') }} {{ __('Available(Qty)') }}
{{$data->name}} {{ formatCurrencyAmount( (new App\Models\StockMove)->getItemQtyByLocationName($data->id, $itemInfo->id) )}}