@php
$edtingimode = 1;
@endphp
Mobile Settings - {{ $row->DB_type }}
@if($row->DB_type == "Book Stock")
@elseif($row->DB_type == "Item Entry")
@elseif($row->DB_type == "PDF Settings")
@php
$edtingimode = 0;
@endphp
@elseif($row->DB_type == 'Barcode item')
@php
$edtingimode = 0;
@endphp
@endif
@php
$project_name = \App\Models\project_view_setting::where('project_id', $project)
->where('DB_type', 'like', "%{$row->DB_type}%")
->orderByRaw('CAST(List_No AS UNSIGNED) ASC')
->get();
@endphp
@foreach($project_name as $rows)
@php
$isVisible = (int) ($rows->status ?? 0) === 1;
$isMain = (int) ($rows->Main_title ?? 0) === 1;
$isSub = (int) ($rows->Sub_Title ?? 0) === 1;
$isCard = (int) ($rows->Card_Title ?? 0) === 1;
@endphp
@if($edtingimode == 1)
{{-- Main (Red) --}}
{{-- Submenu --}}
@endif
@if(($edtingimode == 0 && $rows->DB_title == 'EAN_Code' && $rows->DB_type != 'PDF Settings') || $edtingimode == 0 && $rows->DB_title == 'Pack_Size' && $rows->DB_type != 'PDF Settings')
@else
{{-- Card View (Purple) --}}
@endif
List #: {{ $rows->List_No ?? '-' }}
@endforeach