@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_card') => '#', ], ]) @endsection @section('sidebar') @include('tenant.layouts.sidebar', ['activeItem' => $module . '.categories-and-items']) @endsection @section('style') @endsection @section('content')
@php $selected_fiscal_year = (request()->fiscal_year)?? $current_year->id; @endphp
@php $from_date = (request()->from_date)?? $current_year->parseDateToCarbon('from')->format(config('app.date_format')); @endphp
@php $to_date = (request()->to_date)?? $current_year->parseDateToCarbon('to')->format(config('app.date_format')); @endphp
@php $selected_action_types = request('action_types') ?? []; $action_types = [ ['label' => 'سند الإدخال', 'value' => 'entry_bond'], ['label' => 'سند الإخراج', 'value' => 'out_bond'], ['label' => 'سند تحويل', 'value' => 'convert_bond'], ['label' => 'سند تصنيع', 'value' => 'manufacturing_bond'], ['label' => 'فاتورة شراء', 'value' => 'purchase_invoice'], ['label' => 'فاتورة بيع', 'value' => 'sales_invoice'], ['label' => 'مردود مشتريات', 'value' => 'returned_purchase_bond'], ['label' => 'مردود مبيعات', 'value' => 'returned_sales_bond'], ]; @endphp
@php $selected_item = (request('item_id'))?? $item->id; @endphp
@php $selected_barcodes = (request('barcodes'))?? []; @endphp
@php $selected_branches = (request('branches'))?? []; @endphp
@php $show_minus_sales = (request('show_minus_sales'))?? true; @endphp
@php $show_sub_units = (request('show_sub_units'))?? false; @endphp
@endsection @push('script') {{-- add the tom-select library to delete the multiple select options --}} @endpush