@extends('admin.layout.master') @php $typeArr = [4 => 'CM', 5 => 'REGIONAL', 6 => 'ZONE']; $routeName = [4 => 'shop.store', 5 => 'shop.store', 6 => 'shop.store']; $editRouteName = [4 => 'shop.edit', 5 => 'shop.edit', 6 => 'shop.edit']; @endphp @section('title', $typeArr[$type]) @section('content')
| {{__('obs.name')}} ({{__('obs.english')}}) | {{__('obs.name')}} ({{__('obs.local')}}) | @if ($type == 5)CM | @endif @if ($type == 6)Region | CM | @if (active_user() == 1)Group | @endif @endifStatus | @if ($type == 6)
|
|
@endif
Action |
|---|---|---|---|---|---|---|---|---|---|
|
{{ $shop->name }} {{ $shop->parent_id }}-{{ $shop->id }} |
{{ $shop->name_local }} | @if ($type == 5){{ $shop->parent->name ?? '-' }} | @endif @if ($type == 6){{ $shop->parent->name ?? '-' }} | {{ $shop->parent->parent->name ?? '-' }} | @if (active_user() == 1){{ $shop->refGroup->name_eng ?? '' }} | @endif @endifstatus == 1 ? 'checked' : '' }} data-toggle="toggle" data-size="sm" data-onstyle="success"> | @if ($type == 6)is_under_process == 1 ? 'checked' : '' }} data-toggle="toggle" data-size="sm" data-onstyle="info" data-on="Yes" data-off="No"> | is_laptop_distributed == 1 ? 'checked' : '' }} data-toggle="toggle" data-size="sm" data-onstyle="warning" data-on="Yes" data-off="No"> | @endif
@if (checkAuthPermission($editRouteName[$type]))
@endif
@if (checkAuthPermission('api.warehouse.dms.warehouse-create') && !$shop->ref_dms_warehouse_id && $type == 6)
|