@extends('tenant.layouts.master') @section('breadcrumb') @include('tenant.layouts.breadcrumb', [ 'items' => [ $module == 'pos' ? __('breadcrumb.point_of_sale') : __('breadcrumb.warehouses') => '/warehouses/branches', __('breadcrumb.items') => route('tenant.' . $module . '.categories-and-items') . '?view=items', __('breadcrumb.item_data') => '#', ], ]) @endsection @section('sidebar') @include('tenant.layouts.sidebar', ['activeItem' => $module . '.categories-and-items']) @endsection @section('content')

@lang('warehouses/items/show.item_data')
@lang('warehouses/items/show.number') {{ $item->full_number }}
@lang('warehouses/items/show.name_arabic') {{ $item->ar_name }}
@lang('warehouses/items/show.name_english') {{ $item->en_name }}
@lang('warehouses/items/show.description') {{ $item->description }}
@lang('warehouses/items/show.family') {{ $item->category->name }}
@lang('warehouses/items/show.main_supplier_name') {{ $item->primary_supplier->name ?? '---' }}
@lang('warehouses/items/show.secondary_supplier_name') {{ $item->secondary_supplier->name ?? '---' }}
@lang('warehouses/items/show.country_of_origin') {{ $item->country->ar_name ?? '---' }}
@lang('warehouses/items/show.barcode_price_type') @foreach ($item_price_type as $price) {{ $price->price_type->name }} @endforeach
@lang('warehouses/items/show.item_status')
@lang('warehouses/items/show.status') {{ $item->status ? 'فعّال' : 'غير فعّال' }}
@lang('warehouses/items/show.sales_subject_to_tax') {{ $item->under_tax ? 'نعم' : 'لا' }}
@lang('warehouses/items/show.has_expiration_date') {{ $item->has_expire_date ? 'نعم' : 'لا' }}
@lang('warehouses/items/show.decimal_value') {{ $item->decimal_quantity ? 'نعم' : 'لا' }}
@lang('warehouses/items/show.barcode_settings')
@lang('warehouses/items/show.company_name')
@lang('warehouses/items/show.price')
@lang('warehouses/items/show.barcode_number')
@lang('warehouses/items/show.language')
@lang('warehouses/items/show.barcodes')
@forelse ($item->barcodes as $barcode) @php $default_price = $barcode->prices->where('is_default', true)->first(); $total_batches = $barcode->batches->sum('remaining_quantity'); $total_minus_out_batches = $barcode->minus_out_batches->sum('quantity'); $available_quantity = ($total_batches - $total_minus_out_batches) >= 0 ? ($total_batches - $total_minus_out_batches) : 0; @endphp @empty @endforelse
# @lang('warehouses/items/show.image') @lang('warehouses/items/show.name_arabic') @lang('warehouses/items/show.name_english') @lang('warehouses/items/show.barcode') @lang('warehouses/items/show.barcode_image') @lang('warehouses/items/show.unit') @lang('warehouses/items/show.available_quantity') @lang('warehouses/items/show.maximum_quantity') @lang('warehouses/items/show.minimum_quantity') @lang('warehouses/items/show.dimensions') @lang('warehouses/items/show.points_of_sale') @lang('warehouses/items/show.under_discount')
{{ $loop->iteration }} @if ($barcode->image) {{ $barcode->ar_name }} @else --- @endif {{ $barcode->number }}

{{ $company_info['name'] }}

{{ $barcode->ar_name }} @lang('warehouses/items/show.price'): {{ $default_price->price ?? '---' }}

{{ $barcode->unit->name }} {{ $available_quantity }} {{ $barcode->max_quantity }} {{ $barcode->min_quantity }}
    @if ($barcode->width)
  • @lang('warehouses/items/show.width') : {{ $barcode->width }}
  • @endif @if ($barcode->height)
  • @lang('warehouses/items/show.height'): {{ $barcode->height }}
  • @endif @if ($barcode->size)
  • @lang('warehouses/items/show.size'): {{ $barcode->size }}
  • @endif
{{ $barcode->is_pos ? 'نعم' : 'لا' }} {{ $barcode->is_under_discount ? 'نعم' : 'لا' }}
@lang('warehouses/items/show.no_barcodes')
@endsection @push('prepend-script') @endpush @push('script') @endpush