Changeset 1f7c934


Ignore:
Timestamp:
11/11/21 21:36:24 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
master
Children:
4d73966
Parents:
90ab388
Message:

bug fixes

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • app/Exports/FoldersExport.php

    r90ab388 r1f7c934  
    2929            $row->user_id . ' - ' . User::find($row->user_id)->username,
    3030            $row->Department::find($row->department_id)->name . ' - ' . Department::find($row->department_id)->code,
     31            $row->version,
    3132            $row->created_at,
    3233            $row->updated_at
     
    4546            'Created by ID - Username',
    4647            'Department name - code',
    47             'Is important',
     48            'Version',
    4849            'Created at',
    4950            'Updated at'
  • app/Http/Controllers/Dashboard/DepartmentsController.php

    r90ab388 r1f7c934  
    158158            $zip->close();
    159159            $headers = array('Content-Type' => 'application/octet-stream');
    160             $zip_new_name = Carbon::now()->format('d.m.Y - H:i') . '- Departments.zip';
     160            $zip_new_name = Carbon::now()->format('d.m.Y - ') . 'Departments.zip';
    161161            return response()->download($zip_file, $zip_new_name, $headers);
    162162                }
     
    188188
    189189            $files = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path));
     190
    190191            foreach ($files as $file) {
    191192
     
    198199                }
    199200            }
     201
    200202            $zip->close();
    201203            $headers = array('Content-Type' => 'application/octet-stream');
    202             $zip_new_name = Carbon::now()->format('d.m.Y - H:i') . '- Departments.zip';
     204            $zip_new_name = Carbon::now()->format('d.m.Y - ') . $department->name . '.zip';
    203205            return response()->download($zip_file, $zip_new_name, $headers);
    204206                }
  • app/Http/Controllers/Dashboard/FoldersController.php

    r90ab388 r1f7c934  
    286286                    }
    287287                }
     288
    288289                $zip->close();
    289290                $headers = array('Content-Type' => 'application/octet-stream',);
    290                 $zip_new_name = Carbon::now()->format('d.m.Y - H:i') . $folder->name . '.zip';
     291                $zip_new_name = Carbon::now()->format('d.m.Y - ') . $folder->name . '.zip';
    291292                return response()->download($zip_file, $zip_new_name, $headers);
    292293            }
  • database/factories/FolderFactory.php

    r90ab388 r1f7c934  
    2727    public function definition()
    2828    {
    29         $inputArray = [5, 15, 25, 35, 45, 55, 65, 75, 85, 95];
    30         $deptId = Arr::random($inputArray);
     29        //$inputArray = [5, 15, 25, 35, 45, 55, 65, 75, 85, 95];
     30        //$deptId = Arr::random($inputArray);
    3131
    32         //$deptId = $this->faker->numberBetween(1, 10);
     32        $deptId = $this->faker->numberBetween(1, 10);
    3333
    3434        $deptCode = Department::find($deptId)->code;
  • resources/views/dashboard/users/index.blade.php

    r90ab388 r1f7c934  
    44
    55@section('head')
    6     <!-- Datatable -->
    7 {{--    <link rel="stylesheet" href="{{ url('vendors/dataTable/dataTables.min.css') }}" type="text/css">--}}
    86
    97@endsection
     
    9290                                    <td>
    9391                                        @if(Cache::has('is_online' . $user->id))
    94                                             <span data-toggle="tooltip" data-placement="bottom" title="{{ $user->last_seen }}" style="cursor: pointer;" class="text-success">Online</span>
     92                                            <span data-toggle="tooltip" data-placement="bottom" title="{{ \Carbon\Carbon::parse($user->last_seen)->format('d.m.Y - H:i') }}" class="text-success">Online</span>
    9593                                        @else
     94                                            @if($user->last_seen == null)
    9695                                            <span data-toggle="tooltip" data-placement="bottom" title="{{ $user->last_seen }}" class="text-secondary">Offline</span>
     96                                           @else
     97                                            <span data-toggle="tooltip" data-placement="bottom" title="{{ \Carbon\Carbon::parse($user->last_seen)->format('d.m.Y - H:i') }}" class="text-secondary">Offline</span>
     98                                            @endif
    9799                                        @endif
    98100                                    </td>
     
    322324    </div>
    323325
    324 
    325 
    326326@endsection
    327327
Note: See TracChangeset for help on using the changeset viewer.