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

Thông tin đại lý : {{$item->fullname }}

Danh sách @include('backend.web.agency.nav')
{{ csrf_field() }}
{{ isset($user) ? 'Chỉnh sửa Đại lý website' : 'Mở gói dịch vụ cho đại lý' }} Danh sách Đại lý website
{{ @$errors->first('fullname') }}
{{ @$errors->first('service_id') }}
{{--
@if( Auth::user()->hasRole('admin') || Auth::user()->hasRole('root') ) @if($item->customer_sub_phone) @endif @endif @if( Auth::user()->hasRole('headof') && $item->status_id != 4) @if($item->customer_sub_phone) @endif @endif @if( Auth::user()->hasRole('package') && $item->status_id != 4) @if($item->customer_sub_phone) @endif @endif @if( Auth::user()->hasRole('assistant') && $item->status_id != 4) @if($item->customer_sub_phone) @endif @endif
Địa chỉ
{{ $item->title }}
{{ @$item->street->full_name ? 'Đường '.$item->street->full_name.' - ' : '' }} Q.{{ @$item->district->full_name }}
Chủ nhà {{ $item->customer_name ? $item->customer_name : 'Chưa xác định'}}
Số điện thoại {{ $item->customer_phone ? $item->customer_phone : 'Chưa xác định'}}
Số điện thoại khác {{ $item->customer_sub_phone ? $item->customer_sub_phone : 'Chưa xác định'}}
Số điện thoại {{ $item->customer_phone ? $item->customer_phone : 'Chưa xác định'}}
Số điện thoại khác {{ $item->customer_sub_phone ? $item->customer_sub_phone : 'Chưa xác định'}}
Số điện thoại {{ $item->customer_phone ? $item->customer_phone : 'Chưa xác định'}}
Số điện thoại khác {{ $item->customer_sub_phone ? $item->customer_sub_phone : 'Chưa xác định'}}
Số điện thoại {{ $item->customer_phone ? $item->customer_phone : 'Chưa xác định'}}
Số điện thoại khác {{ $item->customer_sub_phone ? $item->customer_sub_phone : 'Chưa xác định'}}
Hiển thị {{ $item->is_public ? 'Công khai' : 'Không công khai'}}
Trạng thái {{ $item->status->name }}
Mô tả {!! str_replace('

', '
', $item->description) !!}
Loại bất động sản {{@$item->category->display_name}}
Phù hợp {{$item->suggets->pluck('name')->isEmpty() ? 'N/A' : $item->suggets->pluck('name')->implode(', ') }}
@if($item->images) @endif
--}}

Đây là trang lịch sử giao dịch

@if($agencies != null) @foreach($agencies as $stt => $agency) @endforeach @endif
STT Tên đại lý Dịch vụ Số lượng tài khoản Số tài khoản hoạt động Giảm giá Tổng tiền
{{ ($agencies->currentPage() - 1)*$agencies->perPage() + $stt + 1 }} {{ $agency->agency->fullname }} {{ $agency->service->name}} {{ $agency->account_quantity}} {{ $agency->countActiveAccounts()}} {{ $agency->total_amount}} USD
{{-- {{ $discounts->appends(@$_GET)->links() }} --}}
@endsection @push('styles') @endpush @push('scripts') @endpush