@extends('admin.layouts.app') @section('title', 'Settings') @section('crumbs')Settings@endsection @section('content') @php $icons = ['General' => '๐Ÿช', 'Contact & Map' => '๐Ÿ“', 'Shipping' => '๐Ÿšš', 'Social' => '๐ŸŒ', 'Promo Banner 1' => '๐Ÿ–ผ๏ธ', 'Promo Banner 2' => '๐Ÿ–ผ๏ธ', 'Coupon Banner' => '๐ŸŽŸ๏ธ']; @endphp
@csrf @method('PUT') {{-- Branding: website logo --}}

๐ŸŽจ Branding

@include('admin.partials.image', [ 'name' => 'site_logo', 'label' => 'Website logo', 'path' => $values['site_logo'] ?? null, 'hint' => 'PNG, JPG ba WEBP, max 2 MB. Bhalo dekhabe: chowra logo (jemon 400ร—120), transparent background PNG. Faka rakhle site name lekha logo dekhabe.', ])
@foreach ($groups as $group => $fields)

{{ $icons[$group] ?? '' }} {{ $group }}

@foreach ($fields as $key => $f) @php [$label, $type, $rule] = $f; @endphp @if ($type === 'map') @include('admin.partials.map-picker', ['name' => $key, 'label' => $label, 'value' => $values[$key] ?? '', 'hint' => $f[3] ?? null]) @continue @endif @include('admin.partials.field', [ 'name' => $key, 'label' => $label, 'type' => $type, 'value' => $values[$key] ?? '', 'required' => is_array($rule) ? in_array('required', $rule, true) : str_contains($rule, 'required'), 'full' => $type === 'textarea' || $group !== 'Shipping', 'rows' => 3, 'hint' => $f[3] ?? null, 'attrs' => $type === 'number' ? 'min="0" step="1"' : '', ]) @endforeach
@endforeach
{{-- server tools: shared hosting e terminal chara cache clear --}}
@csrf

๐Ÿงฐ Server tools

Notun file upload/deploy korar por eta ekbar chapo: purono cache muche jabe ar notun database table/column thakle add hobe. Kono data muchbe na.

@endsection