This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<x-app-layout> | |
<x-slot name="header"> | |
<h2 class="font-bold text-2xl text-white leading-tight flex items-center justify-between px-6 py-4 bg-gradient-to-r from-blue-900 to-gray-800 rounded-b-lg shadow-lg"> | |
<span class="flex items-center gap-3"> | |
<svg class="w-7 h-7 text-indigo-300" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"/> | |
</svg> | |
{{ __('Point of Sale (POS) System for: ') }} {{ $business->name }} | |
</span> | |
<div class="flex items-center gap-4 {{ App::getLocale() === 'ar' ? 'mr-auto' : 'ml-auto' }}"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.manytech.prayer.prayer_app"> | |
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | |
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" /> | |
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> | |
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" /> | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | |
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | |
<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// main.dart | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_dotenv/flutter_dotenv.dart'; | |
import 'package:flutter_localizations/flutter_localizations.dart'; | |
import 'package:flutter_native_timezone/flutter_native_timezone.dart'; // للحصول على المنطقة الزمنية المحلية | |
import 'package:flutter_screenutil/flutter_screenutil.dart'; | |
import 'package:google_fonts/google_fonts.dart'; | |
import 'package:hive_flutter/hive_flutter.dart'; | |
import 'package:permission_handler/permission_handler.dart'; // لإدارة الأذونات | |
import 'package:timezone/data/latest_all.dart' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// core/services/adhan_scheduler.dart | |
import 'dart:convert'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter_dotenv/flutter_dotenv.dart'; | |
import 'package:geolocator/geolocator.dart'; | |
import 'package:http/http.dart' as http; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
import 'package:timezone/timezone.dart' as tz; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// lib/core/services/adhan_service.dart | |
import 'package:audioplayers/audioplayers.dart'; | |
import '../../core/helpers/settings_helper.dart'; | |
import 'dart:io'; | |
class AdhanService { | |
final AudioPlayer _audioPlayer = AudioPlayer(); | |
// دالة مساعدة لتشغيل الصوت من المسار المحلي أو من الـ assets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// lib/core/services/notification_service.dart | |
import 'dart:io'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter_local_notifications/flutter_local_notifications.dart'; | |
import 'package:permission_handler/permission_handler.dart'; | |
import 'package:timezone/timezone.dart' as tz; | |
class NotificationService { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// lib/features/settings/screens/settings_screen.dart | |
import 'package:dio/dio.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; | |
import 'package:flutter/services.dart' show rootBundle; | |
import 'dart:convert'; | |
import 'package:audioplayers/audioplayers.dart'; | |
import 'package:path_provider/path_provider.dart'; | |
import 'dart:io'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// lib/features/settings/screens/settings_screen.dart | |
import 'dart:convert'; | |
import 'dart:io'; | |
import 'package:audioplayers/audioplayers.dart'; | |
import 'package:dio/dio.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart' show rootBundle; | |
import 'package:path_provider/path_provider.dart'; | |
import 'package:shared_preferences/shared_preferences.dart'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adding current user to www-data | |
sudo adduser $USER www-data | |
//change ownership to user:www-data and | |
sudo chown $USER:www-data -R /var/www/html | |
sudo chmod u=rwX,g=srX,o=rX -R /var/www/html | |
// change file permissions of existing files and folders to 755/644 | |
sudo find /var/www/html -type d -exec chmod g=rwxs "{}" \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Forticlient SSL VPN Client launching script utilizing expect. | |
# -------------------------------------------- | |
# CONFIGURATION | |
# If empty - script will take some simple logic to locate appropriate binary. | |
FORTICLIENT_PATH="" |