|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/leadai/leadai.co.in/resources/views/sales/ |
Upload File : |
@extends('layout')
@section('content')
<!-- begin::main content -->
<style>
/* Styles for tabs */
.tab {
display: inline-block;
padding: 12px 26px;
cursor: pointer;
background-color: #E6EAED;
margin-right: -4px; /* Remove spacing between tabs */
}
.tab-btn{
cursor:pointer;
}
/* Style for highlighted tab */
.tab.active {
background-color: white;
}
/* Content area style */
.tab-content {
padding: 20px;
border-radius: 0 0 5px 5px;
display: none; /* Hide all content areas by default */
}
/* Show active content area */
.tab-content.active {
display: block;
}
.form-group {
margin-bottom: 1rem;
margin-bottom: 30px !important;
}
.form-group input, .form-group select{
height:42px;
padding-top:10px 25px !important;
}
.form-group label, .tab{
font-size:13px !important;
}
.company-save-btn{
position:fixed;
bottom:0;left:250px;
background-color:white;
border-top:1px solid #ccc;
}
.inner-border{
border:-2px solid #ddd !important;
}
@media only screen and (max-width: 768px) {
.company-save-btn{
position:fixed;
bottom:0;left:0px;
background-color:white;
border-top:1px solid #ccc;
}
}
</style>
<main class="main-content px-0">
<div class="container">
<!-- begin::page header -->
<div class="page-header m-0 border-0">
<h3> {{__('message.distributor')}} {{__('message.profile')}}</h3>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ asset('dashboard') }}">{{__('message.dashboard')}}</a></li>
<li class="breadcrumb-item" aria-current="page"><a href="{{ asset('sales') }}">{{__('message.sales')}}</a></li>
<li class="breadcrumb-item active" aria-current="page">{{__('message.add')}}</li>
</ol>
</nav>
</div>
<!-- end::page header -->
<div class="row">
<div class="col-md-12">
<div class="card border-0 shadow-sm mb-5">
<div class="card-body p-4">
<div class="row">
<!-- Profile Image and Basic Details -->
<div class="col-md-6 text-center mb-4">
<div class="profile-img mb-3">
@if($distributor->profile_pics)
<img src="{{$distributor->profile_pics}}" width="150" height="150" class="rounded-circle border shadow">
@else
<img src="{{asset('public/avtar.png')}}" width="150" height="150" class="rounded-circle border shadow">
@endif
</div>
<div class="profile-info">
<h5 class="btn btn-outline-primary w-100">{{__('message.name')}}: {{$distributor->name}}</h5>
<h5 class="btn btn-outline-primary w-100">{{__('message.email')}}: {{$distributor->email}}</h5>
<h5 class="btn btn-outline-primary w-100">{{__('message.phone')}}: {{$distributor->mobile}}</h5>
</div>
</div>
<!-- Tabs for Additional Details -->
<div class="col-md-6 border-left">
<div id="tabs" class="border-bottom mb-3">
<div class="nav nav-tabs">
<a class="nav-item nav-link active tab-btn" onclick="openTab('tab1')">
<strong>{{__('message.address')}}</strong>
</a>
<a class="nav-item nav-link tab-btn" onclick="openTab('tab2')">
<strong>{{__('message.manager')}}</strong>
</a>
<a class="nav-item nav-link tab-btn" onclick="openTab('tab3')">
<strong>{{__('message.other')}}</strong>
</a>
</div>
</div>
<!-- Tab Content -->
<div class="tab-content p-3 active" id="tab1">
<p class="mb-2 text-capitalize"><strong>{{__('message.address')}} : </strong> {{$distributor->address}}</p>
<p class="mb-2 text-capitalize"><strong>{{__('message.city')}} : </strong> {{$distributor->city}}</p>
<p class="mb-2 text-capitalize"><strong>{{__('message.state')}} : </strong> {{$distributor->state}}</p>
<p class="mb-2 text-capitalize"><strong>{{__('message.country')}} : </strong> {{$distributor->country}}</p>
<p class="mb-2 text-capitalize"><strong>{{__('message.zip')}} : </strong> {{$distributor->pincode}}</p>
</div>
<div class="tab-content p-3" id="tab2">
<p class="mb-2 text-capitalize"><strong>{{__('message.name')}} : </strong> {{$distributor->manager_name}}</p>
<p class="mb-2 text-capitalize"><strong>{{__('message.phone')}} : </strong> {{$distributor->manager_mobile}}</p>
<p class="mb-2 text-capitalize"><strong>{{__('message.email')}} : </strong> {{$distributor->manager_email}}</p>
</div>
<div class="tab-content p-3" id="tab3">
<p class="mb-2 text-capitalize">
<strong>{{__('message.notes')}} : </strong> {{$distributor->notes}}
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- end::main content -->
@endsection
@push('footer-script')
<!-- begin::select2 -->
<link rel="stylesheet" href="{{ asset('public/admin/vendors/select2/css/select2.min.css') }}" type="text/css">
<script src="{{ asset('public/admin/vendors/select2/js/select2.min.js') }}"></script>
<!-- end::select2 -->
<script>
$(document).ready(function() {
$('#js-example-basic-roles').select2({});
});
function openTab(tabId) {
// Get all tabs and hide them
var tabs = document.querySelectorAll('.tab-content');
tabs.forEach(function(tab) {
tab.classList.remove('active');
});
// Remove active class from all tabs
var tabButtons = document.querySelectorAll('.tab-btn');
tabButtons.forEach(function(button) {
button.classList.remove('active');
});
// Show the clicked tab and add active class
document.getElementById(tabId).classList.add('active');
document.querySelector('[onclick="openTab(\'' + tabId + '\')"]').classList.add('active');
}
</script>
@endpush