@extends('layouts.master') @section('css') @endsection @section('title') {{ __('report.stockquantity') }} @endsection @section('page-header') @endsection @section('content') @if (count($errors) > 0) @endif
{{-- استخراج بيانات الفلتر الحالية --}} @php $parsedBranch = $branchdata ?? '-'; $display = 1; $currentQty = $quantity ?? 1; $locationVal = '-'; if (!empty($branchdata) && str_contains($branchdata, '/')) { $exploded = explode('/', $branchdata); $parsedBranch = $exploded[0] ?? '-'; $display = $exploded[1] ?? 1; $currentQty = $exploded[2] ?? 1; $locationVal = $exploded[3] ?? '-'; } $branchSelected = ($parsedBranch != '-') ? App\Models\branchs::find($parsedBranch) : null; $avtSaleRate = App\Models\Avt::find(2); @endphp
@csrf
@if (isset($products))
{{ __('pagination.numberofproducts') }}: {{ $products->total() }} {{ __('home.print') }}
@forelse ($products as $index => $product) @empty @endforelse
# {{ __('home.productNo') }} {{ __('home.productname') }} {{ __('home.productlocation') }} {{ __('home.saleprice') }} {{ __('home.stock') }} {{ __('home.totalwithTax') }}
{{ $products->firstItem() + $index }} {{ $product->Product_Code }} {{ $product->product_name }} {{ $product->Product_Location ?: '-' }} {{ number_format($product->purchasingـprice, 2) }} {{ $product->numberofpice }} {{ number_format($product->purchasingـprice * $product->numberofpice, 2) }}
{{ __('home.nodata') ?? 'لا توجد بيانات مطابقة لبحثك' }}
{{ __('pagination.numberofpages') }}: {{ $products->perPage() }} في الصفحة
{{ $products->currentPage() }} / {{ $products->lastPage() }}
@endif
@endsection @section('js') @endsection