@php use App\Bots; $current_bot_id = getBotId(); $currentUser = getCurrentUser(); $getBotInfo = Bots::select('bots.*', 'bot_contracts.contract_type', 'bot_contracts.flag_contract_new', 'bot_contracts.contract_bill_type', 'bot_contracts.payment_method', 'bot_slots.id as bot_slot_id','bot_contracts.id as bot_contract_id', 'bot_contracts.expired_date_bank_transfer', 'bot_contracts.univa_bank_name','bot_contracts.univa_branch_name','bot_contracts.univa_account_number') ->leftJoin('bot_slots', 'bot_slots.bot_id', 'bots.id') ->leftJoin('bot_contracts', 'bot_contracts.id', 'bot_slots.bot_contract_id')->where('bots.id', $current_bot_id)->where('bots.is_deleted', 0)->first(); if($getBotInfo){ $getBotInfo->mcp_id = \Vinkla\Hashids\Facades\Hashids::connection('bot_id_mcp')->encode($getBotInfo->id); } @endphp @include('layout.basic.header', ['getBotInfo' => $getBotInfo, 'newVersion' => 1])
@include('layout.v2.basic.sidebar')
{{-- Header --}}
@include('layout.v2.basic.header-content', ['getBotInfo' => $getBotInfo])
{{-- Content --}}
@yield('content')
@include('layout.basic.footer', ['newVersion' => 1])