@extends('layouts.settings') @section('title', __('masjid_profile.edit')) @section('content_settings')
{{ Form::open(['route' => 'masjid_profile.update', 'method' => 'patch']) }}
{!! FormField::text('masjid_name', ['required' => true, 'value' => old('masjid_name', Setting::get('masjid_name', config('masjid.name'))), 'label' => __('masjid_profile.name')]) !!} {!! FormField::textarea('masjid_address', ['required' => true, 'value' => old('masjid_address', Setting::get('masjid_address')), 'label' => __('masjid_profile.address')]) !!} {!! FormField::text('masjid_city_name', [ 'required' => true, 'value' => old('masjid_city_name', Setting::get('masjid_city_name')), 'label' => __('masjid_profile.city_name'), ]) !!} {!! FormField::text('masjid_google_maps_link', ['value' => old('masjid_google_maps_link', Setting::get('masjid_google_maps_link')), 'label' => __('masjid_profile.google_maps_link')]) !!}
{{ __('app.social_media') }}
{!! FormField::text('masjid_whatsapp_number', ['value' => old('masjid_whatsapp_number', Setting::get('masjid_whatsapp_number')), 'label' => 'Whatsapp', 'addon' => ['before' => 'https://wa.me/']]) !!} {!! FormField::text('masjid_instagram_username', ['value' => old('masjid_instagram_username', Setting::get('masjid_instagram_username')), 'label' => 'Instagram', 'addon' => ['before' => 'https://instagram.com/']]) !!} {!! FormField::text('masjid_youtube_username', ['value' => old('masjid_youtube_username', Setting::get('masjid_youtube_username')), 'label' => 'Youtube', 'addon' => ['before' => 'https://youtube.com/']]) !!} {!! FormField::text('masjid_facebook_username', ['value' => old('masjid_facebook_username', Setting::get('masjid_facebook_username')), 'label' => 'Facebook', 'addon' => ['before' => 'https://facebook.com/']]) !!} {!! FormField::text('masjid_telegram_username', ['value' => old('masjid_telegram_username', Setting::get('masjid_telegram_username')), 'label' => 'Telegram', 'addon' => ['before' => 'https://t.me/']]) !!}
{{ Form::close() }}
@php $labelText = __('masjid_profile.upload_logo'); if (Setting::get('masjid_logo_path')) { $labelText = __('masjid_profile.change_logo'); } @endphp {!! FormField::file('masjid_logo_image', [ 'label' => false, 'id' => 'masjid_logo_image', 'class' => 'd-none', 'info' => ['text' => __('masjid_profile.logo_rule')] ]) !!}
@if (Setting::get('masjid_photo_path')) {{ Setting::get('masjid_name') ?? 'buku masjid'}} @endif
@php $labelText = __('masjid_profile.upload_photo'); if (Setting::get('masjid_photo_path')) { $labelText = __('masjid_profile.change_photo'); } @endphp {!! FormField::file('masjid_photo_image', [ 'label' => false, 'id' => 'masjid_photo_image', 'class' => 'd-none', 'info' => ['text' => __('masjid_profile.photo_rule')] ]) !!}
@endsection @section('styles') {{ Html::style(url('https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.6/cropper.min.css')) }} @endsection @push('scripts') {{ Html::script(url('https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.6/cropper.min.js')) }} {{ Html::script(url('js/plugins/noty.js')) }} @endpush