@extends('layouts.app_rest') @section('content')
{{-- --}} {{-- --}} {{-- --}}
@csrf
{{--

Branch

@error('branch_id') {{ $message }} @enderror

Warehouse

@error('warehouse_id') {{ $message }} @enderror

Department

@error('department_id') {{ $message }} @enderror

Centralized Location

@error('centralized_location_id') {{ $message }} @enderror
--}}

Type:

Retail Options:

Product Name: *

@error('name') {{ $message }} @enderror

SKU Code: *

@error('sku_code') {{ $message }} @enderror

Product Category *

Add New
{{--

Product Category

--}} @error('category') {{ $message }} @enderror

Sub Category

Add New
@error('sub_category_id') {{ $message }} @enderror

Brand

Add New
{{--

Brand

--}}

Description


@if (!empty($activities))
Aditional Details
@endif
@foreach ($activities as $activity) @if ($activity['setup_status'] == 1) @if (in_array($activity['name'], [ 'Sale Price with Tax', 'Dealer Price with Tax', 'Distribution Price with Tax', 'MRP', 'Packing Unit', 'Purchase Unit', 'Margin', 'Online Differed Price', ]))
@if ($activity['type'] == 'dropdown') @if (in_array($activity['name'], ['Purchase Unit', 'Packing Unit']))
Add New
@endif @elseif ($activity['type'] == 'text box') @if (in_array($activity['name'], ['Sale Price with Tax', 'Dealer Price with Tax', 'Distribution Price with Tax']))
@else @endif @endif
@endif @endif @endforeach

@foreach ($activities as $activity) @if ($activity['setup_status'] == 1) @if ( !in_array($activity['name'], [ 'Location', 'Price (Location wise)', 'Department wise item', 'Price (Department wise)', 'Product (Location wise)', 'Multi Languages', 'Has Promotion Item', 'Online Differed Price', 'Has an online website Digital Menu', 'Has an Online Store', 'Centralized Location', 'Has Table Digital Menu', 'Sale Price with Tax', 'Sale Price without Tax', 'Dealer Price with Tax', 'Distribution Price with Tax', 'MRP', 'Packing Unit', 'Purchase Unit', 'Margin', ]))
@if ($activity['type'] == 'checkbox')
@if ($activity['name'] == 'Multi KOT')
@elseif ($activity['name'] == 'BOT')
@endif @elseif ($activity['type'] == 'text box') @elseif ($activity['type'] == 'text area') @elseif ($activity['type'] == 'datetime') @elseif ($activity['type'] == 'dropdown' && $activity['name'] == 'Vendors')
@elseif ($activity['type'] == 'dropdown') @if (in_array($activity['name'], ['Has a Warranty Period']))
Add New
@elseif (in_array($activity['name'], ['Has Digital Menu'])) @elseif (in_array($activity['name'], ['Has Metail']))
Add New
@elseif(in_array($activity['name'], ['Has Stamp']))
Add New
@elseif(in_array($activity['name'], ['Has Stone']))
Add New
@else @endif @endif
@endif @endif @endforeach

Stock

@foreach ($activities as $activity) @if ($activity['setup_status'] == 1) @if ($activity['name'] == 'Centralized Location' || $activity['name'] == 'Location')
@if ($activity['name'] == 'Centralized Location')
{{--
--}}
@endif @if ($activity['name'] == 'Location')
@endif
@endif @endif @endforeach

Price

@foreach ($activities as $activity) @if ($activity['setup_status'] == 1) @if ($activity['name'] == 'Price (Location wise)' || $activity['name'] == 'Price (Department wise)')
@if ($activity['name'] == 'Price (Location wise)')
@endif
@endif @endif @endforeach

Languages

@foreach ($activities as $activity) @if ($activity['setup_status'] == 1 && $activity['name'] == 'Multi Languages') @foreach ($languages as $code => $name) @if ($code !== 'en')
@endif @endforeach @endif @endforeach

Promotion

@foreach ($activities as $activity) @if ($activity['setup_status'] == 1 && $activity['name'] == 'Has Promotion Item')
@if ($activity['type'] == 'text box')
@endif
@endif @endforeach
{{--

Online

@foreach ($activities as $activity) @if ($activity['setup_status'] == 1) @if ($activity['name'] == 'Has an online website Digital Menu' || $activity['name'] == 'Has an Online Store' || $activity['name'] == 'Has Table Digital Menu')
@if ($activity['type'] == 'text box')
@elseif ($activity['type'] == 'dropdown')
@elseif ($activity['type'] == 'text area') @elseif ($activity['type'] == 'checkbox')
@endif
@endif @endif @endforeach
--}} {{--
--}}
{{--

Product Activity Settings

@csrf @foreach ($activities as $activity) @endforeach
Activity Name Type Status Action
{{ $activity['name'] }} {{ $activity['type'] }} {{ $activity['setup_status'] == 1 ? 'Active' : 'Inactive' }}
--}}
{{--
--}}
@endsection @section('javascript') {{-- --}} {{-- --}} @endsection