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

Update Vendor Details

@if ($slug == 'personal') {{-- $slug was passed from AdminController to view (using compact() method) --}}

Update Personal Information

{{-- Our Bootstrap error code in case of wrong current password or the new password and confirm password are not matching: --}} {{-- Determining If An Item Exists In The Session (using has() method): https://laravel.com/docs/9.x/session#determining-if-an-item-exists-in-the-session --}} @if (Session::has('error_message')) @endif {{-- Displaying Laravel Validation Errors: https://laravel.com/docs/9.x/validation#quick-displaying-the-validation-errors --}} @if ($errors->any()) @endif {{-- Our Bootstrap success message in case of updating admin password is successful: --}} {{-- Determining If An Item Exists In The Session (using has() method): https://laravel.com/docs/9.x/session#determining-if-an-item-exists-in-the-session --}} @if (Session::has('success_message')) @endif
@csrf
{{-- Accessing Specific Guard Instances: https://laravel.com/docs/9.x/authentication#accessing-specific-guard-instances --}}
{{-- $vendorDetails was passed from AdminController --}} {{-- Accessing Specific Guard Instances: https://laravel.com/docs/9.x/authentication#accessing-specific-guard-instances --}}
{{-- $vendorDetails was passed from AdminController --}}
{{-- $vendorDetails was passed from AdminController --}}
{{-- $vendorDetails was passed from AdminController --}}
{{-- Show all world countries from the database `countries` table --}}
{{-- $vendorDetails was passed from AdminController --}}
{{-- Accessing Specific Guard Instances: https://laravel.com/docs/9.x/authentication#accessing-specific-guard-instances --}}
{{-- Show the admin image if exists --}} @if (!empty(Auth::guard('admin')->user()->image)) {{-- Accessing Specific Guard Instances: https://laravel.com/docs/9.x/authentication#accessing-specific-guard-instances --}} View Image {{-- Accessing Specific Guard Instances: https://laravel.com/docs/9.x/authentication#accessing-specific-guard-instances --}} {{-- Accessing Specific Guard Instances: https://laravel.com/docs/9.x/authentication#accessing-specific-guard-instances --}} @endif
@elseif ($slug == 'business')

Update Vendor Business Information

{{-- Our Bootstrap error code in case of wrong current password or the new password and confirm password are not matching: --}} {{-- Determining If An Item Exists In The Session (using has() method): https://laravel.com/docs/9.x/session#determining-if-an-item-exists-in-the-session --}} @if (Session::has('error_message')) @endif {{-- Displaying Laravel Validation Errors: https://laravel.com/docs/9.x/validation#quick-displaying-the-validation-errors --}} @if ($errors->any()) @endif {{-- Our Bootstrap success message in case of updating admin password is successful: --}} {{-- Determining If An Item Exists In The Session (using has() method): https://laravel.com/docs/9.x/session#determining-if-an-item-exists-in-the-session --}} @if (Session::has('success_message')) @endif
@csrf
{{-- Accessing Specific Guard Instances: https://laravel.com/docs/9.x/authentication#accessing-specific-guard-instances --}}
{{-- $vendorDetails was passed from AdminController --}}
{{-- $vendorDetails was passed from AdminController --}}
{{-- $vendorDetails was passed from AdminController --}}
{{-- $vendorDetails was passed from AdminController --}}
{{-- Show all world countries from the database `countries` table --}}
{{-- $vendorDetails was passed from AdminController --}}
{{-- $vendorDetails was passed from AdminController --}}
{{-- $vendorDetails was passed from AdminController --}}
{{-- $vendorDetails was passed from AdminController --}}
{{-- Show the admin image if exists --}} @if (!empty($vendorDetails['address_proof_image'])) View Image @endif
@elseif ($slug == 'bank')

Update Vendor Bank Information

{{-- Our Bootstrap error code in case of wrong current password or the new password and confirm password are not matching: --}} {{-- Determining If An Item Exists In The Session (using has() method): https://laravel.com/docs/9.x/session#determining-if-an-item-exists-in-the-session --}} @if (Session::has('error_message')) @endif {{-- Displaying Laravel Validation Errors: https://laravel.com/docs/9.x/validation#quick-displaying-the-validation-errors --}} @if ($errors->any()) @endif {{-- Our Bootstrap success message in case of updating admin password is successful: --}} {{-- Determining If An Item Exists In The Session (using has() method): https://laravel.com/docs/9.x/session#determining-if-an-item-exists-in-the-session --}} @if (Session::has('success_message')) @endif
@csrf
{{-- Accessing Specific Guard Instances: https://laravel.com/docs/9.x/authentication#accessing-specific-guard-instances --}}
{{-- $vendorDetails was passed from AdminController --}}
{{-- $vendorDetails was passed from AdminController --}}
{{-- $vendorDetails was passed from AdminController --}}
{{-- $vendorDetails was passed from AdminController --}}
@endif
@include('admin.layout.footer')
@endsection