@extends('layouts.master') @section('css') @endsection @section('title') Stock Groups @endsection @section('content') @isset($stockGroup) Edit Stock Group @else Add Stock Group @endisset Go Back @isset($stockGroup) @method('put') @else @endisset @csrf Name Main Stock Group Select main stock group Show In Mobile App show_in_mobile_app ? 'selected' : '' }}> Yes show_in_mobile_app ? 'selected' : '' }}> No Show In Vouchers show_in_vouchers ? 'selected' : '' }}> Yes show_in_vouchers ? 'selected' : '' }}> No Discount Perc Commission Perc Batch Is required batch_required ? 'selected' : '' }}> Yes batch_required ? 'selected' : '' }}> No Branch Select branch @foreach ($branches as $branch) branch_id == $branch->id ? 'selected' : '' }}> {{ $branch->name }} @endforeach @if (Auth::user()->company_profile->mop_fas == 1) Production Limit Show In Production Calendar show_in_production_calendar ? 'selected' : '' }}> Yes show_in_production_calendar ? 'selected' : '' }}> No @endif Stock Category Group @isset($stockGroup) @php $selectedStockCategoryGroups = $stockGroup->stockCategoryGroups ->pluck('stock_category_group_id') ->toArray(); @endphp @endisset @foreach ($stockCategoryGroups as $stockCategoryGroup) id, $selectedStockCategoryGroups) ? 'selected' : '') : '' }}> {{ $stockCategoryGroup->name }} @endforeach Image @isset($stockGroup) Update Stock Group @else Add Stock Group @endisset @endsection @section('script') @endsection