@extends('admin.layouts') @section('title', 'Edit Employee') @section('header') @endsection @section('content')

Edit Employee

Edit Employee
@csrf
{{--
@if (auth()->user()->role === 'admin') @elseif (in_array(auth()->user()->role, ['sakthi', 'smart_world', 'smart_world_gift', 'yoga_naturals'])) @php $roleToBranchName = [ 'sakthi' => 'Sakthi Super Mart', 'smart_world' => 'SMARTWORLD', 'smart_world_gift' => 'SMARTWORLD - Stationary & Gifts', 'yoga_naturals' => 'Yogaa Naturals', ]; $userRole = auth()->user()->role; $branchName = $roleToBranchName[$userRole] ?? null; $userBranch = $branches->firstWhere('branch_name', $branchName); @endphp @else @endif
--}} {{--
@if (auth()->user()->role === 'admin') @else @endif
--}}
👁
@endsection @section('footer') @endsection