{{-- resources/views/laptops/barcode-pdf.blade.php --}} Barcode - {{ $laptop->asset_tag }}

{{ $laptop->asset_tag }}

Brand: {{ $laptop->brand }}

Model: {{ $laptop->model }}

Class: {{ $laptop->class->name }}

@if($laptop->assigned_student_id || $laptop->assigned_student_name)

Assigned Student

@if($laptop->assigned_student_id)

Student ID: {{ $laptop->assigned_student_id }}

@endif @if($laptop->assigned_student_name)

Name: {{ $laptop->assigned_student_name }}

@endif
@endif @if($laptop->currentAssignment)

Currently Checked Out

Student: {{ $laptop->currentAssignment->student->full_name }}

Student ID: {{ $laptop->currentAssignment->student->student_id }}

Checked Out: {{ $laptop->currentAssignment->checked_out_at->format('M d, Y H:i') }}

@endif
Barcode

Barcode: {{ $laptop->barcode }}