@extends('layout.default') @section('styles') @endsection @section('css') .invalid-feedback{ display: block!important;} @endsection @section('content') @php $user = $response['user']; $user->load(['roles','branches']); $profile_photo = $response['profile_photo']; $thumb_photo = $response['thumb_photo']; $branches = []; $user_branches = $user->branches->toArray(); array_walk($user_branches, function ($value, $key) use(&$branches){ $branches[$key] = ['branch_id' => $value['branch']['id'],'branch_name' => $value['branch']['name']]; }); @endphp @if(count($errors) > 0 )