@extends('layouts.master') @section('css') @section('title') {{ __('home.stock') }}@stop @endsection @section('page-header')
@endsection @section('content') @if (count($errors) > 0)
خطا
@endif
{{ csrf_field() }}
@can('System setting')
@endcan

# {{__('home.productNo')}} {{__('home.product')}} {{__('home.branch')}} {{__('home.productlocation')}} {{__('home.quantity')}} {{__('home.purchaseproductwithouttax')}} {{__('home.sellingproduct without tax')}}
- - - - - - - -
@endsection @section('js') function replaceproduct(id) { branchs_id = $('#branchs_id').val(); console.log(branchs_id) console.log(" {{URL::to('operationproducts')}}/" + branchs_id + "/" + id) jQuery.ajax({ url: " {{URL::to('operationproducts')}}/" + branchs_id + "/" + id, type: 'get', dataType: 'html', cache: false, success: function(data) { console.log('done') $('#operation_product').modal().show(); $("#ajax_responce_operation_product_Div").html(data); }, error: function() { } }); } function searchaboutproduct_location_function() { searchtext = $('#Location').val(); var token_search = $("#token_search").val(); console.log(searchtext) console.log('-----------------*----------------') jQuery.ajax({ url: "{{ URL::to('searchaboutproduct_location_function')}}", type: 'post', cache: false, dataType: 'html', data: { "_token": token_search, "searchtext": searchtext, }, success: function(data) { $("#ajax_responce_serarchDiv").html(data); }, error: function(response) { console.log(response) } }); } // في صفحة الـ Blade، أضف هذا السكريبت لربط الزر $('#unified_export_btn').on('click', function(e) { e.preventDefault(); // افترضنا أن هناك select لاختيار الفرع يحمل id="branch_filter" // وإذا كنت تريد تمرير القيمة الافتراضية للفرع الحالي استخدم Auth()->user()->branchs_id let branchId = $('#branchs_id').val() || '-'; // بناء الرابط مع الرقم المختار let url = "{{ url('export-products') }}/" + branchId; // توجيه المتصفح لتحميل الملف window.location.href = url; }); var date = $('.fc-datepicker').datepicker({ dateFormat: 'yy-mm-dd' }).val(); $('#delete_quotation').on('show.bs.modal', function(event) { var button = $(event.relatedTarget) var id = button.data('id') $('#delete_id').val(id) }); $("#delete_quotation_function").click(function(e) { var selectCustomer = $('#delete_id').val(); if (selectCustomer != '') { $.ajax({ url: " {{URL::to('delete_product')}}" + "/" + selectCustomer, type: "GET", dataType: "html", success: function(products) { $("#ajax_responce_serarchDiv").html(products); }, }); } else { } }); {{-- Update ( 24/4/2023 ) --}} {{-- End Update ( 24/4/2023 ) --}} @endsection