@extends('backEnd.master') @section('title') @lang('style.background_settings') @endsection @section('mainContent')
@if(isset($visitor)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'background-settings-update', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @else @if(userPermission('background-settings-store')) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'background-settings-store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @endif @endif

@lang('style.add_style')

@if ($errors->has('style')) {{ $errors->first('style') }} @endif
@if ($errors->has('background_type')) {{ $errors->first('background_type') }} @endif
@if ($errors->has('color')) {{ $errors->first('color') }} @endif
file): trans('style.background_image').' *'): trans('style.background_image').' *'}}" readonly>
@if ($errors->has('image')) {{ $errors->first('image') }} @endif
@php $tooltip = ""; if(userPermission('background-settings-store')){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}

@lang('common.view')

@foreach($background_settings as $background_setting) @endforeach
@lang('common.title') @lang('common.type') @lang('common.image') @lang('common.status') @lang('common.action')
{{@$background_setting->title}}

{{@$background_setting->type}}

@if(@$background_setting->type == 'image') @else
@endif
@if(@$background_setting->is_default==1) @lang('style.activated') @else @if(Illuminate\Support\Facades\Config::get('app.app_sync')) @if(userPermission("background_setting-status")) @lang('style.make_default') @endif @else @if(userPermission('background_setting-status')) @lang('style.make_default') @endif @endif @endif
@if(@$background_setting->id==1)

@lang('common.disable')

@else @if(userPermission('background-setting-delete')) @lang('common.delete') @endif @endif
@endsection @include('backEnd.partials.data_table_js') @section('script') @endsection