{!! Form::open(array(
'style' => 'display: inline-block;',
'method' => 'GET',
'route' => ['Print Devices'])) !!}
{!! Form::submit('Print Devices', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-primary')) !!}
{!! Form::close() !!}
Register Device
SN | Device Name | IMEI | Model | Assigned | Status | Last Used | Last Location | Registered Date | Action |
---|---|---|---|---|---|---|---|---|---|
{{$i+1}} | {{ $device->device_name }} | {{ $device->device_id }} | {{ $device->model }} | @php if($device->assigned_to != null){ $name = \App\Models\Agent::where(['id' => $device->assigned_to])->first()->name; echo $name; } @endphp | @if($device->status == 1) New @elseif($device->status == 2) Used @elseif($device->status == 3) Fault-Screen @elseif($device->status == 4) Fault-Battery @elseif($device->status == 5) Fault-Touch @elseif($device->status == 6) Fault-PowerButton @elseif($device->status == 7) Fault-Internet @elseif($device->status == 8) Fault-Charging @elseif($device->status == 9) Fault-Motherbody @elseif($device->status == 10) Fault-SIMCard @elseif($device->status == 11) Fault-Wet @elseif($device->status == 12) Fault-Shock @else Inactive @endif | {{ $device->last_used }} | {{ $device->ip_address }} | {{ $device->registered_date }} | {!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'GET', 'route' => ['Edit Device', $device->id])) !!} {!! Form::submit('Edit', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-primary')) !!} {!! Form::close() !!} {!! Form::open(array( 'style' => 'display: inline-block;', 'method' => 'POST', 'onsubmit' => "return confirm('".trans("Are sure you want to Delete this Device")."');", 'route' => ['Delete Device', $device->id])) !!} {!! Form::submit('Delete', array('class' => 'mb-2 mr-2 btn-icon btn-sm btn-danger')) !!} {!! Form::close() !!} |