from django.db import models




class SiteSettings(models.Model):
    site_name = models.CharField(max_length=200 , verbose_name='Site Name')
    site_url = models.CharField(max_length=200 , verbose_name='Site URL')
    site_address = models.CharField(max_length=300 , verbose_name='Site Address')
    site_phone = models.CharField(max_length=100 , null=True , blank=True , verbose_name='Site Phone')
    site_fax = models.CharField(max_length=200 , null=True , blank=True , verbose_name='Site Fax')
    site_email = models.EmailField(max_length=200 , null=True , blank=True , verbose_name='Site Email')
    about_us_text = models.TextField(verbose_name='About Us Text')
    site_copy_right = models.TextField(verbose_name='Copyright Text')
    site_logo = models.ImageField(upload_to='images/site-setting/' , verbose_name='Site Logo')
    is_main_setting = models.BooleanField(verbose_name='Site Main Settings')

    def __str__(self) -> str:
        super(SiteSettings , self).__str__()
        return self.site_name

    class Meta:
        verbose_name = 'Site Setting'
        verbose_name_plural = 'Site Settings'
        
        
        
        
        
class FooterLinkBox(models.Model):
    title = models.CharField(max_length=200 , verbose_name='Title')
    
    def __str__(self) -> str:
        super(FooterLinkBox , self).__str__()
        return self.title
    
    class Meta:
        verbose_name = 'Footer Link Setting'
        verbose_name_plural = 'Footer Link Settings'
        
        
 
        
        
class FooterLink(models.Model):
    title = models.CharField(max_length=200 , verbose_name='Title')
    url = models.URLField(max_length=500 , verbose_name='Links')
    footer_link_box = models.ForeignKey(to=FooterLinkBox , verbose_name='Category' , on_delete=models.CASCADE)
    
    def __str__(self) -> str:
        super(FooterLink , self).__str__()
        return self.title
    
    class Meta:
        verbose_name = 'Footer Link'
        verbose_name_plural = 'Footer Links'
        
        
        
        
        
class Slider(models.Model):
    title = models.CharField(max_length=200 , verbose_name='Title')
    description = models.TextField(verbose_name='Slider Description')
    url_title = models.CharField(max_length=200 , verbose_name='URL Title')
    url = models.URLField(max_length=200 , verbose_name='URL Address')
    image = models.ImageField(upload_to='images/sliders' , verbose_name='Slider Image')
    is_active = models.BooleanField(default=False , verbose_name='Active / Inactive')
    
    def __str__(self) -> str:
        super(Slider , self).__str__()
        return self.title
    
    class Meta:
        verbose_name = 'Slider'
        verbose_name_plural = 'Sliders'
[((83, 141), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(200)', 'verbose_name': '"""Site Name"""'}), "(max_length=200, verbose_name='Site Name')\n", (99, 141), False, 'from django.db import models\n'), ((158, 215), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(200)', 'verbose_name': '"""Site URL"""'}), "(max_length=200, verbose_name='Site URL')\n", (174, 215), False, 'from django.db import models\n'), ((236, 297), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(300)', 'verbose_name': '"""Site Address"""'}), "(max_length=300, verbose_name='Site Address')\n", (252, 297), False, 'from django.db import models\n'), ((316, 403), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(100)', 'null': '(True)', 'blank': '(True)', 'verbose_name': '"""Site Phone"""'}), "(max_length=100, null=True, blank=True, verbose_name=\n    'Site Phone')\n", (332, 403), False, 'from django.db import models\n'), ((417, 502), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(200)', 'null': '(True)', 'blank': '(True)', 'verbose_name': '"""Site Fax"""'}), "(max_length=200, null=True, blank=True, verbose_name='Site Fax'\n    )\n", (433, 502), False, 'from django.db import models\n'), ((518, 606), 'django.db.models.EmailField', 'models.EmailField', ([], {'max_length': '(200)', 'null': '(True)', 'blank': '(True)', 'verbose_name': '"""Site Email"""'}), "(max_length=200, null=True, blank=True, verbose_name=\n    'Site Email')\n", (535, 606), False, 'from django.db import models\n'), ((625, 671), 'django.db.models.TextField', 'models.TextField', ([], {'verbose_name': '"""About Us Text"""'}), "(verbose_name='About Us Text')\n", (641, 671), False, 'from django.db import models\n'), ((694, 741), 'django.db.models.TextField', 'models.TextField', ([], {'verbose_name': '"""Copyright Text"""'}), "(verbose_name='Copyright Text')\n", (710, 741), False, 'from django.db import models\n'), ((758, 835), 'django.db.models.ImageField', 'models.ImageField', ([], {'upload_to': '"""images/site-setting/"""', 'verbose_name': '"""Site Logo"""'}), "(upload_to='images/site-setting/', verbose_name='Site Logo')\n", (775, 835), False, 'from django.db import models\n'), ((859, 913), 'django.db.models.BooleanField', 'models.BooleanField', ([], {'verbose_name': '"""Site Main Settings"""'}), "(verbose_name='Site Main Settings')\n", (878, 913), False, 'from django.db import models\n'), ((1213, 1267), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(200)', 'verbose_name': '"""Title"""'}), "(max_length=200, verbose_name='Title')\n", (1229, 1267), False, 'from django.db import models\n'), ((1577, 1631), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(200)', 'verbose_name': '"""Title"""'}), "(max_length=200, verbose_name='Title')\n", (1593, 1631), False, 'from django.db import models\n'), ((1643, 1696), 'django.db.models.URLField', 'models.URLField', ([], {'max_length': '(500)', 'verbose_name': '"""Links"""'}), "(max_length=500, verbose_name='Links')\n", (1658, 1696), False, 'from django.db import models\n'), ((1720, 1811), 'django.db.models.ForeignKey', 'models.ForeignKey', ([], {'to': 'FooterLinkBox', 'verbose_name': '"""Category"""', 'on_delete': 'models.CASCADE'}), "(to=FooterLinkBox, verbose_name='Category', on_delete=\n    models.CASCADE)\n", (1737, 1811), False, 'from django.db import models\n'), ((2101, 2155), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(200)', 'verbose_name': '"""Title"""'}), "(max_length=200, verbose_name='Title')\n", (2117, 2155), False, 'from django.db import models\n'), ((2175, 2226), 'django.db.models.TextField', 'models.TextField', ([], {'verbose_name': '"""Slider Description"""'}), "(verbose_name='Slider Description')\n", (2191, 2226), False, 'from django.db import models\n'), ((2243, 2301), 'django.db.models.CharField', 'models.CharField', ([], {'max_length': '(200)', 'verbose_name': '"""URL Title"""'}), "(max_length=200, verbose_name='URL Title')\n", (2259, 2301), False, 'from django.db import models\n'), ((2313, 2372), 'django.db.models.URLField', 'models.URLField', ([], {'max_length': '(200)', 'verbose_name': '"""URL Address"""'}), "(max_length=200, verbose_name='URL Address')\n", (2328, 2372), False, 'from django.db import models\n'), ((2386, 2460), 'django.db.models.ImageField', 'models.ImageField', ([], {'upload_to': '"""images/sliders"""', 'verbose_name': '"""Slider Image"""'}), "(upload_to='images/sliders', verbose_name='Slider Image')\n", (2403, 2460), False, 'from django.db import models\n'), ((2478, 2546), 'django.db.models.BooleanField', 'models.BooleanField', ([], {'default': '(False)', 'verbose_name': '"""Active / Inactive"""'}), "(default=False, verbose_name='Active / Inactive')\n", (2497, 2546), False, 'from django.db import models\n')]