@extends('layouts.admin')
@section('content')

<!-- [ breadcrumb ] start -->
<div class="page-header">
    <div class="page-block">
        <div class="row align-items-center">
            <div class="col-md-12">
                <ul class="breadcrumb">
                    <li class="breadcrumb-item"><a href="{{ route('admin.dashboard') }}">হোম</a></li>
                    <li class="breadcrumb-item"><a href="javascript: void(0)">সেটিংস</a></li>
                    <li class="breadcrumb-item" aria-current="page">General Settings / Favicon</li>
                </ul>
            </div>
            <div class="col-md-12">
                <div class="page-header-title">
                    <h2 class="mb-0">General Settings / Favicon</h2>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- [ breadcrumb ] end -->

@include('includes.admin.form-both')

<form class="uplogo-form" id="geniusform" action="{{ route('admin.generalsettings.update') }}" method="POST" enctype="multipart/form-data">
    {{csrf_field()}}

    <div class="card">
        <div class="card-header">
            <h5>{{ __('Favicon Settings') }}</h5>
        </div>
        <div class="card-body">
            <div class="row text-center justify-content-center">
                <div class="col-md-5 mb-4">
                    <label class="form-label d-block">{{ __('Current Favicon') }}</label>
                    <div class="mb-3">
                        <img src="{{ $data->favicon ? asset('assets/images/'.$data->favicon) : asset('assets/images/noimage.png')}}" alt="" class="img-fluid border p-2" style="max-height: 100px;">
                    </div>
                    <label class="form-label d-block mt-3">{{ __('Set New Favicon') }}</label>
                    <input class="form-control" type="file" name="favicon">
                </div>
            </div>
        </div>
    </div>

    <div class="card">
        <div class="card-body">
            <button class="btn btn-primary" type="submit">
                <i class="ti ti-device-floppy me-1"></i>{{ __('Save Changes') }}
            </button>
        </div>
    </div>
</form>

@endsection