Tabs Navigation



This content originally appeared on DEV Community and was authored by CODEDAIH


public function index()
{
    $brandSettings = BrandSetting::all();
    $paymentSettings = PaymentSetting::all();
    $emailSettings = EmailSetting::all();

    return view( settings.index , compact( brandSettings ,  paymentSettings ,  emailSettings ));
}

`@extends( layouts.app )

@section( content )

<ul id="pills-tab">
    <li>
        <a id="site_setting_tab" href="#pills-brand-setting">{{ __( Brand Settings ) }}</a>
    </li>
    <li>
        <a id="pills-payment-setting_tab" href="#pills-payment-setting">{{ __( Payment Settings ) }}</a>
    </li>
    <li>
        <a id="pills-email-settings_tab" href="#pills-email-settings">{{ __( Email Settings ) }}</a>
    </li>
</ul>




        @foreach($brandSettings as $brandSetting)

                @csrf

                    {{ __( Brand Name ) }}


                Save

            <hr>
        @endforeach




        @foreach($paymentSettings as $paymentSetting)

                @csrf

                    {{ __( Payment Method ) }}


                Save

            <hr>
        @endforeach




        @foreach($emailSettings as $emailSetting)

                @csrf

                    {{ __( Email Address ) }}


                Save

            <hr>
        @endforeach

@endsection
`


This content originally appeared on DEV Community and was authored by CODEDAIH