FlyMuna logoFlyMunaTRAVEL • VISA • TOURS • TICKETS

আপনার ভ্রমণ, আমাদের দায়িত্ব ✈️

Visa Processing, , Air Ticket, Tour Package ও Hotel Booking—সবকিছু এক জায়গায়।

FlyMuna Account
Booking করতে Customer Login করুন অথবা নতুন Account তৈরি করুন।

আমাদের সার্ভিস

যে সার্ভিসটি প্রয়োজন, সরাসরি নির্বাচন করুন
🛂
Visa Processingসকল দেশের visa checking
✈️
Air TicketTicket request
🏝️
Tour Packageদেশ-বিদেশ
🏨
Hotel BookingBooking request
🕋
Hajj & Umrahহজ ও ওমরাহ প্যাকেজ
🌍
Visa Checkingযে কোনো দেশের ভিসা চেকিং

কীভাবে FlyMuna কাজ করে

সহজ ৪ ধাপে আপনার ভিসা/বুকিং প্রসেস
01 · Account

Login না করেও booking করতে পারবেন। Booking-এর সময় নাম ও মোবাইল দিলে Customer ID (FM-...) অটোমেটিক তৈরি হবে।

02 · Application

দেশ ও সার্ভিস নির্বাচন করে প্রয়োজনীয় তথ্য এবং document submit করুন।

03 · Payment

bKash-এর মাধ্যমে নির্ধারিত advance payment করুন এবং Transaction ID দিন।

04 · Processing

Payment verification-এর পর FlyMuna আপনার application processing শুরু করবে। Account থেকেই status দেখুন।

💳 Payment & Support

পেমেন্ট ও সহায়তার নিয়ম
💰 bKash Payment

01623744440 (Personal) নম্বরে নির্ধারিত amount পাঠিয়ে Transaction ID submit করুন।

🧾 Advance Payment

Visa/Tour package-এ সাধারণত 50% advance দিয়ে application শুরু করা হবে।

💬 Support

Payment বা document বিষয়ে সাহায্যের জন্য FlyMuna WhatsApp support ব্যবহার করুন।

📢 গুরুত্বপূর্ণ নোটিশ

Service Guide & Important Information

🕋

Hajj & Umrah Package

Passport: Booking/confirmation-এর পর অফিসের নির্দেশনা অনুযায়ী passport ও প্রয়োজনীয় documents জমা দিতে হবে। Fingerprint: অফিস থেকে নির্ধারিত তারিখে উপস্থিত হয়ে fingerprint দিতে হবে। কাজ শুরু: যাত্রার তারিখের যত আগে সম্ভব booking ও document process শুরু করুন; package অনুযায়ী নির্ধারিত deadline Admin জানাবে।

Hajj & Umrah
🏝️

Tour Package

Package নির্বাচন করে Book করুন, traveller সংখ্যা ও travel date দিন। এরপর প্রয়োজনীয় documents/payment ধাপ সম্পন্ন করুন। Package অনুযায়ী hotel, transport, food ও itinerary-এর তথ্য order-এ দেখানো হবে।

Tour Guide
✈️

Air Ticket

From, To, travel date, trip type, passenger সংখ্যা ও class দিন। Request submit করার পর available flight/quotation জানানো হবে। Ticket issue করার আগে passenger name ও travel information ভালোভাবে যাচাই করুন।

Air Ticket Guide
🏨

Hotel Booking

Destination, check-in, check-out, guests ও room type নির্বাচন করে request পাঠান। Availability ও price confirmation-এর পর booking process এগোবে। Booking confirmation না পাওয়া পর্যন্ত reservation final ধরে নেবেন না।

Hotel Guide
🛂

Tourist Visa — Required Documents

দেশভেদে documents আলাদা। সাধারণভাবে Passport bio page, recent photo, travel/return ticket, accommodation/itinerary, financial evidence এবং প্রয়োজন হলে occupation/supporting documents লাগতে পারে। নির্দিষ্ট দেশের Visa page-এ country-specific checklist দেখুন; কর্তৃপক্ষ অতিরিক্ত documents চাইতে পারে।

Visa Guide

জনপ্রিয় ট্যুর প্যাকেজ

ছবিসহ সাজানো প্যাকেজ

🛂 Tourist Visa Center

বাংলাদেশ থেকে tourist visa service — দেশ নির্বাচন করুন, fee ও required documents দেখুন
🌍 সকল দেশের ভিসা চেকিং করা হয়
যে কোনো দেশের visa checking, eligibility ও document requirement সম্পর্কে প্রাথমিক যাচাই করা যাবে। বিস্তারিত checklist পেতে ব্যবহার করুন।
🛂 Tourist Visa Service
এখানে দেখানো দামগুলো FlyMuna-এর service/package price—সরকারি/embassy visa fee আলাদা হলে তা আবেদন করার আগে জানানো হবে। Document checklist দেশ ও visa category অনুযায়ী পরিবর্তিত হতে পারে। কর্তৃপক্ষ অতিরিক্ত document চাইতে পারে।
📝 ১. Booking শুরু করুন

Login ছাড়াই Apply/Book করতে পারবেন। নাম ও মোবাইল দিলে Customer ID (FM-...) তৈরি হবে। এরপর Apply Now চাপুন।

💳 ২. Payment করুন

Application submit করার পর payment step-এ নির্ধারিত advance amount দেখাবে। bKash 01623744440-এ payment করে Transaction ID দিন।

⏱️ ৩. Processing

Payment verification-এর পর processing শুরু হবে। উপরে দেখানো সময়টি আনুমানিক service timeline; document বা authority delay হলে সময় বাড়তে পারে।

📦 ৪. Status দেখুন

Account → Booking History থেকে order status, message এবং processing update দেখুন।

🕋 Hajj & Umrah

হজ ও ওমরাহর জন্য আলাদা প্যাকেজ ও বুকিং সেবা
🕋 Hajj & Umrah Service
এখানে শুধু হজ ও ওমরাহর প্যাকেজগুলো দেখানো হবে। প্যাকেজ নির্বাচন করে সরাসরি Book Now চাপুন।

🏖️ Tour Packages

আপনার পছন্দের package নির্বাচন করুন
🇧🇩 বাংলাদেশ Tour Package — দেশের ভেতরের দর্শনীয় ও ভ্রমণযোগ্য স্থানগুলো এখানে দেখানো হবে। 🕋 Hajj & Umrah এবং 🛂 Visa Processing তাদের নিজ নিজ service section-এ থাকবে।

✈️ Air Ticket Service

আপনার যাত্রার তথ্য পাঠান, আমরা ticket options জানাব
International ticket processing-এর জন্য passport bio-page কপি দিতে হতে পারে।

🏨 Hotel Booking

বাংলাদেশ ও International Hotel Booking
🇧🇩 জনপ্রিয় বাংলাদেশি Tour Destination-এর Hotel
Cox’s Bazar ও Sylhet-এর অনলাইনে প্রকাশিত/official-listed hotel ও room rates থেকে কিছু option দেখানো হচ্ছে। Final price/date availability booking-এর সময় নিশ্চিত হবে।

🏨 Custom Hotel Booking Request

🔎 Track Your Order

Order ID, Customer ID অথবা Transaction ID দিয়ে খুঁজুন

👤 My Profile

আপনার নিজের তথ্য নিজেই পূরণ ও আপডেট করুন

👨‍💼 Admin Control Center

Products, services, prices এবং customer orders manage করুন

সকল আবেদন / Orders

IDCustomerServicePaymentStatusAction

🌍 FlyMuna Professional Center

এক জায়গা থেকে Visa, Air Ticket, Tour, Hotel, Documents, Payment ও Customer Support পরিচালনার জন্য প্রস্তুত।

🛂 Smart Visa
দেশভিত্তিক checklist, application ও document verification
✈️ Ticket Management
Request, PNR/reference, passenger তথ্য ও status
🏖️ Tour & Hotel
Package, price, itinerary, hotel ও booking management
💳 Payment Center
Fee breakdown, transaction ID ও payment status
🔔 Notifications
Application status, payment ও important updates
🛡️ Admin Control
Products, prices, orders, customers ও documents
💬 24/7 WhatsApp Support
01623744440
Customer application/tracking page থেকে সরাসরি WhatsApp support.
');w.document.close();w.focus();setTimeout(()=>w.print(),300)} // Accept both legacy demo admin email and the new FlyMuna admin email. const _f36OriginalAdminLogin=window.adminLogin; window.adminLogin=function(e){ e.preventDefault();const email=(document.getElementById('adminEmail')?.value||'').trim().toLowerCase(),pass=document.getElementById('adminPass')?.value||''; if((email==='admin@flymuna.com'||email==='admin@pagoltravel.com')&&pass==='123456'){admin=true;localStorage.setItem('ptAdmin','1');localStorage.setItem('ptAdminEmail',email);closeModal('adminModal');updateHeader();showPage('admin');renderAdmin();adminTab('orders');} else alert('Admin login তথ্য ভুল।'); }; /* ================= FlyMuna v38 WhatsApp Document & Fingerprint Center ================= */ const FM_WHATSAPP='8801623744440'; const FM_WHATSAPP_DISPLAY='01623744440'; function fmSafeFileName(name){return String(name||'file').replace(/[^a-zA-Z0-9._-]+/g,'_').slice(0,120)} function fmOpenWhatsApp(message){ const url='https://wa.me/'+FM_WHATSAPP+'?text='+encodeURIComponent(message||'Hello FlyMuna'); window.open(url,'_blank','noopener'); } function fmWhatsAppDocumentMessage(b,files,kind){ const names=(files||[]).map(f=>f.name).filter(Boolean); return `Hello FlyMuna,\n\n${kind||'Documents'} submit করতে চাই।\nOrder ID: ${b?.id||'New Order'}\nCustomer: ${b?.customer||current?.name||''}\nCustomer ID: ${b?.customerId||current?.id||''}\nMobile: ${current?.mobile||''}\n\nDocuments attached: ${names.length?names.join(', '):'Passport copy / required documents'}\n\nআমি এই WhatsApp chat-এ Passport ও প্রয়োজনীয় document files attach করছি।`; } function fmRememberWhatsAppDocs(b,files,kind){ const arr=[...(files||[])].map(f=>({name:f.name,type:f.type||'',size:f.size||0,status:'WhatsApp — Customer must attach',uploadedAt:new Date().toISOString()})); b.details=b.details||{}; b.details.uploads=arr; b.details.documentChannel='WhatsApp'; b.details.documentKind=kind||'Documents'; b.details.documentInstruction='Customer must attach the selected files manually in WhatsApp chat.'; b.details.documentsSentAt=new Date().toISOString(); return arr; } function fmDocStatusClass(s){return s==='Verified'?'verified':s==='Needs Re-upload'?'reupload':''} function fmSetDocStatus(orderIndex,status){ const b=bookings[orderIndex]; if(!b)return; b.details=b.details||{}; b.details.documentStatus=status; b.details.documentReviewedAt=new Date().toISOString(); b.details.documentReviewedBy=localStorage.getItem('ptAdminEmail')||'Admin'; ensureOrderMeta(b); addOrderMessage(orderIndex,'Admin',status==='Verified'?'✅ Documents verified.':'↩️ কিছু document আবার WhatsApp-এ পাঠাতে হবে।'); save(); renderAdmin(); fmLoadAllDocuments(); } function fmAdminWhatsApp(b){ const mobile=(users.find(u=>u.id===b.customerId)?.mobile)||''; const msg=`Hello ${b.customer||'Customer'},\n\nFlyMuna থেকে আপনার ${b.service||'application'} সম্পর্কে যোগাযোগ করছি।\nOrder ID: ${b.id}\n\nPlease send/confirm your Passport and required documents in this WhatsApp chat.\nWhatsApp: ${FM_WHATSAPP_DISPLAY}`; fmOpenWhatsApp(msg); } function fmDocCardForOrder(b,i){ const up=b.details?.uploads||[]; const names=up.length?up.map((d,n)=>`
📎 ${esc(d.name||'Document '+(n+1))}
${esc(d.type||'File')} • ${Number(d.size||0)?(Number(d.size)/1024/1024).toFixed(2)+' MB':'Size unavailable'}
Status: ${esc(b.details?.documentStatus||d.status||'WhatsApp Pending')}
Channel: WhatsApp
`).join(''):'
কোনো file name record নেই। Customer-কে WhatsApp-এ Passport/documents পাঠাতে বলুন।
'; return `

📄 ${esc(b.service)}

Order: ${esc(b.id)} • Customer: ${esc(b.customer)} • ${esc(b.customerId)}
${names}
`; } function fmLoadAllDocuments(){ const box=document.getElementById('fmDocumentList'); if(!box)return; if(!admin){box.innerHTML='
Admin login required.
';return;} const list=bookings.filter(b=>b.details?.uploads?.length || b.details?.documentChannel==='WhatsApp' || b.details?.passportDocumentsRequired || b.service?.toLowerCase().includes('visa')); box.innerHTML=list.length?list.map((b)=>fmDocCardForOrder(b,bookings.indexOf(b))).join(''):`
কোনো document request পাওয়া যায়নি।
`; } function fmViewOrderDocuments(orderId){ const b=bookings.find(x=>x.id===orderId); if(!b)return ''; const up=b.details?.uploads||[]; return `

📄 Document Submission

📱 এই order-এর documents WhatsApp ${FM_WHATSAPP_DISPLAY}-এ পাঠাতে হবে/পাঠানো হয়েছে। Website browser সরাসরি WhatsApp-এ file attach করতে পারে না—customer-কে chat-এ file attach করতে হবে।
${up.map(d=>`
📎 ${esc(d.name)} — ${esc(d.status||'WhatsApp Pending')}
`).join('')}`; } const _fmOldViewOrder=window.viewOrder; window.viewOrder=async function(i){ const b=bookings[i];if(!b)return; const docs=b.details?.documents||[]; const cloud=fmViewOrderDocuments(b.id); serviceContent.innerHTML=`

📦 ${esc(b.service)}

Order: ${esc(b.id)}
Customer: ${esc(b.customer)} (${esc(b.customerId)})
Mobile: ${esc(users.find(u=>u.id===b.customerId)?.mobile||'')}
${docs.length?'

📋 Required Checklist

'+docs.map(d=>`
${d.checked?'☑️':'⬜'} ${esc(d.name)}
`).join(''):''}${b.details?.passport?`
Passport Number: ${esc(b.details.passport)}
`:''}${cloud}
🖐️ Fingerprint Appointment
Loading appointment...
💳 Payment
Status: ${esc(b.paymentStatus||'Unpaid')}
Method: ${esc(b.paymentMethod||'—')}
Transaction ID: ${esc(b.transaction||'—')}
Paid Amount: ${b.paidAmount?money(b.paidAmount):'—'}
📱 WhatsApp: ${FM_WHATSAPP_DISPLAY}
`; openModal('serviceModal');fmRenderFingerprintAdmin(i); } function fmRenderFingerprintAdmin(i){const b=bookings[i],box=document.getElementById('fpBox_'+b.id);if(!box)return;const fp=b.fingerprint||{};const dflt=new Date(Date.now()+2*86400000).toISOString().slice(0,10);box.innerHTML=`
Status: ${esc(fp.status||'Pending scheduling')}${fp.date?`
Date: ${esc(fp.date)}`:''}${fp.time?`
Time: ${esc(fp.time)}`:''}${fp.note?`
Note: ${esc(fp.note)}`:''}
`} function fmSaveFingerprint(i){const b=bookings[i];if(!b)return;const date=document.getElementById('fpDate_'+i)?.value||'',time=document.getElementById('fpTime_'+i)?.value||'',note=document.getElementById('fpNote_'+i)?.value||'';if(!date||!time){alert('Fingerprint date ও time দিন।');return}b.fingerprint={status:'Scheduled',date,time,note};ensureOrderMeta(b);addOrderMessage(i,'Admin',`🖐️ Fingerprint appointment নির্ধারণ করা হয়েছে: ${date} ${time}. ${note}`);save();fmRenderFingerprintAdmin(i);alert('Fingerprint appointment saved.');} // Visa: keep the selected file names locally and send the customer to WhatsApp to attach the actual files. window.submitVisaApplication=async function(e,i){ e.preventDefault(); if(!requireLogin())return;try{ let v=visas[i],docs=v[5],checks=docs.map((d,n)=>({name:d,checked:document.getElementById('doc_'+n).checked})),files=[...(document.getElementById('vaFiles')?.files||[])]; if(!files.length){alert('Passport / required document file নির্বাচন করুন। এরপর WhatsApp-এ file attach করবেন।');return;} let missing=checks.filter(x=>!x.checked);if(missing.length&&!confirm('কিছু checklist item select করা হয়নি। তবুও submit করবেন?'))return; let price=priceToNumber(v[3]),depositPercent=50,depositAmount=Math.ceil(price*depositPercent/100),orderId=id('VS'); let b={id:orderId,customerId:current.id,customer:current.name,service:v[0]+' Tourist Visa Processing',details:{price,packagePrice:price,depositPercent,depositAmount,payableAmount:depositAmount,fullPackagePrice:price,processingDays:Number(v[6]||0),passport:document.getElementById('vaPassport').value.trim(),travelDate:document.getElementById('vaDate').value,note:document.getElementById('vaNote').value.trim(),documents:checks,uploads:[],fingerprintRequired:true,passportDocumentsRequired:true},status:'Pending Payment',paymentStatus:'Unpaid',transaction:'',paidAmount:0,created:new Date().toLocaleString('en-BD'),createdAt:Date.now(),whatsapp:FM_WHATSAPP_DISPLAY}; fmRememberWhatsAppDocs(b,files,'Visa / Passport Documents'); bookings.unshift(b); save(); closeModal('visaApplyModal'); fmOpenWhatsApp(fmWhatsAppDocumentMessage(b,files,'Visa / Passport Documents')); setTimeout(()=>openPaymentForOrder(b.id),400); }catch(err){console.error(err);alert('Application submit করতে সমস্যা হয়েছে: '+err.message);} }; // Hajj/Umrah: passport copies are sent through WhatsApp; fingerprint appointment is set by Admin after document review. window.confirmTourBooking=async function(i){try{let t=products[i],isPilgrimage=isPilgrimagePackage(t),a=isPilgrimage?Math.max(1,Number(document.getElementById('tourTravellers')?.value||1)):Number(document.getElementById('tourAdults')?.value||1),c=isPilgrimage?0:Number(document.getElementById('tourChildren')?.value||0),date=document.getElementById('tourTravelDate')?.value||'';if(!date)return alert('Travel Date নির্বাচন করুন।');let unit=priceToNumber(t.price),total=isPilgrimage?(a*unit):(a*unit+Math.ceil(c*unit*0.7));let files=isPilgrimage?[...(document.getElementById('huFiles')?.files||[])]:[];if(isPilgrimage&&!files.length)return alert('Passport copy / required documents file নির্বাচন করুন।');let b=createBooking('Tour Package — '+t.name,{duration:t.duration,price:t.price,unitPrice:unit,adults:a,children:c,travellers:a+c,isPilgrimage:true,passportDocumentsRequired:true,officeFingerprintRequired:true,travelDate:date,room:document.getElementById('tourRoom')?.value||'',note:document.getElementById('tourNote')?.value||'',total,payableAmount:total,depositPercent:50,description:t.desc},'TR');if(isPilgrimage){fmRememberWhatsAppDocs(b,files,'Hajj / Umrah Passport Documents');b.fingerprint={status:'Pending scheduling',note:'Passport/documents WhatsApp-এ submit হওয়ার পর সাধারণত ১–২ দিনের মধ্যে অফিসে fingerprint appointment দেওয়া হবে।'};save();fmOpenWhatsApp(fmWhatsAppDocumentMessage(b,files,'Hajj / Umrah Passport Documents'));}closeModal('bookingModal');openPaymentForOrder(b.id);}catch(err){alert('Booking/document submit ব্যর্থ হয়েছে: '+err.message);}} // Air Ticket: passport files are not uploaded to the website; customer is instructed to attach them in WhatsApp. window.ticketSubmit=async function(e){e.preventDefault();try{if(!requireLogin())return;let files=[...(document.getElementById('ticketPassportFiles')?.files||[])],b=createBooking('Air Ticket',{from:from.value,to:to.value,date:travelDate.value,trip:tripType.value,passengers:passengers.value,class:seatClass.value,note:ticketNote.value,passportDocumentsRequired:files.length>0},'TK');if(files.length){fmRememberWhatsAppDocs(b,files,'Air Ticket Passport Documents');save();fmOpenWhatsApp(fmWhatsAppDocumentMessage(b,files,'Air Ticket Passport Documents'));}else save();openPaymentForOrder(b.id);}catch(err){alert('Ticket request submit ব্যর্থ হয়েছে: '+err.message);}} const _fmOldRenderAdmin=window.renderAdmin; window.renderAdmin=function(){_fmOldRenderAdmin();if(document.getElementById('adminDocuments')&&!document.getElementById('adminDocuments').classList.contains('hidden'))fmLoadAllDocuments();} /* No Firebase is used in this version. All actual files are exchanged directly in WhatsApp. */ // Robust, large, understandable back navigation for every page. const fmPageHistory=[]; let fmBackInProgress=false; const _fmBaseShowPage=window.showPage; window.showPage=function(p){ const active=document.querySelector('.page.active'); if(active && active.id!==p && !fmBackInProgress){fmPageHistory.push(active.id);if(fmPageHistory.length>30)fmPageHistory.shift();} _fmBaseShowPage(p); setTimeout(()=>{const pg=document.getElementById(p);if(pg){const b=pg.querySelector('.backbtn');if(b)b.innerHTML='← পেছনে ফিরে যান'; }},0); }; window.goBack=function(){ let target=fmPageHistory.pop()||'home'; if(target==='admin' && !admin)target='home'; fmBackInProgress=true; _fmBaseShowPage(target); fmBackInProgress=false; window.scrollTo({top:0,behavior:'smooth'}); }; // Add a visible back button to pages that previously had none. document.addEventListener('DOMContentLoaded',()=>{ document.querySelectorAll('.page').forEach(pg=>{ if(pg.id==='home')return; const section=pg.querySelector('.section'); if(!section || section.querySelector('.backbtn'))return; const btn=document.createElement('button');btn.className='btn outline backbtn';btn.type='button';btn.innerHTML='← পেছনে ফিরে যান';btn.onclick=()=>goBack();section.insertBefore(btn,section.firstChild); }); fmLoadAllDocuments(); }); // PWA service worker; works when hosted over HTTPS. if('serviceWorker' in navigator && location.protocol==='https:'){window.addEventListener('load',()=>navigator.serviceWorker.register('sw.js').catch(()=>{}));} ');w.document.close();w.focus();setTimeout(()=>w.print(),300); }; window.fm41Invoice=function(orderId){const b=(typeof bookings!=='undefined'?bookings.find(x=>x.id===orderId):null);fm41Invoice(b)}; function fm41Notifications(){ if(typeof current==='undefined'||!current)return []; const mine=(typeof bookings!=='undefined'?bookings:[]).filter(b=>b.customerId===current.id&&!isPublicHidden(b)); const out=[]; mine.forEach(b=>{ out.push({t:b.created||'',x:`${b.service}: ${b.status||'Pending'}`}); if(b.paymentStatus==='Pending Verification')out.push({t:'Payment',x:`${b.id}: Payment verification pending.`}); if(b.fingerprint?.date)out.push({t:'Fingerprint',x:`${b.id}: ${b.fingerprint.date} ${b.fingerprint.time||''}`}); (b.messages||[]).slice(-2).forEach(m=>out.push({t:m.at||'',x:`${m.from}: ${m.text}`})); }); return out.slice(-12).reverse(); } window.fm41ShowNotifications=function(){ const ns=fm41Notifications(); const body=ns.length?'
'+ns.map((n,i)=>{ const x=String(n.x||''); let icon='🔔',label='Update',cls=''; if(/payment/i.test(x)){icon='💳';label='Payment';} else if(/fingerprint/i.test(String(n.t))){icon='🖐️';label='Fingerprint';} else if(/confirm|confirmed/i.test(x)){icon='✅';label='Confirmed';cls='success';} else if(/cancel|reject/i.test(x)){icon='❌';label='Cancelled';cls='danger';} else if(/document|re-upload/i.test(x)){icon='📄';label='Documents';} return `
${icon}
${label}
${esc(x)}
`; }).join('')+'
':'
🔔

কোনো নতুন Notification নেই

আপনার booking, payment, document অথবা fingerprint-এর update এখানে দেখা যাবে।

'; fm41Open('🔔 Notifications',`

আপনার আপডেট

Booking, payment, document ও fingerprint status

${ns.length} Update
${body}
`,true); }; function fm41Legal(type){ const data={ terms:['Terms & Conditions',''], privacy:['Privacy Policy',''], refund:['Refund / Cancellation Policy',''], contact:['Contact FlyMuna',''] };const d=data[type];if(d)fm41Open(d[0],d[1]); }; window.fm41ChangeAdminPassword=function(){ const old=prompt('বর্তমান Admin Password দিন:'); if(old===null)return; const saved=localStorage.getItem('fmAdminPassword')||'123456'; if(old!==saved)return alert('বর্তমান password সঠিক নয়।'); const np=prompt('নতুন Admin Password দিন (কমপক্ষে 6 characters):'); if(!np||np.length<6)return alert('Password কমপক্ষে 6 characters হতে হবে।'); localStorage.setItem('fmAdminPassword',np);alert('Admin password পরিবর্তন হয়েছে।'); }; const oldAdminLogin=window.adminLogin; window.adminLogin=function(e){ e.preventDefault();const email=document.getElementById('adminEmail')?.value.trim().toLowerCase(),pass=document.getElementById('adminPass')?.value||'';const saved=localStorage.getItem('fmAdminPassword')||'123456'; if(email==='admin@flymuna.com'&&pass===saved){admin=true;localStorage.setItem('ptAdmin','1');localStorage.setItem('ptAdminEmail',email);closeModal('adminModal');updateHeader();showPage('admin');renderAdmin();}else alert('Admin login তথ্য ভুল।'); }; const oldRenderAccount=window.renderAccount; window.renderAccount=function(){ oldRenderAccount(); if(typeof current==='undefined'||!current)return; const box=document.getElementById('accountBox');if(!box)return; const cards=box.querySelectorAll('.history-card'); const mine=(typeof bookings!=='undefined'?bookings:[]).filter(b=>b.customerId===current.id&&!isPublicHidden(b)&&['Confirmed','Completed'].includes(b.status)); cards.forEach((card,idx)=>{const b=mine[idx];if(!b)return;let tools=card.querySelector('.fm41-tools');if(!tools){tools=document.createElement('div');tools.className='fm41-tools';card.appendChild(tools)}tools.innerHTML=``}); let tools=box.querySelector('.fm41-account-tools');if(!tools){tools=document.createElement('div');tools.className='fm41-tools fm41-account-tools';tools.innerHTML='';box.insertBefore(tools,box.firstChild)} }; window.fm41ChangeCustomerPassword=function(){ if(typeof current==='undefined'||!current)return; const old=prompt('বর্তমান password দিন:');if(old===null)return;const idx=users.findIndex(u=>u.id===current.id);if(idx<0)return; const saved=users[idx].password||'';if(old!==saved)return alert('বর্তমান password সঠিক নয়।');const np=prompt('নতুন password দিন (কমপক্ষে 6 characters):');if(!np||np.length<6)return alert('Password কমপক্ষে 6 characters হতে হবে।');users[idx].password=np;current=users[idx];localStorage.setItem('ptCurrent',JSON.stringify(current));save();alert('Password পরিবর্তন হয়েছে।'); }; const oldRenderAdmin=window.renderAdmin; window.renderAdmin=function(){oldRenderAdmin(); const a=document.getElementById('admin');if(!a)return; const nav=a.querySelector('.f36-admin-nav');if(nav&&!nav.querySelector('.fm41-admin-password')){const b=document.createElement('button');b.className='btn outline fm41-admin-password';b.type='button';b.textContent='🔐 Change Admin Password';b.onclick=fm41ChangeAdminPassword;nav.appendChild(b)} const orders=a.querySelectorAll('tr');orders.forEach(tr=>{const txt=tr.innerText||'';const match=txt.match(/(TR|VS|TK|HT)-[A-Z0-9-]+/);if(match&&!tr.querySelector('.fm41-inv-btn')){const td=tr.lastElementChild;if(td){const b=document.createElement('button');b.className='btn outline fm41-inv-btn';b.textContent='🧾 Invoice';b.onclick=()=>{const bi=bookings.findIndex(x=>x.id===match[0]);if(bi>=0)fm41Invoice(match[0])};td.appendChild(b)}}}); }; function fm41Footer(){ const footer=document.querySelector('.pt-footer');if(!footer||footer.querySelector('.fm41-footer-links'))return; const d=document.createElement('div');d.className='fm41-footer-links';d.style.cssText='margin-top:16px;display:flex;justify-content:center;gap:8px;flex-wrap:wrap';d.innerHTML='';footer.appendChild(d); } const oldUpdateHeader=window.updateHeader; window.updateHeader=function(){oldUpdateHeader();fm41Footer();const oldNotify=document.querySelector('.bar > .fm41-notify');if(oldNotify)oldNotify.remove();const n=fm41Notifications().length;const c=document.getElementById('fm43Count');if(c)c.textContent=n>99?'99+':n;const search=document.getElementById('fm43Search');if(search&&!document.activeElement?.matches('#fm43Search'))search.value='';}; window.fm43GlobalSearch=function(q){ q=String(q||'').trim().toLowerCase(); if(!q)return; const services=[ ['🛂','Visa Processing','visa','দেশ ও ভিসা আবেদন'],['✈️','Air Ticket','ticket','ফ্লাইট ও টিকিট request'],['🏝️','Tour Package','tour','বাংলাদেশের tour package'],['🏨','Hotel Booking','hotel','Bangladesh ও international hotel'],['🕋','Hajj & Umrah','hajjUmrah','হজ ও ওমরাহ package'],['🔎','Order Tracking','status','Order ID দিয়ে status দেখুন'] ]; let results=services.filter(x=>(x[1]+' '+x[3]).toLowerCase().includes(q)).map(x=>``); if(typeof products!=='undefined'&&Array.isArray(products)){ products.forEach((p,i)=>{const hay=((p.name||'')+' '+(p.title||'')+' '+(p.location||'')+' '+(p.category||'')).toLowerCase();if(hay.includes(q))results.push(``)}); } if(!results.length)results=[`
🔍
কিছু পাওয়া যায়নিVisa, Tour, Hotel, Ticket, Hajj, Umrah অথবা package-এর নাম দিয়ে আবার খুঁজুন।
`]; fm41Open('🔎 FlyMuna Search',`
Search Resultsআপনার খোঁজার ফলাফল
${results.length} Result
${results.join('')}
`,true); }; window.fm43PickPage=function(page){fm41Close();setTimeout(()=>showPage(page),60)}; window.fm43PickProduct=function(i){fm41Close();setTimeout(()=>{if(typeof bookProduct==='function')bookProduct(i);else showPage('tour')},60)}; function fm43SetActive(page){document.querySelectorAll('.fm43-bottom button[data-fm43-page]').forEach(b=>b.classList.toggle('active',b.getAttribute('data-fm43-page')===page));} const _fm43ShowPage=window.showPage; window.showPage=function(p){_fm43ShowPage(p);fm43SetActive(p);}; document.addEventListener('DOMContentLoaded',()=>{setTimeout(()=>{fm41Footer();if(typeof updateHeader==='function')updateHeader()},150);}); })();