{{ Form::bsBoxOpen('Thông tin bảo hành') }}
@if(!empty(@$warranty['warranty_code']))
@endif
{{ Form::bsText('Tên Model','device_model',@$warranty['device_model'], 'required') }}
{{ Form::bsText('Số Serial','device_serial',@$warranty['device_serial']) }}
@php(@$warranty['received_date'] = !empty(@$warranty['received_date']) ? @$warranty['received_date'] : (new DateTime())->format('Y-m-d H:i:s'))
{!! Form::bsText('Ngày nhận thiết bị', 'received_date', @$warranty['received_date'], ['class' => 'form-control','bs-type'=>'singleDatePicker', 'onkeydown' => 'return false;']) !!}
@php(@$warranty['handover_date'] = !empty(@$warranty['handover_date']) ? @$warranty['handover_date'] : (new DateTime())->format('Y-m-d H:i:s'))
{!! Form::bsText('Ngày hẹn trả', 'handover_date', @$warranty['handover_date'], ['class' => 'form-control','bs-type'=>'singleDatePicker', 'onkeydown' => 'return false;']) !!}
{{ Form::bsTextArea('Tình trạng thiết bị','device_description',@$warranty['device_description']) }}
{{ Form::bsTextArea('Chi tiết bảo hành','warranty_description',@$warranty['warranty_description']) }}
{{ Form::bsTextArea('Ghi chú','note',@$warranty['note']) }}
{{ Form::bsBoxClose() }}
{{ Form::bsBoxOpen('Thông tin khách hàng') }}
@if(empty(@$warranty['user_id']))
{{Form::bsSelectItem('Chọn khách hàng', 'customer_select', 'user')}}
Thêm KH mới
@endif
Khách hàng: |
{{@$warranty['fullname']}} |
Số điện thoại: |
{{@$warranty['phone']}} |
Email: |
{{@$warranty['email']}} |
Giới tính: |
{{@$warranty['gender']}} |
Tỉnh / thành phố: |
{{@$warranty['province']}} |
Quận / huyện: |
{{@$warranty['district']}} |
Địa chỉ: |
{{@$warranty['address']}} |
{{ Form::bsBoxClose() }}
{{ Form::bsBoxOpen('Thông tin khác') }}
{{ Form::bsSelect('Tình trạng thanh toán','payment_status',\Warranty::PAYMENT_STATUS,@$warranty['payment_status']) }}
{{ Form::bsSelect('Trạng thái','status',\Warranty::WARRANTY_STATUS,@$warranty['status']??1) }}
{{ Form::checkbox('is_outsource',1,@$warranty['is_outsource']??0,['bs-type'=>'checkbox']) }} Chuyển bảo hành bên ngoài
{{ Form::bsBoxClose() }}
@include('page::script')
@if(empty(@$warranty['user_id']))