@php
use App\Models\User;
use Illuminate\Support\Facades\Auth;
$alloffices = [];
$showsidebar='YES';
if (Auth::user()->role == User::ROLE_OFFICE_ADMIN) {
// Check and explode multiple franchise
if (Auth::user()->multiple_franchise) {
$alloffices = explode(',', Auth::user()->multiple_franchise);
} else {
$alloffices = [];
}
// Add main franchise
$alloffices[] = Auth::user()->franchise_id;
// Remove duplicates
$alloffices = array_unique($alloffices);
if (!in_array($assignment->franchise_id, $alloffices))
{
$showsidebar='NO';
}
}
@endphp
Send Message as
If you're sending a message intended only for the admin, please enter the recipient's phone number or email address first, then select the "Admin Only" checkbox.
@if($showsidebar=='YES')
@endif
@if($showsidebar=='YES')
Adjuster
Appraiser
Owner
Insurance company
Body Shop
@endif
Admin Only
Adjuster
Appraiser
Owner
Insurance company
Body Shop